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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin1355
RA = 158.275, Dec = 41.262
tmin = 590544001, tmax = 590803201
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='979151', job_status='RUN', time_executed='2021-09-02 03:36:13.487161', time_epoch_executed='1630578973.49' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='1355'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/979151

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/979151/ft1_4FGL_J1033.1+4115_daily_bin1355.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/979151/ft2_4FGL_J1033.1+4115_daily_bin1355.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/979151/ft1_4FGL_J1033.1+4115_daily_bin1355.fits outfile=/scratch/kocevski/979151/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1355.fits ra=158.275 dec=41.262 rad=12.0 tmin=590544001.0 tmax=590803201.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 4.29
user 4.02
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/979151/ft1_filtered_4FGL_J1033.1+4115_daily_bin1355.fits" evtable="EVENTS" scfile=/scratch/kocevski/979151/ft2_4FGL_J1033.1+4115_daily_bin1355.fits sctable="SC_DATA" outfile=/scratch/kocevski/979151/ltcube_590544001_590803201_4FGL_J1033.1+4115_daily_bin1355.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/979151/ft2_4FGL_J1033.1+4115_daily_bin1355.fits
.....................!
real 18.22
user 17.80
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/979151/ft1_filtered_4FGL_J1033.1+4115_daily_bin1355.fits evtable="EVENTS" scfile=/scratch/kocevski/979151/ft2_4FGL_J1033.1+4115_daily_bin1355.fits sctable="SC_DATA" expcube=/scratch/kocevski/979151/ltcube_590544001_590803201_4FGL_J1033.1+4115_daily_bin1355.fits outfile=/scratch/kocevski/979151/expmap_590544001_590803201_4FGL_J1033.1+4115_daily_bin1355.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/979151/ltcube_590544001_590803201_4FGL_J1033.1+4115_daily_bin1355.fits
.....................!
real 190.39
user 185.96
sys 3.97

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/979151/ft1_filtered_4FGL_J1033.1+4115_daily_bin1355.fits scfile=/scratch/kocevski/979151/ft2_4FGL_J1033.1+4115_daily_bin1355.fits outfile=/scratch/kocevski/979151/cmap_590544001_590803201_4FGL_J1033.1+4115_daily_bin1355.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/979151/ft1_filtered_4FGL_J1033.1+4115_daily_bin1355.fits scfile=/scratch/kocevski/979151/ft2_4FGL_J1033.1+4115_daily_bin1355.fits outfile=/scratch/kocevski/979151/cmap_HighResolution_590544001_590803201_4FGL_J1033.1+4115_daily_bin1355.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=158.275 yref=41.262 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.450       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9828       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4787       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.597       1.0000         .10000E-03   10000.    
     9 'norm      '    4.1473       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.093       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.694       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8222       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8365       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.781       1.0000         .10000E-03   10000.    
    20 'norm      '    1.0539       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1941       1.0000         .10000E-03   10000.    
    23 'Prefactor '    111.97       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .51293       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12772       1.0000         .10000E-03   10000.    
    27 'norm      '    2.9822       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2917       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .61503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5971.491     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     3668 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.7875       -.63641E-06** at limit **
   2  Prefactor     .10001E-03    10.635       -.28687E-06** at limit **
   3  Prefactor     46.423        24.859        .40424E-06   -.67798E-02
   4  Prefactor     7.9830        1.2044       -.19014E-07    .96778E-03
   5  norm          .10000E-03    5.1809        .11372E-06** at limit **
   6  Prefactor     4.4786        4.6380        .34760E-07    .13573E-02
   7  Prefactor     .10000E-03    .91457        .19333E-06** at limit **
   8  Prefactor     15.601        15.810        .69906E-06    .16072E-02
   9  norm          4.1471        2.3225       -.34235E-07   -.10242E-03
  10  Prefactor     .10000E-03    1.0152       -.92165E-07** at limit **
  11  norm          .10002E-03    7.5365       -.46336E-06** at limit **
  12  Prefactor     62.100        1.7367       -.86016E-07    .50429E-03
  13  Prefactor     14.694        19.044       -.65967E-06    .41461E-02
  14  Prefactor     2.8216        4.2310        .23257E-06    .29926E-03
  15  Prefactor     3.8367        4.1338       -.96839E-07   -.25963E-03
  16  Prefactor     .10001E-03    11.577       -.73058E-06** at limit **
  17  Prefactor     .10000E-03    24.597        .19525E-05** at limit **
  18  Prefactor     .10002E-03    8.3015        .79892E-06** at limit **
  19  Prefactor     27.778        1.1310        .55459E-07   -.14553E-03
  20  norm          1.0539        .29623        .27755E-07    .10645E-02
  21  Prefactor     .10006E-03    7.3956       -.91722E-07** at limit **
  22  Prefactor     1.1891        5.6311       -.25802E-06    .27129E-02
  23  Prefactor     111.99        3.4321       -.20887E-06   -.70485E-03
  24  norm          .10000E-03    4.3323        .13584E-06** at limit **
  25  Prefactor     .49880        6.0622        .77089E-06    .27608E-03
  26  Prefactor     .11079E-03    2119.6        .65063E-04** at limit **
  27  norm          2.9841        2.8032        .11710E-06    .16902E-03
  28  Normalizat    1.2917        .19550        .13697E-06    .98266E-04
  29  Prefactor     .61507        .23504       -.23383E-06    .37172E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 46.4227
  Prefactor  = 7.983
  norm       = 0.0001
  Prefactor  = 4.4786
  Prefactor  = 0.0001
  Prefactor  = 15.6014
  norm       = 4.14713
  Prefactor  = 0.0001
  norm       = 0.000100018
  Prefactor  = 62.0996
  Prefactor  = 14.6935
  Prefactor  = 2.82162
  Prefactor  = 3.83675
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 0.000100018
  Prefactor  = 27.7784
  norm       = 1.0539
  Prefactor  = 0.00010006
  Prefactor  = 1.18913
  Prefactor  = 111.99
  norm       = 0.0001
  Prefactor  = 0.498797
  Prefactor  = 0.000110793
  norm       = 2.9841
  Normalizat = 1.29168
  Prefactor  = 0.615071
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.491     FROM HESSE     STATUS=OK           625 CALLS     4293 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.7851        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    10.693        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     46.423        33.826        .14708E-02   -1.4344    
   4  Prefactor     7.9830        7.9138        .35478E-02   -1.5143    
   5  norm          .10000E-03    5.1633        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4786        4.6671        .47565E-02   -1.5285    
   7  Prefactor     .10000E-03    .91127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.601        18.046        .25353E-02   -1.4918    
   9  norm          4.1471        2.3244        .49481E-02   -1.5301    
  10  Prefactor     .10000E-03    1.0133        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10002E-03    7.6228        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     62.100        65.335        .12731E-02   -1.4130    
  13  Prefactor     14.694        24.971        .26121E-02   -1.4941    
  14  Prefactor     2.8216        4.2500        .60525E-02   -1.5372    
  15  Prefactor     3.8367        4.3393        .51512E-02   -1.5316    
  16  Prefactor     .10001E-03    11.666        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.601        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    8.4949        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.778        65.081        .19002E-02   -1.4653    
  20  norm          1.0539        .30321        .48355E-02   -1.5503    
  21  Prefactor     .10006E-03    7.9534        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1891        18.306        .10408E-01   -1.5490    
  23  Prefactor     111.99        114.57        .95040E-03   -1.3587    
  24  norm          .10000E-03    4.3259        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .49880        4.8686        .39445E-01   -1.5567    
  26  Prefactor     .11079E-03    101.48        .14637       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.9841        3.0054        .58773E-02   -1.5362    
  28  Normalizat    1.2917        .17453        .32956E-01   -.83815    
  29  Prefactor     .61507        .21111        .79399E-01   -1.0696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89206e-07
Minuit parameter uncertainties:
  1  3.32348e-05
  2  0.000545431
  3  33.8397
  4  7.91488
  5  2.86938e-08
  6  4.66745
  7  5.6265e-06
  8  18.0525
  9  2.32445
  10  2.85072e-06
  11  0.00073513
  12  65.4104
  13  24.9887
  14  4.25046
  15  4.33965
  16  0.000622785
  17  0.000279231
  18  0.000789906
  19  65.2485
  20  0.303211
  21  0.00137743
  22  9.33437
  23  114.802
  24  1.46385e-06
  25  3.11671
  26  0.0663023
  27  3.00556
  28  0.174606
  29  0.211386
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  2.822e+00  4.250e+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:  6.151e-01  2.114e-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:  1.292e+00  1.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/979151/likelihoodResults_590544001_590803201_4FGL_J1033.1+4115_daily_bin1355.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5970.3318374
delta logL = 1.15874243932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5970.29791862
delta logL = 1.19266122803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81996       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0313       1.0000          .0000       10.000    
     3 'Normalizat'    1.2324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66376       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=   5970.298     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      252 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82031        8.7064        .10372E-01    .77818E-03
   2  Index         4.0311        3.0294        .14240        .12115E-03
   3  Normalizat    1.2324        .42759E-01    .34140E-01    .62454E-06
   4  Prefactor     .66376        .53328E-01    .76671E-01    .25001E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.820309
  Index      = 4.03108
  Normalizat = 1.23243
  Prefactor  = 0.663758
 **********
 **   18 **HESSE 
 **********

 FCN=   5970.298     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      287 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82031        19.758        .47182E-03   -1.5527    
   2  Index         4.0311        6.9864        .53207E-02   -.19502    
   3  Normalizat    1.2324        .16765        .20679E-03   -.85606    
   4  Prefactor     .66376        .20659        .33945E-03   -1.0496    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48498e-10
Minuit parameter uncertainties:
  1  8.05434
  2  5.99907
  3  0.16772
  4  0.206828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/979151': 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): 102
logL (Free Index) = 5970.29791855
delta logL = 1.19266129152

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  8.203e-01  8.054e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  4.031e+00  5.999e+00  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  6.638e-01  2.068e-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:  1.232e+00  1.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.04
Ra Dec: 158.275 41.262
Photon Index (Free Index): 4.03 +/- 6.00
Photon Flux (Free Index): 6.34e-08 +/- 4.53e-08
Energy Flux (Free Index): 9.44e-06 +/- 1.31e-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/979151/cmap_HighResolution_590544001_590803201_4FGL_J1033.1+4115_daily_bin1355.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.90e-03', comment='SUCCESS', energy_flux2='9.44e-06', dlogl='1.19e+00', photon_flux2='6.34e-08', job_status='DONE', time_completed='2021-09-02 03:51:41.971276', photon_index_error2='6.00', photon_index2='4.03', ts='0.55', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='8.93e-08', energy_flux_error2='1.31e-05', EG='1.29', time_epoch_completed='1630579901.97', return_code='0', job_id='979151', GAL2='0.66', EG2='1.23', return_code2='102', photon_flux_error2='4.53e-08', ts2='3.04', photon_index='2.41' WHERE bin_id='1355' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:51:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 979151: <4FGL_J1033.1+4115_daily_bin1355> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin1355> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 03:35:27 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:36:02 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:36:02 2021
Terminated at Thu Sep  2 03:51:42 2021
Results reported at Thu Sep  2 03:51:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin1355 158.275 41.262 590544001 590803201 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 :                                   918.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            975 sec.

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

