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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin1072
RA = 158.275, Dec = 41.262
tmin = 517190401, tmax = 517449601
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='977569', job_status='RUN', time_executed='2021-09-02 03:31:14.537230', time_epoch_executed='1630578674.54' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='1072'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/977569

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/977569/ft1_4FGL_J1033.1+4115_daily_bin1072.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/977569/ft2_4FGL_J1033.1+4115_daily_bin1072.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/977569/ft1_4FGL_J1033.1+4115_daily_bin1072.fits outfile=/scratch/kocevski/977569/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1072.fits ra=158.275 dec=41.262 rad=12.0 tmin=517190401.0 tmax=517449601.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.63
user 4.37
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/977569/ft2_4FGL_J1033.1+4115_daily_bin1072.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/977569/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1072.fits evtable="EVENTS" outfile="/scratch/kocevski/977569/ft1_filtered_4FGL_J1033.1+4115_daily_bin1072.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.63
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/977569/ft1_filtered_4FGL_J1033.1+4115_daily_bin1072.fits" evtable="EVENTS" scfile=/scratch/kocevski/977569/ft2_4FGL_J1033.1+4115_daily_bin1072.fits sctable="SC_DATA" outfile=/scratch/kocevski/977569/ltcube_517190401_517449601_4FGL_J1033.1+4115_daily_bin1072.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/977569/ft2_4FGL_J1033.1+4115_daily_bin1072.fits
.....................!
real 14.73
user 14.17
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/977569/ft1_filtered_4FGL_J1033.1+4115_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/977569/ft2_4FGL_J1033.1+4115_daily_bin1072.fits sctable="SC_DATA" expcube=/scratch/kocevski/977569/ltcube_517190401_517449601_4FGL_J1033.1+4115_daily_bin1072.fits outfile=/scratch/kocevski/977569/expmap_517190401_517449601_4FGL_J1033.1+4115_daily_bin1072.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/977569/ltcube_517190401_517449601_4FGL_J1033.1+4115_daily_bin1072.fits
.....................!
real 193.14
user 186.11
sys 5.11

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/977569/ft1_filtered_4FGL_J1033.1+4115_daily_bin1072.fits scfile=/scratch/kocevski/977569/ft2_4FGL_J1033.1+4115_daily_bin1072.fits outfile=/scratch/kocevski/977569/cmap_517190401_517449601_4FGL_J1033.1+4115_daily_bin1072.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=158.275 yref=41.262 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8005       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.021       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3154       1.0000         .10000E-03   10000.    
     5 'norm      '    34.594       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.0561       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0021       1.0000         .10000E-03   10000.    
    11 'norm      '    6.2790       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5104       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1785       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.428       1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.039       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    113.26       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1598       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7228       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.5835       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12222E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.700       1.0000         .10000E-03   10000.    
    27 'norm      '    2.2945       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94521       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94717       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=   6455.337     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     3080 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8036        1.0231       -.36962E-07   -.69079E-04
   2  Prefactor     35.012        1.1443        .25104E-07    .18949E-02
   3  Prefactor     .10000E-03    24.524        .48223E-05** at limit **
   4  Prefactor     9.3166        1.0039       -.27581E-08    .35864E-03
   5  norm          34.596        1.0110       -.17154E-07    .62738E-03
   6  Prefactor     .10000E-03    1.4151       -.26126E-06** at limit **
   7  Prefactor     .10000E-03    2.4320       -.82693E-07** at limit **
   8  Prefactor     .10000E-03    24.562        .48099E-05** at limit **
   9  norm          6.0559        2.6548       -.36383E-06   -.84220E-03
  10  Prefactor     1.0023        2.7054        .17049E-06    .29481E-04
  11  norm          6.2803        1.0164        .85598E-08   -.11442E-02
  12  Prefactor     .10005E-03    26.412        .59446E-05** at limit **
  13  Prefactor     .10000E-03    11.840       -.91358E-07** at limit **
  14  Prefactor     1.5104        1.2667        .33696E-06   -.31292E-02
  15  Prefactor     5.1780        3.9741       -.10936E-06    .10701E-04
  16  Prefactor     29.430        1.0239       -.12204E-08   -.17454E-02
  17  Prefactor     70.043        1.1106       -.96122E-09   -.44325E-02
  18  Prefactor     .10000E-03    17.987        .35087E-05** at limit **
  19  Prefactor     113.26        1.0139       -.22943E-09   -.20054E-02
  20  norm          1.1598        .29727        .37580E-07    .10713E-02
  21  Prefactor     9.7182        1.0222        .38822E-07   -.40470E-04
  22  Prefactor     .10000E-03    4.4717        .12404E-06** at limit **
  23  Prefactor     .10034E-03    24.319        .49243E-05** at limit **
  24  norm          1.5815        1.0660       -.14622E-07   -.49860E-05
  25  Prefactor     .10000E-03    4.1270        .49548E-07** at limit **
  26  Prefactor     20.673        2.6378        .27959E-07    .11278E-01
  27  norm          2.2926        2.5392        .14324E-07   -.15444E-03
  28  Normalizat    .94509        .17694       -.29113E-06   -.25976E-04
  29  Prefactor     .94727        .22772        .20775E-06   -.14251E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.80364
  Prefactor  = 35.0122
  Prefactor  = 0.000100001
  Prefactor  = 9.31655
  norm       = 34.5961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.05592
  Prefactor  = 1.00233
  norm       = 6.28032
  Prefactor  = 0.00010005
  Prefactor  = 0.0001
  Prefactor  = 1.51045
  Prefactor  = 5.17804
  Prefactor  = 29.4303
  Prefactor  = 70.0433
  Prefactor  = 0.000100001
  Prefactor  = 113.264
  norm       = 1.1598
  Prefactor  = 9.71822
  Prefactor  = 0.0001
  Prefactor  = 0.000100336
  norm       = 1.58155
  Prefactor  = 0.0001
  Prefactor  = 20.6733
  norm       = 2.29264
  Normalizat = 0.945087
  Prefactor  = 0.947269
 **********
 **   18 **HESSE 
 **********

 FCN=   6455.337     FROM HESSE     STATUS=OK           621 CALLS     3701 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8036        10.289        .60776E-02   -1.5373    
   2  Prefactor     35.012        24.774        .16929E-02   -1.4524    
   3  Prefactor     .10000E-03    72.620        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3166        7.8838        .32827E-02   -1.5097    
   5  norm          34.596        14.262        .17033E-02   -1.4531    
   6  Prefactor     .10000E-03    1.4110        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3817        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    72.816        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.0559        2.6667        .40788E-02   -1.5216    
  10  Prefactor     1.0023        2.7960        .13707E-01   -1.5508    
  11  norm          6.2803        9.7666        .40048E-02   -1.5207    
  12  Prefactor     .10005E-03    26.440        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.842        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5104        5.0263        .87008E-02   -1.5462    
  15  Prefactor     5.1780        4.0055        .44164E-02   -1.5253    
  16  Prefactor     29.430        34.530        .18464E-02   -1.4622    
  17  Prefactor     70.043        59.687        .11991E-02   -1.4032    
  18  Prefactor     .10000E-03    18.080        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     113.26        78.838        .94501E-03   -1.3575    
  20  norm          1.1598        .29987        .48612E-02   -1.5493    
  21  Prefactor     9.7182        11.738        .32129E-02   -1.5084    
  22  Prefactor     .10000E-03    4.4709        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10034E-03    72.292        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.5815        12.086        .84354E-02   -1.5456    
  25  Prefactor     .10000E-03    2.4196        .38800E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     20.673        43.064        .22009E-02   -1.4798    
  27  norm          2.2926        2.6651        .67741E-02   -1.5405    
  28  Normalizat    .94509        .15771        .45477E-01   -.94893    
  29  Prefactor     .94727        .19520        .66466E-01   -.94508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80257e-06
Minuit parameter uncertainties:
  1  10.2956
  2  24.781
  3  0.000525748
  4  7.88472
  5  14.2636
  6  6.99259e-06
  7  4.62261e-06
  8  0.000607808
  9  2.66678
  10  2.79637
  11  9.76903
  12  0.00229121
  13  3.42792e-05
  14  5.02767
  15  4.00568
  16  34.5536
  17  59.7386
  18  0.000201424
  19  78.911
  20  0.299874
  21  11.7408
  22  1.81877e-05
  23  0.00986179
  24  8.74629
  25  7.04197e-06
  26  43.1283
  27  2.66521
  28  0.157792
  29  0.195348
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.510e+00  5.028e+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.473e-01  1.953e-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.451e-01  1.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/977569/likelihoodResults_517190401_517449601_4FGL_J1033.1+4115_daily_bin1072.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) = 6455.24678406
delta logL = 0.0905874981736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6455.24463249
delta logL = 0.0927390751676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4548       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9395       1.0000          .0000       10.000    
     3 'Normalizat'    .93296       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95540       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6455.245     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      242 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4548        3.8162        .16849E-03   -.45207E-05
   2  Index         2.9395        1.4064        .11862E-01    .10898E-04
   3  Normalizat    .93297        .18067        .23052E-03   -.68503E-04
   4  Prefactor     .95540        .22830        .29283E-03   -.44530E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.45477
  Index      = 2.93949
  Normalizat = 0.93297
  Prefactor  = 0.955397
 **********
 **   18 **HESSE 
 **********

 FCN=   6455.245     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4548        3.3855        .67397E-05   -1.5467    
   2  Index         2.9395        1.2509        .47449E-03   -.42476    
   3  Normalizat    .93297        .18098        .92207E-05   -.95311    
   4  Prefactor     .95540        .22849        .11713E-04   -.94231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41252e-12
Minuit parameter uncertainties:
  1  3.3859
  2  1.26722
  3  0.181098
  4  0.228718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/977569': 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) = 6455.24463248
delta logL = 0.0927390788174

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.455e+00  3.386e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.939e+00  1.267e+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:  9.554e-01  2.287e-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.330e-01  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 158.275 41.262

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/977569/cmap_HighResolution_517190401_517449601_4FGL_J1033.1+4115_daily_bin1072.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-03', job_status='DONE', photon_flux_upper_limit='8.27e-08', time_completed='2021-09-02 03:46:26.051602', job_id='977569', GAL2='0.96', fit_tolerance='1e-08', EG2='0.93', EG='0.95', time_epoch_completed='1630579586.05', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.27e-02', ts2='0.32', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1072' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:46:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 977569: <4FGL_J1033.1+4115_daily_bin1072> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin1072> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  2 03:30:33 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:30:58 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:30:58 2021
Terminated at Thu Sep  2 03:46:26 2021
Results reported at Thu Sep  2 03:46:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin1072 158.275 41.262 517190401 517449601 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 :                                   904.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             324.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            953 sec.

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

