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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin660
RA = 158.275, Dec = 41.262
tmin = 410400001, tmax = 410659201
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='974729', job_status='RUN', time_executed='2021-09-02 03:23:01.677360', time_epoch_executed='1630578181.68' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974729

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974729/ft1_4FGL_J1033.1+4115_daily_bin660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974729/ft2_4FGL_J1033.1+4115_daily_bin660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974729/ft1_4FGL_J1033.1+4115_daily_bin660.fits outfile=/scratch/kocevski/974729/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin660.fits ra=158.275 dec=41.262 rad=12.0 tmin=410400001.0 tmax=410659201.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.75
user 6.38
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974729/ft1_filtered_4FGL_J1033.1+4115_daily_bin660.fits" evtable="EVENTS" scfile=/scratch/kocevski/974729/ft2_4FGL_J1033.1+4115_daily_bin660.fits sctable="SC_DATA" outfile=/scratch/kocevski/974729/ltcube_410400001_410659201_4FGL_J1033.1+4115_daily_bin660.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/974729/ft2_4FGL_J1033.1+4115_daily_bin660.fits
.....................!
real 16.48
user 15.92
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974729/ft1_filtered_4FGL_J1033.1+4115_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/974729/ft2_4FGL_J1033.1+4115_daily_bin660.fits sctable="SC_DATA" expcube=/scratch/kocevski/974729/ltcube_410400001_410659201_4FGL_J1033.1+4115_daily_bin660.fits outfile=/scratch/kocevski/974729/expmap_410400001_410659201_4FGL_J1033.1+4115_daily_bin660.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/974729/ltcube_410400001_410659201_4FGL_J1033.1+4115_daily_bin660.fits
.....................!
real 191.48
user 186.19
sys 4.21

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

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

This is gtbin version HEAD
real 0.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974729/ft1_filtered_4FGL_J1033.1+4115_daily_bin660.fits scfile=/scratch/kocevski/974729/ft2_4FGL_J1033.1+4115_daily_bin660.fits outfile=/scratch/kocevski/974729/cmap_HighResolution_410400001_410659201_4FGL_J1033.1+4115_daily_bin660.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.42
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3819       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9739       1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0297       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.391       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .93492       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8930       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10984E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33500E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1572       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6724       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.8665       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .87766E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.841       1.0000         .10000E-03   10000.    
    27 'norm      '    2.1926       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0057       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .62144       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=   4247.930     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3225 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.7602        .32099E-07** at limit **
   2  Prefactor     2.3682        52.966        .58862E-06    .34974E-05
   3  Prefactor     .10000E-03    27.845       -.11054E-05** at limit **
   4  Prefactor     6.9725        7.9755        .58381E-07   -.59791E-05
   5  norm          .10000E-03    16.893        .14039E-05** at limit **
   6  Prefactor     2.0291        3.9297        .84698E-07   -.12143E-04
   7  Prefactor     .10000E-03    1.2067        .41738E-08** at limit **
   8  Prefactor     .10000E-03    18.547        .59553E-06** at limit **
   9  norm          11.391        3.7436        .48697E-08   -.49799E-04
  10  Prefactor     .93466        3.3914        .22765E-06    .12098E-05
  11  norm          1.8938        4.5483        .23962E-05    .26969E-03
  12  Prefactor     .10000E-03    158.76        .11723E-04** at limit **
  13  Prefactor     .10000E-03    13.203       -.55531E-06** at limit **
  14  Prefactor     .19054E-01    1.8710        .59792E-06   -.62045E-03
  15  Prefactor     2.1578        2.8179        .17465E-07    .15746E-04
  16  Prefactor     .10000E-03    8.0867       -.22200E-07** at limit **
  17  Prefactor     .10000E-03    102.31       -.84585E-05** at limit **
  18  Prefactor     9.6720        13.403        .55587E-08    .65412E-05
  19  Prefactor     .10000E-03    21.645       -.21543E-05** at limit **
  20  norm          1.8665        .41489        .31751E-08    .16078E-02
  21  Prefactor     .10011E-03    12.369       -.22383E-05** at limit **
  22  Prefactor     .10000E-03    11.856       -.78796E-06** at limit **
  23  Prefactor     .10000E-03    33.965        .29254E-05** at limit **
  24  norm          .10000E-03    11.213        .73259E-06** at limit **
  25  Prefactor     .10000E-03    1.8111       -.82141E-07** at limit **
  26  Prefactor     21.833        45.708        .10596E-05    .24292E-04
  27  norm          2.1928        2.7857       -.47357E-07    .55972E-04
  28  Normalizat    1.0057        .16455       -.43032E-06   -.17025E-04
  29  Prefactor     .62158        .19967       -.15253E-06   -.29388E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.36818
  Prefactor  = 0.0001
  Prefactor  = 6.97249
  norm       = 0.0001
  Prefactor  = 2.02908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3909
  Prefactor  = 0.93466
  norm       = 1.89384
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0190535
  Prefactor  = 2.1578
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.67196
  Prefactor  = 0.0001
  norm       = 1.86655
  Prefactor  = 0.000100112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.833
  norm       = 2.19284
  Normalizat = 1.00573
  Prefactor  = 0.621576
 **********
 **   18 **HESSE 
 **********

 FCN=   4247.930     FROM HESSE     STATUS=OK           561 CALLS     3786 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.7660        .16548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3682        53.345        .26541E-03   -1.5400    
   3  Prefactor     .10000E-03    27.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9725        7.9774        .15192E-03   -1.5180    
   5  norm          .10000E-03    17.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0291        3.9035        .17355E-03   -1.5423    
   7  Prefactor     .10000E-03    1.2116        .69832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.391        3.7432        .69927E-04   -1.5033    
  10  Prefactor     .93466        3.3404        .21487E-03   -1.5515    
  11  norm          1.8938        4.5851        .10627E-02   -1.5433    
  12  Prefactor     .10000E-03    159.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .19054E-01    3.1708        .31090E-01   -1.5680    
  15  Prefactor     2.1578        2.8023        .12108E-03   -1.5414    
  16  Prefactor     .10000E-03    8.0880        .18103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    102.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.6720        13.399        .12885E-03   -1.5086    
  19  Prefactor     .10000E-03    21.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.8665        .40841        .18857E-04   -1.5435    
  21  Prefactor     .10011E-03    56.641        .40122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    34.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    11.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.8214        .85516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.833        45.481        .85705E-04   -1.4773    
  27  norm          2.1928        2.7655        .11293E-03   -1.5412    
  28  Normalizat    1.0057        .19375        .19111E-03   -.92839    
  29  Prefactor     .62158        .23589        .30092E-03   -1.0669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18002e-09
Minuit parameter uncertainties:
  1  2.05525e-06
  2  22.5015
  3  2.73266e-05
  4  7.97862
  5  1.94993e-05
  6  3.90397
  7  3.80248e-07
  8  1.50135e-05
  9  3.74328
  10  3.34108
  11  4.58591
  12  0.00072563
  13  1.56268e-05
  14  0.490321
  15  2.80242
  16  9.23144e-07
  17  0.0005485
  18  13.4027
  19  6.89866e-05
  20  0.40841
  21  0.00503449
  22  1.58594e-06
  23  0.000118552
  24  3.06411e-05
  25  1.93452e-06
  26  45.5533
  27  2.76563
  28  0.19389
  29  0.236264
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  6.216e-01  2.363e-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.006e+00  1.939e-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: 5.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/974729/likelihoodResults_410400001_410659201_4FGL_J1033.1+4115_daily_bin660.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) = 4247.92768524
delta logL = 0.00281253451885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4247.86905367
delta logL = 0.0614441089183

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85932       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7606       1.0000          .0000       10.000    
     3 'Normalizat'    1.0086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61364       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4247.869     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      268 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85726        2.7037        .19002E-02    .29973E-02
   2  Index         1.7605        1.1833        .15852E-01   -.75831E-04
   3  Normalizat    1.0086        .18499        .19085E-03    .10127E-05
   4  Prefactor     .61361        .23494        .30269E-03    .37559E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.857258
  Index      = 1.76055
  Normalizat = 1.00865
  Prefactor  = 0.613605
 **********
 **   18 **HESSE 
 **********

 FCN=   4247.869     FROM HESSE     STATUS=OK            27 CALLS      295 TOTAL
                     EDM=   .62E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85726        2.7124        .38003E-03   -1.5523    
   2  Index         1.7605        1.1888        .31705E-02   -.70481    
   3  Normalizat    1.0086        .18517        .76339E-05   -.92741    
   4  Prefactor     .61361        .23517        .12108E-04   -1.0702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2355e-14
Minuit parameter uncertainties:
  1  2.71279
  2  1.20897
  3  0.185291
  4  0.235553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974729': 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) = 4247.86905335
delta logL = 0.0614444257017

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  6.136e-01  2.356e-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.009e+00  1.853e-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/974729/cmap_HighResolution_410400001_410659201_4FGL_J1033.1+4115_daily_bin660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.51e-08', time_completed='2021-09-02 03:35:24.317582', job_id='974729', GAL2='0.61', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630578924.32', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='6.14e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='660' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:35:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 974729: <4FGL_J1033.1+4115_daily_bin660> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin660 158.275 41.262 410400001 410659201 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 :                                   735.37 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            896 sec.

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

