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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin381
RA = 158.275, Dec = 41.262
tmin = 338083201, tmax = 338342401
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='973169', job_status='RUN', time_executed='2021-09-02 03:18:27.807055', time_epoch_executed='1630577907.81' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973169

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973169/ft1_4FGL_J1033.1+4115_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973169/ft2_4FGL_J1033.1+4115_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973169/ft1_4FGL_J1033.1+4115_daily_bin381.fits outfile=/scratch/kocevski/973169/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin381.fits ra=158.275 dec=41.262 rad=12.0 tmin=338083201.0 tmax=338342401.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 6.78
user 6.49
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973169/ft1_filtered_4FGL_J1033.1+4115_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/973169/ft2_4FGL_J1033.1+4115_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/973169/ltcube_338083201_338342401_4FGL_J1033.1+4115_daily_bin381.fits outfile=/scratch/kocevski/973169/expmap_338083201_338342401_4FGL_J1033.1+4115_daily_bin381.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/973169/ltcube_338083201_338342401_4FGL_J1033.1+4115_daily_bin381.fits
.....................!
real 192.71
user 187.14
sys 4.93

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/973169/ft1_filtered_4FGL_J1033.1+4115_daily_bin381.fits scfile=/scratch/kocevski/973169/ft2_4FGL_J1033.1+4115_daily_bin381.fits outfile=/scratch/kocevski/973169/cmap_338083201_338342401_4FGL_J1033.1+4115_daily_bin381.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973169/ft1_filtered_4FGL_J1033.1+4115_daily_bin381.fits scfile=/scratch/kocevski/973169/ft2_4FGL_J1033.1+4115_daily_bin381.fits outfile=/scratch/kocevski/973169/cmap_HighResolution_338083201_338342401_4FGL_J1033.1+4115_daily_bin381.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.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.1964       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10809       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.3745       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4970       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26637E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1942       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4426       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    106.60       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.4627       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .20231E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.762       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.9102       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .91207       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94786       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=   5497.096     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3644 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.439        .73681E-07** at limit **
   2  Prefactor     .10000E-03    20.917       -.18684E-06** at limit **
   3  Prefactor     .10000E-03    21.656       -.20948E-06** at limit **
   4  Prefactor     .10000E-03    2.9182       -.29801E-07** at limit **
   5  norm          5.2026        10.710        .63909E-05   -.37050E-04
   6  Prefactor     .10000E-03    4.9792       -.32691E-06** at limit **
   7  Prefactor     .10812        2.2755        .34191E-06   -.19183E-03
   8  Prefactor     .10000E-03    20.354        .16905E-07** at limit **
   9  norm          6.3752        2.9982       -.33611E-07   -.42218E-04
  10  Prefactor     3.4956        4.6545        .11785E-06   -.20413E-03
  11  norm          .10000E-03    1.9352       -.12014E-07** at limit **
  12  Prefactor     .10002E-03    273.37       -.10937E-04** at limit **
  13  Prefactor     .10000E-03    20.473       -.67259E-07** at limit **
  14  Prefactor     9.1958        3.9549        .72567E-07   -.53538E-04
  15  Prefactor     1.4429        2.9719        .50902E-06    .13018E-04
  16  Prefactor     .10000E-03    11.827       -.15653E-06** at limit **
  17  Prefactor     106.70        96.174        .22441E-05    .10346E-03
  18  Prefactor     .10000E-03    9.0973       -.77337E-07** at limit **
  19  Prefactor     .10000E-03    25.297       -.32107E-06** at limit **
  20  norm          1.4628        .34757        .24674E-07   -.16032E-03
  21  Prefactor     .10000E-03    8.9658        .39703E-08** at limit **
  22  Prefactor     .10000E-03    5.1096        .14781E-07** at limit **
  23  Prefactor     .10000E-03    114.42        .10836E-05** at limit **
  24  norm          12.766        12.033        .21605E-06   -.44051E-05
  25  Prefactor     8.9114        4.0989        .17450E-06   -.15268E-05
  26  Prefactor     .10000E-03    32.503        .24614E-06** at limit **
  27  norm          .10000E-03    1.2908        .17624E-07** at limit **
  28  Normalizat    .91199        .16418       -.24023E-05    .22112E-05
  29  Prefactor     .94755        .20350        .45247E-06   -.10876E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.20256
  Prefactor  = 0.0001
  Prefactor  = 0.108117
  Prefactor  = 0.0001
  norm       = 6.3752
  Prefactor  = 3.49564
  norm       = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 9.19577
  Prefactor  = 1.44288
  Prefactor  = 0.0001
  Prefactor  = 106.702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 12.7664
  Prefactor  = 8.91137
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.911992
  Prefactor  = 0.947554
 **********
 **   18 **HESSE 
 **********

 FCN=   5497.096     FROM HESSE     STATUS=OK           547 CALLS     4191 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9240        .12368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.2026        10.744        .88173E-03   -1.5252    
   6  Prefactor     .10000E-03    5.1919        .32300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10812        34.155        .18465E-02   -1.5642    
   8  Prefactor     .10000E-03    20.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.3752        2.9983        .85247E-04   -1.5203    
  10  Prefactor     3.4956        5.4384        .15154E-03   -1.5334    
  11  norm          .10000E-03    1.9362        .10073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    280.44        .19954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.1958        3.9566        .93496E-04   -1.5101    
  15  Prefactor     1.4429        2.9208        .17678E-03   -1.5468    
  16  Prefactor     .10000E-03    11.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     106.70        96.807        .19475E-03   -1.3638    
  18  Prefactor     .10000E-03    9.1084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.4628        .34778        .20553E-04   -1.5466    
  21  Prefactor     .10000E-03    8.9995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.1131        .16367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    114.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.766        12.028        .11213E-03   -1.4993    
  25  Prefactor     8.9114        4.0892        .97515E-04   -1.5111    
  26  Prefactor     .10000E-03    32.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.3178        .82125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .91199        .18886        .22237E-03   -.96040    
  29  Prefactor     .94755        .23633        .28063E-03   -.94499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37942e-10
Minuit parameter uncertainties:
  1  4.7757e-05
  2  4.66278e-05
  3  2.12277e-06
  4  2.94007e-06
  5  10.7481
  6  1.24074e-05
  7  3.84374
  8  6.92254e-05
  9  2.99834
  10  5.43913
  11  1.02325e-06
  12  0.004663
  13  8.77384e-06
  14  3.95675
  15  2.92111
  16  3.55493e-05
  17  96.9506
  18  1.83104e-06
  19  0.00014997
  20  0.347782
  21  2.33657e-05
  22  6.38475e-06
  23  0.000661339
  24  12.0305
  25  4.08934
  26  9.80708e-05
  27  8.90581e-07
  28  0.189002
  29  0.236587
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  9.196e+00  3.957e+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.476e-01  2.366e-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.120e-01  1.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.93
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.75e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 9.37e-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) = 5493.60206027
delta logL = 3.4936262203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5493.52336026
delta logL = 3.57232623567

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.132       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5759       1.0000          .0000       10.000    
     3 'Normalizat'    .94662       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91746       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=   5493.523     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.132        4.8402        .30019E-02   -.38829E-04
   2  Index         1.5759        .24035        .11186       -.53884E-04
   3  Normalizat    .94665        .15698        .45495E-01    .64899E-05
   4  Prefactor     .91742        .20215        .45227E-01    .10633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1325
  Index      = 1.57587
  Normalizat = 0.946653
  Prefactor  = 0.917421
 **********
 **   18 **HESSE 
 **********

 FCN=   5493.523     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .41E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.132        5.2662        .10427E-03   -1.5041    
   2  Index         1.5759        .27276        .47504E-02   -.75437    
   3  Normalizat    .94665        .18273        .21862E-03   -.94840    
   4  Prefactor     .91742        .23517        .28435E-03   -.95535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11439e-13
Minuit parameter uncertainties:
  1  5.26645
  2  0.273011
  3  0.182847
  4  0.235435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973169': 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) = 5493.52336023
delta logL = 3.57232626558

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.113e+01  5.266e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  1.576e+00  2.730e-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:  9.174e-01  2.354e-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.467e-01  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.09
Ra Dec: 158.275 41.262
Photon Index (Free Index): 1.58 +/- 0.27
Photon Flux (Free Index): 3.93e-08 +/- 2.02e-08
Energy Flux (Free Index): 9.65e-05 +/- 7.39e-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/973169/cmap_HighResolution_338083201_338342401_4FGL_J1033.1+4115_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.75e-08', energy_flux2='9.65e-05', photon_flux_error='2.90e-08', dlogl='3.57e+00', energy_flux='2.18e-05', photon_flux2='3.93e-08', job_status='DONE', time_completed='2021-09-02 03:31:32.514390', photon_index_error2='0.27', photon_index2='1.58', ts='18.93', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='7.39e-05', EG='0.91', time_epoch_completed='1630578692.51', return_code='0', job_id='973169', GAL2='0.92', EG2='0.95', return_code2='0', energy_flux_error='9.37e-06', photon_flux_error2='2.02e-08', ts2='26.09', photon_index='2.41' WHERE bin_id='381' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:31:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 973169: <4FGL_J1033.1+4115_daily_bin381> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin381 158.275 41.262 338083201 338342401 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 :                                   775.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             247.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            954 sec.

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

