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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin909
RA = 158.275, Dec = 41.262
tmin = 474940801, tmax = 475200001
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='976416', job_status='RUN', time_executed='2021-09-02 03:26:38.276392', time_epoch_executed='1630578398.28' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='909'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/976416

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/976416/ft1_4FGL_J1033.1+4115_daily_bin909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/976416/ft2_4FGL_J1033.1+4115_daily_bin909.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/976416/ft1_4FGL_J1033.1+4115_daily_bin909.fits outfile=/scratch/kocevski/976416/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin909.fits ra=158.275 dec=41.262 rad=12.0 tmin=474940801.0 tmax=475200001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.78
user 3.42
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/976416/ft1_filtered_4FGL_J1033.1+4115_daily_bin909.fits" evtable="EVENTS" scfile=/scratch/kocevski/976416/ft2_4FGL_J1033.1+4115_daily_bin909.fits sctable="SC_DATA" outfile=/scratch/kocevski/976416/ltcube_474940801_475200001_4FGL_J1033.1+4115_daily_bin909.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/976416/ft2_4FGL_J1033.1+4115_daily_bin909.fits
.....................!
real 18.76
user 18.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/976416/ft1_filtered_4FGL_J1033.1+4115_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/976416/ft2_4FGL_J1033.1+4115_daily_bin909.fits sctable="SC_DATA" expcube=/scratch/kocevski/976416/ltcube_474940801_475200001_4FGL_J1033.1+4115_daily_bin909.fits outfile=/scratch/kocevski/976416/expmap_474940801_475200001_4FGL_J1033.1+4115_daily_bin909.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/976416/ltcube_474940801_475200001_4FGL_J1033.1+4115_daily_bin909.fits
.....................!
real 191.85
user 186.90
sys 3.85

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/976416/ft1_filtered_4FGL_J1033.1+4115_daily_bin909.fits scfile=/scratch/kocevski/976416/ft2_4FGL_J1033.1+4115_daily_bin909.fits outfile=/scratch/kocevski/976416/cmap_474940801_475200001_4FGL_J1033.1+4115_daily_bin909.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/976416/ft1_filtered_4FGL_J1033.1+4115_daily_bin909.fits scfile=/scratch/kocevski/976416/ft2_4FGL_J1033.1+4115_daily_bin909.fits outfile=/scratch/kocevski/976416/cmap_HighResolution_474940801_475200001_4FGL_J1033.1+4115_daily_bin909.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.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.907       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.889       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.813       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8988       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8617       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4500       1.0000         .10000E-03   10000.    
     9 'norm      '    5.4261       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.517       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11245E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8904       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    75.167       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32845       1.0000         .10000E-03   10000.    
    19 'Prefactor '    72.043       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9567       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5886       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    71.197       1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10676E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .15018E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    4.5742       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80095       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97792       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=   5242.998     FROM MIGRAD    STATUS=CONVERGED   1296 CALLS     4282 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.908        12.642        .12131E-03   -.65600E-06
   2  Prefactor     25.880        32.062        .78731E-04   -.44764E-05
   3  Prefactor     31.772        38.605        .71040E-04   -.10562E-04
   4  Prefactor     5.8992        8.4212        .16534E-03   -.81135E-05
   5  norm          3.4392        13.413        .21795E-03   -.94413E-05
   6  Prefactor     2.8606        6.0822        .24031E-03    .11922E-04
   7  Prefactor     .10000E-03    1.0659        .72773E-03** at limit **
   8  Prefactor     9.4499        16.313        .13037E-03   -.40115E-05
   9  norm          5.4263        3.4800        .10349E-03   -.51303E-04
  10  Prefactor     .10000E-03    1.2989        .80247E-03** at limit **
  11  norm          15.519        9.5509        .10168E-03   -.25605E-04
  12  Prefactor     .10000E-03    29.444        .18142E-02** at limit **
  13  Prefactor     .10000E-03    41.584        .18142E-02** at limit **
  14  Prefactor     3.8915        4.4591        .15372E-03    .13223E-04
  15  Prefactor     .10000E-03    2.2580        .10581E-02** at limit **
  16  Prefactor     .10000E-03    8.7856        .18142E-02** at limit **
  17  Prefactor     75.107        98.974        .23156E-03   -.69716E-05
  18  Prefactor     .38008        29.670        .10221        .15131E-03
  19  Prefactor     72.037        75.548        .47298E-04   -.45188E-05
  20  norm          2.9567        .46712        .18869E-04   -.23437E-03
  21  Prefactor     6.5872        8.3585        .15634E-03   -.12507E-04
  22  Prefactor     .10000E-03    4.2373        .14554E-02** at limit **
  23  Prefactor     71.191        77.806        .47576E-04   -.20072E-05
  24  norm          .10000E-03    6.3589        .17753E-02** at limit **
  25  Prefactor     .10000E-03    1.9845        .19582E-03** at limit **
  26  Prefactor     .10000E-03    136.86        .40940E-03** at limit **
  27  norm          4.5635        2.8725        .94416E-04   -.95606E-04
  28  Normalizat    .80087        .20061        .24003E-03   -.58353E-04
  29  Prefactor     .97802        .24400        .28219E-03   -.13202E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9082
  Prefactor  = 25.8801
  Prefactor  = 31.7723
  Prefactor  = 5.89916
  norm       = 3.43918
  Prefactor  = 2.86064
  Prefactor  = 0.0001
  Prefactor  = 9.44986
  norm       = 5.42625
  Prefactor  = 0.0001
  norm       = 15.5192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.89146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.1068
  Prefactor  = 0.380082
  Prefactor  = 72.037
  norm       = 2.95668
  Prefactor  = 6.58721
  Prefactor  = 0.0001
  Prefactor  = 71.1913
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 4.56354
  Normalizat = 0.800865
  Prefactor  = 0.978016
 **********
 **   18 **HESSE 
 **********

 FCN=   5242.998     FROM HESSE     STATUS=OK           535 CALLS     4817 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.908        12.642        .48525E-05   -1.5047    
   2  Prefactor     25.880        32.063        .31492E-05   -1.4690    
   3  Prefactor     31.772        38.609        .28416E-05   -1.4580    
   4  Prefactor     5.8992        8.4207        .66137E-05   -1.5222    
   5  norm          3.4392        13.410        .87180E-05   -1.5337    
   6  Prefactor     2.8606        6.0810        .96125E-05   -1.5370    
   7  Prefactor     .10000E-03    1.0660        .14555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.4499        16.313        .52146E-05   -1.5093    
   9  norm          5.4263        3.4798        .41395E-05   -1.5242    
  10  Prefactor     .10000E-03    1.2990        .16049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.519        9.5509        .40671E-05   -1.4920    
  12  Prefactor     .10000E-03    29.446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8915        4.4587        .30744E-04   -1.5313    
  15  Prefactor     .10000E-03    2.2582        .21163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.7857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     75.107        98.970        .92624E-05   -1.3973    
  18  Prefactor     .38008        27.702        .10721       -1.5585    
  19  Prefactor     72.037        75.549        .94596E-05   -1.4008    
  20  norm          2.9567        .46712        .75476E-06   -1.5364    
  21  Prefactor     6.5872        8.3584        .62536E-05   -1.5195    
  22  Prefactor     .10000E-03    4.2374        .29108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     71.191        77.805        .95153E-05   -1.4018    
  24  norm          .10000E-03    6.3611        .35506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.9845        .39164E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    136.87        .81879E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.5635        2.8724        .37767E-05   -1.5281    
  28  Normalizat    .80087        .20076        .96011E-05   -1.0004    
  29  Prefactor     .97802        .24425        .11288E-04   -.93466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15665e-10
Minuit parameter uncertainties:
  1  12.6447
  2  32.0845
  3  38.6392
  4  8.42243
  5  13.4215
  6  6.08227
  7  1.98117e-06
  8  16.3211
  9  3.47991
  10  2.33966e-06
  11  9.55181
  12  1.86461e-05
  13  6.59994e-05
  14  4.45907
  15  5.04252e-06
  16  2.60868e-06
  17  99.1876
  18  6.49196
  19  75.6496
  20  0.467117
  21  8.35987
  22  8.61022e-07
  23  77.9167
  24  4.04084e-06
  25  8.17754e-06
  26  0.000952558
  27  2.8725
  28  0.200948
  29  0.244523
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  3.891e+00  4.459e+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.780e-01  2.445e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  8.009e-01  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.86e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 9.22e-06 +/- 1.06e-05

TS (Fixed Index): 1.07
Ra Dec: 158.275 41.262
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/976416/likelihoodResults_474940801_475200001_4FGL_J1033.1+4115_daily_bin909.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) = 5239.72054683
delta logL = 3.27793336894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5239.53892983
delta logL = 3.45955037671

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.4620       1.0000          .0000       10.000    
     3 'Normalizat'    .68868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0955       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=   5239.539     FROM MIGRAD    STATUS=CONVERGED    223 CALLS      721 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .42194E-02    .24361E-03** at limit **
   2  Index         9.4620        6.1381        .86801E-02   -.47771E-04
   3  Normalizat    .68885        .87840E-01    .25575E-03   -.18879E-03
   4  Prefactor     1.0955        .11335        .26883E-03   -.26243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.46203
  Normalizat = 0.688846
  Prefactor  = 1.09551
 **********
 **   18 **HESSE 
 **********

 FCN=   5239.539     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      754 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .41828E-02    .24361E-03   -76.969    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.4620        6.1220        .34721E-03   -594.86    
   3  Normalizat    .68885        .86489E-01    .10230E-04   -19.893    
   4  Prefactor     1.0955        .11167        .53766E-04   -7.1793    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2492e-08
Minuit parameter uncertainties:
  1  2.23593e-08
  2  3.56319
  3  0.0865061
  4  0.111698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/976416': 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) = 5239.53892726
delta logL = 3.45955294369

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  2.236e-08  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  9.462e+00  3.563e+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:  1.096e+00  1.117e-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:  6.888e-01  8.651e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.38
Ra Dec: 158.275 41.262
Photon Index (Free Index): 9.46 +/- 3.56
Photon Flux (Free Index): 9.79e-08 +/- 6.12e-07
Energy Flux (Free Index): 1.10e-05 +/- 6.88e-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/976416/cmap_HighResolution_474940801_475200001_4FGL_J1033.1+4115_daily_bin909.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.83e-03', comment='SUCCESS', photon_flux='2.86e-08', energy_flux2='1.10e-05', photon_flux_error='3.27e-08', dlogl='3.46e+00', energy_flux='9.22e-06', photon_flux2='9.79e-08', job_status='DONE', time_completed='2021-09-02 03:42:22.153935', photon_index_error2='3.56', photon_index2='9.46', ts='1.07', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='6.88e-05', EG='0.80', time_epoch_completed='1630579342.15', return_code='0', job_id='976416', GAL2='1.10', EG2='0.69', return_code2='102', energy_flux_error='1.06e-05', photon_flux_error2='6.12e-07', ts2='8.38', photon_index='2.41' WHERE bin_id='909' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:42:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 976416: <4FGL_J1033.1+4115_daily_bin909> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin909> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  2 03:25:45 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:26:28 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:26:28 2021
Terminated at Thu Sep  2 03:42:23 2021
Results reported at Thu Sep  2 03:42:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin909 158.275 41.262 474940801 475200001 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 :                                   938.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            998 sec.

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

