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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin711
RA = 158.275, Dec = 41.262
tmin = 423619201, tmax = 423878401
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='974800', job_status='RUN', time_executed='2021-09-02 03:23:50.897159', time_epoch_executed='1630578230.9' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974800/ft1_4FGL_J1033.1+4115_daily_bin711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974800/ft2_4FGL_J1033.1+4115_daily_bin711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974800/ft1_4FGL_J1033.1+4115_daily_bin711.fits outfile=/scratch/kocevski/974800/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin711.fits ra=158.275 dec=41.262 rad=12.0 tmin=423619201.0 tmax=423878401.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.85
user 5.53
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974800/ft1_filtered_4FGL_J1033.1+4115_daily_bin711.fits evtable="EVENTS" scfile=/scratch/kocevski/974800/ft2_4FGL_J1033.1+4115_daily_bin711.fits sctable="SC_DATA" expcube=/scratch/kocevski/974800/ltcube_423619201_423878401_4FGL_J1033.1+4115_daily_bin711.fits outfile=/scratch/kocevski/974800/expmap_423619201_423878401_4FGL_J1033.1+4115_daily_bin711.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/974800/ltcube_423619201_423878401_4FGL_J1033.1+4115_daily_bin711.fits
.....................!
real 191.87
user 187.30
sys 3.89

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/974800/ft1_filtered_4FGL_J1033.1+4115_daily_bin711.fits scfile=/scratch/kocevski/974800/ft2_4FGL_J1033.1+4115_daily_bin711.fits outfile=/scratch/kocevski/974800/cmap_423619201_423878401_4FGL_J1033.1+4115_daily_bin711.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974800/ft1_filtered_4FGL_J1033.1+4115_daily_bin711.fits scfile=/scratch/kocevski/974800/ft2_4FGL_J1033.1+4115_daily_bin711.fits outfile=/scratch/kocevski/974800/cmap_HighResolution_423619201_423878401_4FGL_J1033.1+4115_daily_bin711.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    68.399       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11139E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .90283       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.096       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.110       1.0000         .10000E-03   10000.    
     9 'norm      '    7.7067       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    19.741       1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.396       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8838       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3968       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18475E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.331       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2554       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.130       1.0000         .10000E-03   10000.    
    22 'Prefactor '    55.103       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15327E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    80.785       1.0000         .10000E-03   10000.    
    27 'norm      '    2.9992       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .62380       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3286       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=   3983.596     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3752 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.471        .85573E-07** at limit **
   2  Prefactor     68.398        36.000        .46984E-06    .74820E-05
   3  Prefactor     .10000E-03    46.838       -.18490E-06** at limit **
   4  Prefactor     .10000E-03    3.1306       -.14609E-06** at limit **
   5  norm          .89232        16.410       -.87941E-06    .33961E-04
   6  Prefactor     17.102        8.7748        .16634E-06    .71619E-04
   7  Prefactor     .10000E-03    3.7544       -.13762E-05** at limit **
   8  Prefactor     23.146        41.951       -.20295E-06    .62374E-05
   9  norm          7.7069        4.0493        .38161E-07    .60601E-04
  10  Prefactor     .10000E-03    3.0528       -.87477E-06** at limit **
  11  norm          19.741        14.099        .14048E-08    .51760E-04
  12  Prefactor     43.441        85.975       -.85438E-06    .54563E-05
  13  Prefactor     .10000E-03    22.695       -.57393E-06** at limit **
  14  Prefactor     7.8855        5.9481       -.22288E-07    .66726E-04
  15  Prefactor     .10000E-03    3.1941       -.60484E-06** at limit **
  16  Prefactor     2.4003        229.68       -.45343E-05    .53315E-05
  17  Prefactor     .10000E-03    86.421       -.10870E-05** at limit **
  18  Prefactor     .10000E-03    11.470       -.39968E-06** at limit **
  19  Prefactor     28.284        97.465       -.28522E-07    .63269E-05
  20  norm          1.2556        .49336       -.66210E-08   -.13346E-04
  21  Prefactor     23.136        25.862       -.47007E-06   -.39015E-05
  22  Prefactor     55.077        31.784       -.68102E-07   -.41680E-05
  23  Prefactor     .10000E-03    30.530       -.19512E-06** at limit **
  24  norm          .10000E-03    7.2707       -.71190E-06** at limit **
  25  Prefactor     .10000E-03    23.995       -.13523E-05** at limit **
  26  Prefactor     80.639        73.017       -.37933E-06   -.15235E-05
  27  norm          2.9974        3.1587       -.10482E-06   -.57719E-04
  28  Normalizat    .62335        .21077        .11632E-05    .93778E-04
  29  Prefactor     1.3290        .25876        .43012E-06    .90609E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 68.3977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.892317
  Prefactor  = 17.1023
  Prefactor  = 0.0001
  Prefactor  = 23.1455
  norm       = 7.70687
  Prefactor  = 0.0001
  norm       = 19.7408
  Prefactor  = 43.4411
  Prefactor  = 0.0001
  Prefactor  = 7.88554
  Prefactor  = 0.0001
  Prefactor  = 2.40034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.284
  norm       = 1.25558
  Prefactor  = 23.1357
  Prefactor  = 55.0768
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 80.6393
  norm       = 2.99738
  Normalizat = 0.623351
  Prefactor  = 1.32903
 **********
 **   18 **HESSE 
 **********

 FCN=   3983.596     FROM HESSE     STATUS=OK           557 CALLS     4309 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     68.398        35.964        .48533E-04   -1.4052    
   3  Prefactor     .10000E-03    47.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1326        .10907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .89232        59.298        .46574E-02   -1.5519    
   6  Prefactor     17.102        8.7582        .96866E-04   -1.4881    
   7  Prefactor     .10000E-03    3.7918        .11860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.146        41.968        .83322E-04   -1.4745    
   9  norm          7.7069        4.0445        .88018E-04   -1.5153    
  10  Prefactor     .10000E-03    3.0730        .10728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          19.741        14.079        .90147E-04   -1.4819    
  12  Prefactor     43.441        85.985        .60857E-04   -1.4389    
  13  Prefactor     .10000E-03    22.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8855        5.9157        .12133E-03   -1.5146    
  15  Prefactor     .10000E-03    3.1911        .10980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4003        225.39        .26451E-03   -1.5398    
  17  Prefactor     .10000E-03    86.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.284        97.854        .75269E-04   -1.4644    
  20  norm          1.2556        .49525        .25106E-04   -1.5484    
  21  Prefactor     23.136        25.888        .83286E-04   -1.4746    
  22  Prefactor     55.077        31.981        .54037E-04   -1.4222    
  23  Prefactor     .10000E-03    30.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    7.2639        .16603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    23.862        .20813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     80.639        73.188        .22343E-03   -1.3910    
  27  norm          2.9974        3.1572        .10995E-03   -1.5362    
  28  Normalizat    .62335        .24805        .28343E-03   -1.0700    
  29  Prefactor     1.3290        .30576        .26519E-03   -.82448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37133e-10
Minuit parameter uncertainties:
  1  2.11718e-05
  2  35.9758
  3  3.10968e-05
  4  3.1422e-07
  5  14.5624
  6  8.75886
  7  1.25082e-05
  8  42.0214
  9  4.04469
  10  7.66558e-06
  11  14.0813
  12  86.2322
  13  2.05218e-05
  14  5.91618
  15  6.987e-06
  16  46.7008
  17  0.000109088
  18  5.4553e-06
  19  98.416
  20  0.49525
  21  25.901
  22  31.9912
  23  1.69262e-05
  24  9.52277e-06
  25  1.29729e-05
  26  73.2696
  27  3.1574
  28  0.248496
  29  0.306174
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  7.886e+00  5.916e+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:  1.329e+00  3.062e-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.234e-01  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.43
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.79e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.40e-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) = 3982.67410963
delta logL = 0.921478354362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3982.40752289
delta logL = 1.18806509645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5879       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2237       1.0000          .0000       10.000    
     3 'Normalizat'    .68046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2954       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=   3982.408     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      221 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5857        2.8677        .63415E-02   -.32007E-03
   2  Index         1.2234        .39677        .15672       -.27496E-04
   3  Normalizat    .68050        .19302        .61543E-01    .13269E-04
   4  Prefactor     1.2953        .25556        .60677E-01   -.12682E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.58571
  Index      = 1.22344
  Normalizat = 0.680495
  Prefactor  = 1.29529
 **********
 **   18 **HESSE 
 **********

 FCN=   3982.408     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5857        4.6517        .95885E-04   -1.5386    
   2  Index         1.2234        .67836        .65293E-02   -.85613    
   3  Normalizat    .68050        .22730        .27225E-03   -1.0467    
   4  Prefactor     1.2953        .30131        .26833E-03   -.83447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00698e-11
Minuit parameter uncertainties:
  1  4.65233
  2  0.683296
  3  0.227614
  4  0.301718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974800': 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) = 3982.40752262
delta logL = 1.18806536508

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  2.586e+00  4.652e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  1.223e+00  6.833e-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:  1.295e+00  3.017e-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.805e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.75
Ra Dec: 158.275 41.262
Photon Index (Free Index): 1.22 +/- 0.68
Photon Flux (Free Index): 9.58e-09 +/- 1.37e-08
Energy Flux (Free Index): 7.45e-05 +/- 1.06e-04

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/974800/cmap_HighResolution_423619201_423878401_4FGL_J1033.1+4115_daily_bin711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.79e-08', energy_flux2='7.45e-05', photon_flux_error='4.34e-08', dlogl='1.19e+00', energy_flux='1.87e-05', photon_flux2='9.58e-09', job_status='DONE', time_completed='2021-09-02 03:34:53.524193', photon_index_error2='0.68', photon_index2='1.22', ts='10.43', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='1.06e-04', EG='0.62', time_epoch_completed='1630578893.52', return_code='0', job_id='974800', GAL2='1.30', EG2='0.68', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='1.37e-08', ts2='12.75', photon_index='2.41' WHERE bin_id='711' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:34:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 974800: <4FGL_J1033.1+4115_daily_bin711> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin711 158.275 41.262 423619201 423878401 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 :                                   659.54 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             256.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            860 sec.

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

