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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin693
RA = 158.275, Dec = 41.262
tmin = 418953601, tmax = 419212801
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='974775', job_status='RUN', time_executed='2021-09-02 03:24:57.441763', time_epoch_executed='1630578297.44' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974775

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974775/ft1_4FGL_J1033.1+4115_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974775/ft2_4FGL_J1033.1+4115_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974775/ft1_4FGL_J1033.1+4115_daily_bin693.fits outfile=/scratch/kocevski/974775/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin693.fits ra=158.275 dec=41.262 rad=12.0 tmin=418953601.0 tmax=419212801.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.23
user 5.42
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974775/ft1_filtered_4FGL_J1033.1+4115_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/974775/ft2_4FGL_J1033.1+4115_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/974775/ltcube_418953601_419212801_4FGL_J1033.1+4115_daily_bin693.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/974775/ft2_4FGL_J1033.1+4115_daily_bin693.fits
.....................!
real 19.00
user 18.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974775/ft1_filtered_4FGL_J1033.1+4115_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/974775/ft2_4FGL_J1033.1+4115_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/974775/ltcube_418953601_419212801_4FGL_J1033.1+4115_daily_bin693.fits outfile=/scratch/kocevski/974775/expmap_418953601_419212801_4FGL_J1033.1+4115_daily_bin693.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/974775/ltcube_418953601_419212801_4FGL_J1033.1+4115_daily_bin693.fits
.....................!
real 192.01
user 186.13
sys 5.23

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/974775/ft1_filtered_4FGL_J1033.1+4115_daily_bin693.fits scfile=/scratch/kocevski/974775/ft2_4FGL_J1033.1+4115_daily_bin693.fits outfile=/scratch/kocevski/974775/cmap_418953601_419212801_4FGL_J1033.1+4115_daily_bin693.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.60
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974775/ft1_filtered_4FGL_J1033.1+4115_daily_bin693.fits scfile=/scratch/kocevski/974775/ft2_4FGL_J1033.1+4115_daily_bin693.fits outfile=/scratch/kocevski/974775/cmap_HighResolution_418953601_419212801_4FGL_J1033.1+4115_daily_bin693.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.59
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.1049       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.102       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3996       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6654       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5446       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.1312       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.0291       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.740       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.0263       1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.763       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.1894       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .95203       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77368       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=   5536.762     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3112 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1062        13.679        .10550E-05   -.36741E-04
   2  Prefactor     14.102        20.798       -.27510E-06   -.56837E-05
   3  Prefactor     .10000E-03    18.363       -.15126E-06** at limit **
   4  Prefactor     1.3979        5.0510        .91657E-06   -.96329E-04
   5  norm          .10000E-03    6.0977       -.82466E-07** at limit **
   6  Prefactor     3.6660        6.5369        .50448E-06   -.25248E-04
   7  Prefactor     2.5448        2.5476        .13107E-07   -.19605E-04
   8  Prefactor     .10000E-03    15.113        .10117E-05** at limit **
   9  norm          8.1312        3.2720       -.18141E-07   -.39072E-04
  10  Prefactor     .10000E-03    .96889       -.10381E-07** at limit **
  11  norm          7.0287        8.1660        .21419E-05   -.16601E-03
  12  Prefactor     .10000E-03    68.341       -.46873E-05** at limit **
  13  Prefactor     .10000E-03    9.0236        .46683E-06** at limit **
  14  Prefactor     22.740        6.2251       -.94029E-07   -.78946E-05
  15  Prefactor     .10000E-03    1.3867       -.92601E-08** at limit **
  16  Prefactor     .10000E-03    30.101       -.85847E-06** at limit **
  17  Prefactor     .10000E-03    48.393        .28546E-05** at limit **
  18  Prefactor     .10000E-03    10.146       -.47817E-06** at limit **
  19  Prefactor     .10000E-03    33.797        .43178E-06** at limit **
  20  norm          3.0263        .51638        .81137E-10    .31996E-04
  21  Prefactor     38.760        20.250       -.17367E-07    .15393E-05
  22  Prefactor     .10000E-03    11.047       -.42112E-06** at limit **
  23  Prefactor     .10000E-03    40.150        .23922E-05** at limit **
  24  norm          .10000E-03    5.3720        .33994E-07** at limit **
  25  Prefactor     .10000E-03    1.5905       -.15925E-07** at limit **
  26  Prefactor     .10000E-03    25.745       -.18615E-05** at limit **
  27  norm          2.1893        2.6421        .87612E-07    .67135E-05
  28  Normalizat    .95206        .16274       -.37393E-06   -.90150E-05
  29  Prefactor     .77367        .19673       -.35178E-06   -.14938E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.10622
  Prefactor  = 14.1016
  Prefactor  = 0.0001
  Prefactor  = 1.39786
  norm       = 0.0001
  Prefactor  = 3.666
  Prefactor  = 2.54483
  Prefactor  = 0.0001
  norm       = 8.13117
  Prefactor  = 0.0001
  norm       = 7.02869
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 22.7402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.02631
  Prefactor  = 38.7598
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18931
  Normalizat = 0.952061
  Prefactor  = 0.773668
 **********
 **   18 **HESSE 
 **********

 FCN=   5536.762     FROM HESSE     STATUS=OK           549 CALLS     3661 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1062        13.686        .66412E-03   -1.5104    
   2  Prefactor     14.102        20.796        .10666E-03   -1.4957    
   3  Prefactor     .10000E-03    18.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3979        5.0468        .31125E-03   -1.5472    
   5  norm          .10000E-03    6.1208        .17939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6660        6.5749        .21098E-03   -1.5325    
   7  Prefactor     2.5448        2.5369        .11486E-03   -1.5389    
   8  Prefactor     .10000E-03    15.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.1312        3.2717        .81983E-04   -1.5138    
  10  Prefactor     .10000E-03    .97030        .71505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.0287        8.2438        .75656E-03   -1.5178    
  12  Prefactor     .10000E-03    70.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.0465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.740        6.2392        .83997E-04   -1.4754    
  15  Prefactor     .10000E-03    1.3896        .85565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    49.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    33.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0263        .51901        .20433E-04   -1.5360    
  21  Prefactor     38.760        20.360        .64377E-04   -1.4462    
  22  Prefactor     .10000E-03    11.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    40.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.3830        .16842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.6359        .18310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    26.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.1893        2.6282        .12832E-03   -1.5412    
  28  Normalizat    .95206        .19182        .22358E-03   -.94654    
  29  Prefactor     .77367        .23064        .30777E-03   -1.0071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48932e-10
Minuit parameter uncertainties:
  1  13.6912
  2  20.8063
  3  1.56286e-05
  4  5.04834
  5  4.83478e-06
  6  6.57616
  7  2.53696
  8  7.46684e-05
  9  3.2718
  10  1.90828e-07
  11  8.2451
  12  0.000803105
  13  2.99548e-05
  14  6.23939
  15  5.53315e-07
  16  0.000104415
  17  0.000441429
  18  3.23395e-05
  19  5.90982e-05
  20  0.51901
  21  20.3639
  22  2.73105e-05
  23  0.000344857
  24  3.32986e-06
  25  1.51891e-06
  26  0.000208333
  27  2.62831
  28  0.191961
  29  0.230928
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  2.274e+01  6.239e+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:  7.737e-01  2.309e-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.521e-01  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 50.45
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.67e-07 +/- 4.58e-08
Energy Flux (Fixed Index): 5.39e-05 +/- 1.48e-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) = 5534.57188915
delta logL = 2.19050017646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5534.3734798
delta logL = 2.38890951989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.646       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9035       1.0000          .0000       10.000    
     3 'Normalizat'    1.0048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73333       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=   5534.373     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      213 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.646        8.2696        .19048E-02    .32410E-02
   2  Index         1.9034        .21952        .89966E-01   -.19424E-04
   3  Normalizat    1.0048        .15653        .46227E-01    .92432E-05
   4  Prefactor     .73331        .19502        .71252E-01    .15385E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.6455
  Index      = 1.90343
  Normalizat = 1.00479
  Prefactor  = 0.733307
 **********
 **   18 **HESSE 
 **********

 FCN=   5534.373     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.646        7.9835        .76194E-04   -1.4656    
   2  Index         1.9034        .21824        .38612E-02   -.66787    
   3  Normalizat    1.0048        .18254        .21864E-03   -.92870    
   4  Prefactor     .73331        .22656        .31533E-03   -1.0224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43175e-09
Minuit parameter uncertainties:
  1  7.98381
  2  0.218356
  3  0.18265
  4  0.226851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974775': 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) = 5534.37347969
delta logL = 2.38890962774

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  2.765e+01  7.984e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  1.903e+00  2.184e-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:  7.333e-01  2.269e-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.005e+00  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 54.95
Ra Dec: 158.275 41.262
Photon Index (Free Index): 1.90 +/- 0.22
Photon Flux (Free Index): 1.19e-07 +/- 4.15e-08
Energy Flux (Free Index): 1.06e-04 +/- 5.24e-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/974775/cmap_HighResolution_418953601_419212801_4FGL_J1033.1+4115_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.67e-07', energy_flux2='1.06e-04', photon_flux_error='4.58e-08', dlogl='2.39e+00', energy_flux='5.39e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-02 03:37:05.669871', photon_index_error2='0.22', photon_index2='1.90', ts='50.45', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='5.24e-05', EG='0.95', time_epoch_completed='1630579025.67', return_code='0', job_id='974775', GAL2='0.73', EG2='1.00', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='4.15e-08', ts2='54.95', photon_index='2.41' WHERE bin_id='693' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:37:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 974775: <4FGL_J1033.1+4115_daily_bin693> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin693> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 03:20:32 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:20:47 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:20:47 2021
Terminated at Thu Sep  2 03:37:06 2021
Results reported at Thu Sep  2 03:37:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin693 158.275 41.262 418953601 419212801 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 :                                   724.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            994 sec.

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

