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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin732
RA = 158.275, Dec = 41.262
tmin = 429062401, tmax = 429321601
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='974830', job_status='RUN', time_executed='2021-09-02 03:24:55.230630', time_epoch_executed='1630578295.23' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974830/ft1_4FGL_J1033.1+4115_daily_bin732.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974830/ft2_4FGL_J1033.1+4115_daily_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974830/ft1_4FGL_J1033.1+4115_daily_bin732.fits outfile=/scratch/kocevski/974830/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin732.fits ra=158.275 dec=41.262 rad=12.0 tmin=429062401.0 tmax=429321601.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.84
user 6.09
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974830/ft1_filtered_4FGL_J1033.1+4115_daily_bin732.fits" evtable="EVENTS" scfile=/scratch/kocevski/974830/ft2_4FGL_J1033.1+4115_daily_bin732.fits sctable="SC_DATA" outfile=/scratch/kocevski/974830/ltcube_429062401_429321601_4FGL_J1033.1+4115_daily_bin732.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/974830/ft2_4FGL_J1033.1+4115_daily_bin732.fits
.....................!
real 15.72
user 15.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974830/ft1_filtered_4FGL_J1033.1+4115_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/974830/ft2_4FGL_J1033.1+4115_daily_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/974830/ltcube_429062401_429321601_4FGL_J1033.1+4115_daily_bin732.fits outfile=/scratch/kocevski/974830/expmap_429062401_429321601_4FGL_J1033.1+4115_daily_bin732.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/974830/ltcube_429062401_429321601_4FGL_J1033.1+4115_daily_bin732.fits
.....................!
real 191.53
user 185.83
sys 4.81

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974830/ft1_filtered_4FGL_J1033.1+4115_daily_bin732.fits scfile=/scratch/kocevski/974830/ft2_4FGL_J1033.1+4115_daily_bin732.fits outfile=/scratch/kocevski/974830/cmap_HighResolution_429062401_429321601_4FGL_J1033.1+4115_daily_bin732.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.56
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.821       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11102E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.7652       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10979E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.9143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5910       1.0000         .10000E-03   10000.    
    11 'norm      '    13.962       1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.394       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10803E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.490       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.464       1.0000         .10000E-03   10000.    
    17 'Prefactor '    141.14       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    127.13       1.0000         .10000E-03   10000.    
    20 'norm      '    .10471       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    106.85       1.0000         .10000E-03   10000.    
    24 'norm      '    12.270       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.835       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0187       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .59356       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=   3391.163     FROM MIGRAD    STATUS=CONVERGED    699 CALLS     4380 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.814        19.915       -.13220E-06   -.38874E-04
   2  Prefactor     .10000E-03    55.270        .25599E-05** at limit **
   3  Prefactor     .10000E-03    9.4956        .28293E-06** at limit **
   4  Prefactor     .10000E-03    7.4129        .97826E-06** at limit **
   5  norm          8.7615        10.028        .15144E-05    .36575E-03
   6  Prefactor     .10000E-03    1.3548        .70290E-07** at limit **
   7  Prefactor     .10000E-03    6.2841        .60500E-06** at limit **
   8  Prefactor     .10000E-03    20.538        .59438E-06** at limit **
   9  norm          8.9138        3.6091       -.90571E-07   -.23835E-04
  10  Prefactor     7.5927        6.3108       -.50136E-06   -.23069E-04
  11  norm          13.959        12.305       -.36960E-06    .52035E-05
  12  Prefactor     61.389        58.556       -.22625E-06    .32588E-06
  13  Prefactor     .10000E-03    30.704       -.54332E-06** at limit **
  14  Prefactor     11.487        7.1639       -.36004E-06    .20389E-05
  15  Prefactor     .10000E-03    3.7333       -.22828E-06** at limit **
  16  Prefactor     33.443        51.591       -.53036E-06   -.15146E-04
  17  Prefactor     141.09        132.02       -.17989E-05   -.13786E-04
  18  Prefactor     .10000E-03    33.954        .14211E-05** at limit **
  19  Prefactor     126.82        164.54       -.48670E-05   -.59425E-04
  20  norm          .10459        .17481       -.12340E-06   -.22757E-02
  21  Prefactor     .10000E-03    7.2080        .93926E-07** at limit **
  22  Prefactor     .10000E-03    12.810        .18782E-06** at limit **
  23  Prefactor     106.74        169.78       -.15621E-05   -.19240E-04
  24  norm          12.267        15.198       -.25139E-06    .62101E-05
  25  Prefactor     10.832        5.7442       -.15442E-06    .20668E-04
  26  Prefactor     .10000E-03    35.881        .44954E-07** at limit **
  27  norm          .10000E-03    1.7064        .41335E-07** at limit **
  28  Normalizat    1.0194        .24221        .93289E-05   -.16006E-03
  29  Prefactor     .59282        .28068       -.13787E-04   -.89418E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 26.8139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.76148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.91384
  Prefactor  = 7.59269
  norm       = 13.9586
  Prefactor  = 61.3891
  Prefactor  = 0.0001
  Prefactor  = 11.4875
  Prefactor  = 0.0001
  Prefactor  = 33.4431
  Prefactor  = 141.086
  Prefactor  = 0.0001
  Prefactor  = 126.823
  norm       = 0.104588
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 106.744
  norm       = 12.2675
  Prefactor  = 10.8319
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.01942
  Prefactor  = 0.592815
 **********
 **   18 **HESSE 
 **********

 FCN=   3391.163     FROM HESSE     STATUS=OK           551 CALLS     4931 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.814        19.870        .77354E-04   -1.4672    
   2  Prefactor     .10000E-03    55.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.4979        .17528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4599        .15495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.7615        10.244        .67694E-03   -1.5116    
   6  Prefactor     .10000E-03    1.3555        .66190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4175        .28199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.9138        3.6096        .68450E-04   -1.5111    
  10  Prefactor     7.5927        6.2579        .12230E-03   -1.5157    
  11  norm          13.959        12.292        .10719E-03   -1.4961    
  12  Prefactor     61.389        58.548        .51209E-04   -1.4139    
  13  Prefactor     .10000E-03    30.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.487        7.1563        .11343E-03   -1.5030    
  15  Prefactor     .10000E-03    3.7588        .10978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.443        51.525        .69270E-04   -1.4551    
  17  Prefactor     141.09        132.03        .16955E-03   -1.3327    
  18  Prefactor     .10000E-03    34.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     126.82        165.36        .17852E-03   -1.3451    
  20  norm          .10459        .15648        .30925E-03   -1.5643    
  21  Prefactor     .10000E-03    7.2190        .15269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     106.74        169.96        .19453E-03   -1.3638    
  24  norm          12.267        15.189        .11436E-03   -1.5007    
  25  Prefactor     10.832        5.7387        .97566E-04   -1.5050    
  26  Prefactor     .10000E-03    35.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.7122        .74270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0194        .24299        .20570E-03   -.92383    
  29  Prefactor     .59282        .28141        .32775E-03   -1.0789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11425e-10
Minuit parameter uncertainties:
  1  19.8748
  2  0.000215198
  3  8.45962e-06
  4  4.90056e-05
  5  10.246
  6  2.48873e-07
  7  2.74286e-05
  8  3.10767e-05
  9  3.60968
  10  6.25845
  11  12.2944
  12  58.6025
  13  7.78481e-05
  14  7.15685
  15  1.08636e-05
  16  51.5935
  17  132.305
  18  0.000176079
  19  165.969
  20  0.156479
  21  7.48055e-07
  22  2.68334e-05
  23  170.748
  24  15.1933
  25  5.73899
  26  2.53204e-05
  27  2.40219e-06
  28  0.243253
  29  0.282083
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.149e+01  7.157e+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:  5.928e-01  2.821e-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.019e+00  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.97
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 8.44e-08 +/- 5.25e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 1.69e-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) = 3390.78164029
delta logL = 0.381548017753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3390.77914132
delta logL = 0.384046992116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.032       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9010       1.0000          .0000       10.000    
     3 'Normalizat'    1.0615       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56033       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=   3390.779     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.032        8.9743        .28872E-02   -.31008E-02
   2  Index         1.9010        .49896        .17100       -.17888E-04
   3  Normalizat    1.0615        .20052        .39844E-01    .31593E-05
   4  Prefactor     .56034        .24721        .75994E-01    .15919E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0315
  Index      = 1.90104
  Normalizat = 1.0615
  Prefactor  = 0.560338
 **********
 **   18 **HESSE 
 **********

 FCN=   3390.779     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.032        8.8982        .11549E-03   -1.5014    
   2  Index         1.9010        .57046        .65161E-02   -.66848    
   3  Normalizat    1.0615        .22880        .20223E-03   -.90998    
   4  Prefactor     .56034        .27891        .33650E-03   -1.0928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27031e-09
Minuit parameter uncertainties:
  1  8.8992
  2  0.572491
  3  0.229017
  4  0.2796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974830': 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) = 3390.77914132
delta logL = 0.384046995237

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.203e+01  8.899e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  1.901e+00  5.725e-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:  5.603e-01  2.796e-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.062e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.72
Ra Dec: 158.275 41.262
Photon Index (Free Index): 1.90 +/- 0.57
Photon Flux (Free Index): 5.17e-08 +/- 5.25e-08
Energy Flux (Free Index): 4.62e-05 +/- 4.96e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/974830/cmap_HighResolution_429062401_429321601_4FGL_J1033.1+4115_daily_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.44e-08', energy_flux2='4.62e-05', photon_flux_error='5.25e-08', dlogl='3.84e-01', energy_flux='2.72e-05', photon_flux2='5.17e-08', job_status='DONE', time_completed='2021-09-02 03:35:47.436305', photon_index_error2='0.57', photon_index2='1.90', ts='10.97', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', energy_flux_error2='4.96e-05', EG='1.02', time_epoch_completed='1630578947.44', return_code='0', job_id='974830', GAL2='0.56', EG2='1.06', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='5.25e-08', ts2='11.72', photon_index='2.41' WHERE bin_id='732' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:35:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 974830: <4FGL_J1033.1+4115_daily_bin732> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin732 158.275 41.262 429062401 429321601 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 :                                   649.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            912 sec.

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

