/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 92 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 = 6319
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1033.1+4115_daily_bin91
RA = 158.275, Dec = 41.262
tmin = 262915201, tmax = 263174401
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='971640', job_status='RUN', time_executed='2021-09-02 03:14:41.321718', time_epoch_executed='1630577681.32' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/971640

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/971640/ft1_4FGL_J1033.1+4115_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/971640/ft2_4FGL_J1033.1+4115_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/971640/ft1_4FGL_J1033.1+4115_daily_bin91.fits outfile=/scratch/kocevski/971640/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin91.fits ra=158.275 dec=41.262 rad=12.0 tmin=262915201.0 tmax=263174401.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 1.30
user 1.11
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/971640/ft2_4FGL_J1033.1+4115_daily_bin91.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/971640/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin91.fits evtable="EVENTS" outfile="/scratch/kocevski/971640/ft1_filtered_4FGL_J1033.1+4115_daily_bin91.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.57
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/971640/ft1_filtered_4FGL_J1033.1+4115_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/971640/ft2_4FGL_J1033.1+4115_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/971640/ltcube_262915201_263174401_4FGL_J1033.1+4115_daily_bin91.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/971640/ft2_4FGL_J1033.1+4115_daily_bin91.fits
.....................!
real 12.02
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/971640/ft1_filtered_4FGL_J1033.1+4115_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/971640/ft2_4FGL_J1033.1+4115_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/971640/ltcube_262915201_263174401_4FGL_J1033.1+4115_daily_bin91.fits outfile=/scratch/kocevski/971640/expmap_262915201_263174401_4FGL_J1033.1+4115_daily_bin91.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/971640/ltcube_262915201_263174401_4FGL_J1033.1+4115_daily_bin91.fits
.....................!
real 192.00
user 186.88
sys 4.59

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/971640/ft1_filtered_4FGL_J1033.1+4115_daily_bin91.fits scfile=/scratch/kocevski/971640/ft2_4FGL_J1033.1+4115_daily_bin91.fits outfile=/scratch/kocevski/971640/cmap_262915201_263174401_4FGL_J1033.1+4115_daily_bin91.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 1.26
user 0.37
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/971640/ft1_filtered_4FGL_J1033.1+4115_daily_bin91.fits scfile=/scratch/kocevski/971640/ft2_4FGL_J1033.1+4115_daily_bin91.fits outfile=/scratch/kocevski/971640/cmap_HighResolution_262915201_263174401_4FGL_J1033.1+4115_daily_bin91.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.80
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20186E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.808       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0398       1.0000         .10000E-03   10000.    
     5 'norm      '    17.869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8448       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.452       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6260       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8705       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9900       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5416       1.0000         .10000E-03   10000.    
    19 'Prefactor '    76.629       1.0000         .10000E-03   10000.    
    20 'norm      '    .90578       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3584       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    23.749       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.758       1.0000         .10000E-03   10000.    
    27 'norm      '    1.4628       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0607       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .45811       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=   3903.453     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3671 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    22.751        .31804E-06** at limit **
   2  Prefactor     16.803        25.690        .36792E-06    .76518E-05
   3  Prefactor     .10000E-03    18.304        .17249E-06** at limit **
   4  Prefactor     6.0422        9.6378        .41883E-05   -.16182E-03
   5  norm          17.874        13.460       -.53592E-08    .13113E-04
   6  Prefactor     3.8447        5.5830        .19166E-06   -.63029E-04
   7  Prefactor     .10000E-03    1.4289       -.27421E-07** at limit **
   8  Prefactor     .10000E-03    13.586        .89042E-07** at limit **
   9  norm          10.453        4.2964        .13570E-07    .38789E-04
  10  Prefactor     .10000E-03    1.9914        .22414E-07** at limit **
  11  norm          2.6264        6.3478        .40842E-06    .13422E-04
  12  Prefactor     .10000E-03    23.486        .62773E-08** at limit **
  13  Prefactor     .10000E-03    18.007       -.10536E-06** at limit **
  14  Prefactor     1.8713        3.7273        .26969E-06   -.19532E-04
  15  Prefactor     2.9904        4.9281        .23899E-06   -.21660E-04
  16  Prefactor     .10000E-03    9.8210       -.29114E-07** at limit **
  17  Prefactor     .10000E-03    40.943        .58817E-07** at limit **
  18  Prefactor     6.5354        19.427        .49718E-06    .26743E-04
  19  Prefactor     76.546        84.269       -.11108E-05   -.13491E-03
  20  norm          .90583        .30610        .22757E-08    .54807E-04
  21  Prefactor     8.3593        10.124        .54825E-07    .97680E-05
  22  Prefactor     .10000E-03    4.9347       -.14439E-07** at limit **
  23  Prefactor     .10000E-03    286.82        .10196E-05** at limit **
  24  norm          23.750        15.211        .10348E-06    .18709E-04
  25  Prefactor     .10000E-03    1.5864       -.58247E-06** at limit **
  26  Prefactor     17.702        50.037       -.30399E-06   -.38183E-04
  27  norm          1.4645        2.5964        .11296E-06    .50141E-04
  28  Normalizat    1.0603        .18256        .84985E-06   -.57012E-04
  29  Prefactor     .45851        .21675       -.30995E-05    .14464E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 16.8032
  Prefactor  = 0.0001
  Prefactor  = 6.04218
  norm       = 17.8736
  Prefactor  = 3.84466
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4535
  Prefactor  = 0.0001
  norm       = 2.62642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.87134
  Prefactor  = 2.99043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.53544
  Prefactor  = 76.5464
  norm       = 0.905829
  Prefactor  = 8.35931
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 23.7503
  Prefactor  = 0.0001
  Prefactor  = 17.702
  norm       = 1.46452
  Normalizat = 1.0603
  Prefactor  = 0.458514
 **********
 **   18 **HESSE 
 **********

 FCN=   3903.453     FROM HESSE     STATUS=OK           553 CALLS     4224 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.803        25.665        .97691E-04   -1.4888    
   3  Prefactor     .10000E-03    18.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.0422        9.7068        .81688E-03   -1.5216    
   5  norm          17.874        13.484        .94747E-04   -1.4862    
   6  Prefactor     3.8447        5.5711        .17040E-03   -1.5316    
   7  Prefactor     .10000E-03    1.4467        .72904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.453        4.2974        .79526E-04   -1.5061    
  10  Prefactor     .10000E-03    2.0229        .86032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6264        6.3109        .23484E-03   -1.5384    
  12  Prefactor     .10000E-03    23.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8713        3.7044        .16162E-03   -1.5434    
  15  Prefactor     2.9904        4.9133        .16946E-03   -1.5362    
  16  Prefactor     .10000E-03    9.8228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    40.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.5354        19.413        .15691E-03   -1.5197    
  19  Prefactor     76.546        84.351        .22936E-03   -1.3956    
  20  norm          .90583        .30686        .19345E-04   -1.5518    
  21  Prefactor     8.3593        10.126        .13866E-03   -1.5130    
  22  Prefactor     .10000E-03    4.9363        .13555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    287.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          23.750        15.210        .82195E-04   -1.4733    
  25  Prefactor     .10000E-03    1.5892        .76524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     17.702        49.749        .95044E-04   -1.4866    
  27  norm          1.4645        2.5543        .11228E-03   -1.5466    
  28  Normalizat    1.0603        .20888        .18914E-03   -.91037    
  29  Prefactor     .45851        .24294        .33848E-03   -1.1392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74843e-10
Minuit parameter uncertainties:
  1  3.80987e-05
  2  25.682
  3  1.41065e-05
  4  9.70937
  5  13.4859
  6  5.57185
  7  6.52841e-06
  8  4.28792e-06
  9  4.29751
  10  6.32162e-06
  11  6.31254
  12  3.94651e-05
  13  2.77216e-05
  14  3.70483
  15  4.91393
  16  1.21431e-06
  17  9.62383e-06
  18  19.4316
  19  84.4837
  20  0.306856
  21  10.128
  22  7.92055e-07
  23  0.00101515
  24  15.213
  25  5.34943e-06
  26  49.8654
  27  2.55451
  28  0.209045
  29  0.243488
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.871e+00  3.705e+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:  4.585e-01  2.435e-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.060e+00  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/971640/likelihoodResults_262915201_263174401_4FGL_J1033.1+4115_daily_bin91.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) = 3903.43823424
delta logL = 0.0151196471384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3903.43646669
delta logL = 0.0168872005202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6875       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6547       1.0000          .0000       10.000    
     3 'Normalizat'    1.0564       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46147       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=   3903.436     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6882        129.38        .81031E-02    .40020E-03
   2  Index         2.6551        5.5803        .23026        .28550E-04
   3  Normalizat    1.0561        .46985E-01    .40150E-01   -.14122E-04
   4  Prefactor     .46175        .57345E-01    .76174E-01   -.50394E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.68818
  Index      = 2.65513
  Normalizat = 1.05611
  Prefactor  = 0.461745
 **********
 **   18 **HESSE 
 **********

 FCN=   3903.436     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6882        3.7490        .14405E-03   -1.5448    
   2  Index         2.6551        1.4068        .11853E-01   -.48813    
   3  Normalizat    1.0561        .20184        .18948E-03   -.91174    
   4  Prefactor     .46175        .24284        .33737E-03   -1.1377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90488e-09
Minuit parameter uncertainties:
  1  3.74955
  2  1.43175
  3  0.20199
  4  0.243387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/971640': 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) = 3903.43646586
delta logL = 0.0168880322003

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.688e+00  3.750e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.655e+00  1.432e+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:  4.617e-01  2.434e-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.056e+00  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/971640/cmap_HighResolution_262915201_263174401_4FGL_J1033.1+4115_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.47e-03', job_status='DONE', photon_flux_upper_limit='8.37e-08', time_completed='2021-09-02 03:26:12.216056', job_id='971640', GAL2='0.46', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630578372.22', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.46', dlogl='1.69e-02', ts2='0.36', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='91' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:26:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 971640: <4FGL_J1033.1+4115_daily_bin91> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin91> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 03:10:21 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:13:00 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:13:00 2021
Terminated at Thu Sep  2 03:26:12 2021
Results reported at Thu Sep  2 03:26:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin91 158.275 41.262 262915201 263174401 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 :                                   680.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            951 sec.

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

