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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin757
RA = 158.275, Dec = 41.262
tmin = 435542401, tmax = 435801601
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='974865', job_status='RUN', time_executed='2021-09-02 03:22:58.390142', time_epoch_executed='1630578178.39' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974865/ft1_4FGL_J1033.1+4115_daily_bin757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974865/ft2_4FGL_J1033.1+4115_daily_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974865/ft1_4FGL_J1033.1+4115_daily_bin757.fits outfile=/scratch/kocevski/974865/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin757.fits ra=158.275 dec=41.262 rad=12.0 tmin=435542401.0 tmax=435801601.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 5.81
user 5.31
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974865/ft1_filtered_4FGL_J1033.1+4115_daily_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/974865/ft2_4FGL_J1033.1+4115_daily_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/974865/ltcube_435542401_435801601_4FGL_J1033.1+4115_daily_bin757.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/974865/ft2_4FGL_J1033.1+4115_daily_bin757.fits
.....................!
real 15.22
user 14.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974865/ft1_filtered_4FGL_J1033.1+4115_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/974865/ft2_4FGL_J1033.1+4115_daily_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/974865/ltcube_435542401_435801601_4FGL_J1033.1+4115_daily_bin757.fits outfile=/scratch/kocevski/974865/expmap_435542401_435801601_4FGL_J1033.1+4115_daily_bin757.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/974865/ltcube_435542401_435801601_4FGL_J1033.1+4115_daily_bin757.fits
.....................!
real 190.99
user 186.12
sys 4.04

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/974865/ft1_filtered_4FGL_J1033.1+4115_daily_bin757.fits scfile=/scratch/kocevski/974865/ft2_4FGL_J1033.1+4115_daily_bin757.fits outfile=/scratch/kocevski/974865/cmap_435542401_435801601_4FGL_J1033.1+4115_daily_bin757.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.65
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974865/ft1_filtered_4FGL_J1033.1+4115_daily_bin757.fits scfile=/scratch/kocevski/974865/ft2_4FGL_J1033.1+4115_daily_bin757.fits outfile=/scratch/kocevski/974865/cmap_HighResolution_435542401_435801601_4FGL_J1033.1+4115_daily_bin757.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.724       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.953       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7875       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7865       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.8179       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0671       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3997       1.0000         .10000E-03   10000.    
    12 'Prefactor '    84.744       1.0000         .10000E-03   10000.    
    13 'Prefactor '    76.527       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.445       1.0000         .10000E-03   10000.    
    19 'Prefactor '    182.28       1.0000         .10000E-03   10000.    
    20 'norm      '    4.2109       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2238       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.3556       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.1850       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .75366       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2419       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=   5171.840     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3714 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.454        .12964E-06** at limit **
   2  Prefactor     22.729        35.939        .10225E-05    .26582E-05
   3  Prefactor     19.952        36.831       -.15542E-05   -.29760E-04
   4  Prefactor     5.7877        6.1919       -.72495E-06   -.12409E-03
   5  norm          .10000E-03    4.8653        .46244E-07** at limit **
   6  Prefactor     2.7864        5.9972       -.94833E-06   -.22606E-03
   7  Prefactor     .10000E-03    2.7189       -.34013E-07** at limit **
   8  Prefactor     .10000E-03    24.628        .42984E-05** at limit **
   9  norm          3.8180        2.7313        .86944E-07    .34144E-04
  10  Prefactor     3.0669        5.4103       -.31775E-06   -.13894E-03
  11  norm          3.3995        9.9513        .32783E-05   -.61170E-03
  12  Prefactor     84.736        72.896       -.29872E-05   -.57204E-04
  13  Prefactor     76.541        56.756        .39409E-05    .14353E-03
  14  Prefactor     .10000E-03    3.6224       -.28629E-06** at limit **
  15  Prefactor     .10000E-03    13.740       -.22048E-06** at limit **
  16  Prefactor     .10001E-03    221.02       -.29681E-05** at limit **
  17  Prefactor     .10000E-03    32.272       -.51043E-05** at limit **
  18  Prefactor     34.443        26.144        .45662E-06    .26188E-04
  19  Prefactor     182.29        133.71        .20224E-05    .25621E-04
  20  norm          4.2109        .63166       -.15148E-07    .10532E-03
  21  Prefactor     8.2216        26.238        .54032E-06    .75319E-05
  22  Prefactor     .10000E-03    9.9490       -.17667E-06** at limit **
  23  Prefactor     .10000E-03    39.930        .29380E-05** at limit **
  24  norm          4.3540        25.520        .79571E-06    .38147E-06
  25  Prefactor     .10000E-03    1.9149       -.27306E-07** at limit **
  26  Prefactor     .10000E-03    21.836       -.21993E-05** at limit **
  27  norm          2.1847        2.9438        .37112E-07   -.73093E-04
  28  Normalizat    .75348        .19587       -.26692E-06    .48007E-05
  29  Prefactor     1.2422        .23538       -.50578E-06    .24339E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 22.7289
  Prefactor  = 19.9516
  Prefactor  = 5.7877
  norm       = 0.0001
  Prefactor  = 2.78637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.81798
  Prefactor  = 3.06695
  norm       = 3.39949
  Prefactor  = 84.7359
  Prefactor  = 76.5409
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 34.4431
  Prefactor  = 182.285
  norm       = 4.21093
  Prefactor  = 8.22159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.35396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18472
  Normalizat = 0.753483
  Prefactor  = 1.24219
 **********
 **   18 **HESSE 
 **********

 FCN=   5171.840     FROM HESSE     STATUS=OK           549 CALLS     4263 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.729        36.100        .84027E-04   -1.4754    
   3  Prefactor     19.952        36.781        .89665E-04   -1.4814    
   4  Prefactor     5.7877        6.2002        .16695E-03   -1.5227    
   5  norm          .10000E-03    4.8725        .15491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7864        6.0784        .24375E-03   -1.5374    
   7  Prefactor     .10000E-03    2.7441        .11515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.8180        2.7296        .96960E-04   -1.5317    
  10  Prefactor     3.0669        5.3782        .20494E-03   -1.5358    
  11  norm          3.3995        15.333        .10971E-02   -1.5339    
  12  Prefactor     84.736        73.285        .43638E-04   -1.3864    
  13  Prefactor     76.541        59.800        .45902E-04   -1.3956    
  14  Prefactor     .10000E-03    3.6711        .13378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    226.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.443        26.144        .68280E-04   -1.4534    
  19  Prefactor     182.29        134.14        .29901E-04   -1.2999    
  20  norm          4.2109        .63366        .20586E-04   -1.5298    
  21  Prefactor     8.2216        25.886        .13980E-03   -1.5134    
  22  Prefactor     .10000E-03    9.9655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    39.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.3540        24.753        .19300E-03   -1.5291    
  25  Prefactor     .10000E-03    1.9342        .97109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.1847        2.9275        .13868E-03   -1.5412    
  28  Normalizat    .75348        .23510        .27964E-03   -1.0182    
  29  Prefactor     1.2422        .28033        .28624E-03   -.85043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99734e-09
Minuit parameter uncertainties:
  1  4.97282e-06
  2  36.1344
  3  36.8226
  4  6.2009
  5  4.88969e-06
  6  6.07974
  7  5.70364e-06
  8  0.000207785
  9  2.72972
  10  5.37905
  11  14.4454
  12  73.3632
  13  59.8465
  14  2.58778e-05
  15  0.000300867
  16  0.00272734
  17  0.000332691
  18  26.1528
  19  134.364
  20  0.633661
  21  25.9209
  22  1.00594e-05
  23  0.000213105
  24  20.7756
  25  1.47096e-06
  26  0.00011934
  27  2.92771
  28  0.235417
  29  0.280667
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  2.588e-05  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:  1.242e+00  2.807e-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:  7.535e-01  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/974865/likelihoodResults_435542401_435801601_4FGL_J1033.1+4115_daily_bin757.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) = 5171.8408614
delta logL = -0.00129623295743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5171.83956612
delta logL = -9.52926711761e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10603E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4306       1.0000          .0000       10.000    
     3 'Normalizat'    .75336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2424       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=   5171.832     FROM MIGRAD    STATUS=CONVERGED    177 CALLS      332 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96343E-02    .55171        .81184E-02   -.33780E-02
   2  Index         5.4613        2.3774        .50000        .46116E-05
   3  Normalizat    .74330        .17455E-01    .27964E-03    .61308E-04
   4  Prefactor     1.2504        .22426E-01    .28624E-03    .52148E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00963431
  Index      = 5.46127
  Normalizat = 0.743303
  Prefactor  = 1.25039
 **********
 **   18 **HESSE 
 **********

 FCN=   5171.832     FROM HESSE     STATUS=OK            31 CALLS      363 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96343E-02    .34548        .28339E-03   -1.5727    
   2  Index         5.4613        7.6066        .94962E-02    .92386E-01
   3  Normalizat    .74330        .22996        .11185E-04   -1.0221    
   4  Prefactor     1.2504        .28385        .11450E-04   -.84794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01844e-08
Minuit parameter uncertainties:
  1  0.114786
  2  6.70578
  3  0.230263
  4  0.284202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974865': 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) = 5171.83219071
delta logL = 0.00737444832157

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  9.634e-03  1.148e-01  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  5.461e+00  6.706e+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.250e+00  2.842e-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:  7.433e-01  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/974865/cmap_HighResolution_435542401_435801601_4FGL_J1033.1+4115_daily_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', job_status='DONE', photon_flux_upper_limit='8.71e-08', time_completed='2021-09-02 03:36:54.775273', job_id='974865', GAL2='1.25', fit_tolerance='1e-08', EG2='0.74', EG='0.75', time_epoch_completed='1630579014.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='7.37e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='757' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:36:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 974865: <4FGL_J1033.1+4115_daily_bin757> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin757> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 03:20:39 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:21:01 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:21:01 2021
Terminated at Thu Sep  2 03:36:55 2021
Results reported at Thu Sep  2 03:36:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin757 158.275 41.262 435542401 435801601 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 :                                   828.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            976 sec.

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

