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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin93
RA = 158.275, Dec = 41.262
tmin = 263433601, tmax = 263692801
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='971642', job_status='RUN', time_executed='2021-09-02 03:13:39.405054', time_epoch_executed='1630577619.41' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/971642

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/971642/ft1_4FGL_J1033.1+4115_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/971642/ft2_4FGL_J1033.1+4115_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/971642/ft1_4FGL_J1033.1+4115_daily_bin93.fits outfile=/scratch/kocevski/971642/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin93.fits ra=158.275 dec=41.262 rad=12.0 tmin=263433601.0 tmax=263692801.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 3.54
user 3.28
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/971642/ft1_filtered_4FGL_J1033.1+4115_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/971642/ft2_4FGL_J1033.1+4115_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/971642/ltcube_263433601_263692801_4FGL_J1033.1+4115_daily_bin93.fits outfile=/scratch/kocevski/971642/expmap_263433601_263692801_4FGL_J1033.1+4115_daily_bin93.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/971642/ltcube_263433601_263692801_4FGL_J1033.1+4115_daily_bin93.fits
.....................!
real 191.72
user 186.68
sys 4.23

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/971642/ft1_filtered_4FGL_J1033.1+4115_daily_bin93.fits scfile=/scratch/kocevski/971642/ft2_4FGL_J1033.1+4115_daily_bin93.fits outfile=/scratch/kocevski/971642/cmap_263433601_263692801_4FGL_J1033.1+4115_daily_bin93.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.83
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/971642/ft1_filtered_4FGL_J1033.1+4115_daily_bin93.fits scfile=/scratch/kocevski/971642/ft2_4FGL_J1033.1+4115_daily_bin93.fits outfile=/scratch/kocevski/971642/cmap_HighResolution_263433601_263692801_4FGL_J1033.1+4115_daily_bin93.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.83
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.7386       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .40752E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .13219E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.690       1.0000         .10000E-03   10000.    
    11 'norm      '    18.198       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3021       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    170.33       1.0000         .10000E-03   10000.    
    20 'norm      '    .58886       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .53888       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.0782       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.869       1.0000         .10000E-03   10000.    
    27 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96537       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1417       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=   4507.919     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3661 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.5811        .55410E-07** at limit **
   2  Prefactor     .10000E-03    48.854        .22779E-05** at limit **
   3  Prefactor     .10000E-03    49.908        .25053E-05** at limit **
   4  Prefactor     .10000E-03    4.7063       -.24160E-07** at limit **
   5  norm          5.7459        14.037        .32657E-06   -.27314E-04
   6  Prefactor     .10001E-03    8.0872        .58516E-06** at limit **
   7  Prefactor     .10000E-03    3.6869       -.72903E-06** at limit **
   8  Prefactor     .10000E-03    26.190        .88430E-06** at limit **
   9  norm          .10000E-03    3.2572        .83995E-07** at limit **
  10  Prefactor     10.690        6.5984       -.28589E-06   -.24088E-04
  11  norm          18.194        14.813        .60846E-07   -.62760E-05
  12  Prefactor     .10000E-03    33.488       -.21614E-05** at limit **
  13  Prefactor     .10000E-03    37.346       -.23502E-05** at limit **
  14  Prefactor     4.3005        4.4538        .15525E-07   -.16295E-04
  15  Prefactor     .10000E-03    3.7529       -.17235E-06** at limit **
  16  Prefactor     .10000E-03    93.680        .13681E-05** at limit **
  17  Prefactor     .10000E-03    107.29       -.35693E-05** at limit **
  18  Prefactor     .10000E-03    15.483       -.33609E-07** at limit **
  19  Prefactor     170.30        124.07       -.16732E-05   -.26543E-04
  20  norm          .58890        .27502       -.22973E-07   -.25765E-04
  21  Prefactor     .54126        13.786       -.27569E-06    .11141E-04
  22  Prefactor     .10000E-03    15.919       -.64155E-07** at limit **
  23  Prefactor     .10000E-03    26.551        .72700E-06** at limit **
  24  norm          .10000E-03    6.0681       -.51323E-07** at limit **
  25  Prefactor     1.0739        3.1984        .17136E-05   -.14062E-04
  26  Prefactor     16.913        50.113       -.16776E-05   -.16205E-04
  27  norm          .10000E-03    1.4893        .10685E-05** at limit **
  28  Normalizat    .96544        .19383        .49638E-06   -.11900E-03
  29  Prefactor     1.1418        .23885       -.95906E-06   -.33591E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.74588
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.6901
  norm       = 18.1939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.30052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 170.301
  norm       = 0.5889
  Prefactor  = 0.541257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.07394
  Prefactor  = 16.9129
  norm       = 0.0001
  Normalizat = 0.965437
  Prefactor  = 1.14179
 **********
 **   18 **HESSE 
 **********

 FCN=   4507.919     FROM HESSE     STATUS=OK           549 CALLS     4210 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.5823        .15492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    49.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    50.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7275        .14224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.7459        13.947        .16767E-03   -1.5229    
   6  Prefactor     .10001E-03    34.433        .36177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7318        .24915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.3941        .23632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.690        6.5682        .12254E-03   -1.5054    
  11  norm          18.194        14.792        .93888E-04   -1.4855    
  12  Prefactor     .10000E-03    33.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    37.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3005        4.4484        .13687E-03   -1.5293    
  15  Prefactor     .10000E-03    3.7747        .12689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    94.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    107.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     170.30        124.36        .15457E-03   -1.3091    
  20  norm          .58890        .27633        .22513E-04   -1.5554    
  21  Prefactor     .54126        88.005        .45480E-02   -1.5561    
  22  Prefactor     .10000E-03    15.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.0846        .16151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.0739        3.1938        .17879E-03   -1.5501    
  26  Prefactor     16.913        50.485        .97515E-04   -1.4885    
  27  norm          .10000E-03    1.4856        .78983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .96544        .22748        .23496E-03   -.94197    
  29  Prefactor     1.1418        .28171        .27776E-03   -.88142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91482e-10
Minuit parameter uncertainties:
  1  1.09336e-06
  2  0.000146087
  3  0.000194575
  4  2.18181e-06
  5  13.9545
  6  0.00124993
  7  1.79464e-05
  8  6.32773e-05
  9  3.0164e-06
  10  6.56862
  11  14.7951
  12  0.000154335
  13  0.000143928
  14  4.44871
  15  5.42297e-06
  16  0.000258088
  17  0.000480155
  18  6.38378e-07
  19  124.557
  20  0.27633
  21  13.8228
  22  2.59869e-06
  23  4.95777e-05
  24  3.61293e-06
  25  3.19426
  26  50.6133
  27  7.77939e-06
  28  0.227708
  29  0.282084
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  4.301e+00  4.449e+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.142e+00  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:  9.654e-01  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.21
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.16e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 1.05e-05

TS (Fixed Index): 2.21
Ra Dec: 158.275 41.262
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/971642/likelihoodResults_263433601_263692801_4FGL_J1033.1+4115_daily_bin93.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) = 4507.89497561
delta logL = 0.02418910907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4507.89255552
delta logL = 0.0266091997364

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0279       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6427       1.0000          .0000       10.000    
     3 'Normalizat'    .95564       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1493       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=   4507.893     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0279        108.18        .50232E-02    .20421E-03
   2  Index         2.6427        6.1353        .23063        .34940E-04
   3  Normalizat    .95564        .76468E-01    .45609E-01    .81782E-05
   4  Prefactor     1.1493        .79413E-01    .62617E-01    .63314E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.02791
  Index      = 2.64272
  Normalizat = 0.955635
  Prefactor  = 1.14934
 **********
 **   18 **HESSE 
 **********

 FCN=   4507.893     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0279        4.4705        .12566E-03   -1.5307    
   2  Index         2.6427        1.0261        .88167E-02   -.49094    
   3  Normalizat    .95564        .22547        .23599E-03   -.94532    
   4  Prefactor     1.1493        .28260        .27695E-03   -.87905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03433e-09
Minuit parameter uncertainties:
  1  4.47086
  2  1.03564
  3  0.22569
  4  0.282975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/971642': 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) = 4507.89255552
delta logL = 0.0266092010997

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  1.149e+00  2.830e-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:  9.556e-01  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.27
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.64 +/- 1.04
Photon Flux (Free Index): 3.96e-08 +/- 5.07e-08
Energy Flux (Free Index): 1.00e-05 +/- 9.77e-06

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/971642/cmap_HighResolution_263433601_263692801_4FGL_J1033.1+4115_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.97e-03', comment='SUCCESS', photon_flux='3.16e-08', energy_flux2='1.00e-05', photon_flux_error='3.26e-08', dlogl='2.66e-02', energy_flux='1.02e-05', photon_flux2='3.96e-08', job_status='DONE', time_completed='2021-09-02 03:26:29.900179', photon_index_error2='1.04', photon_index2='2.64', ts='2.21', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='9.77e-06', EG='0.97', time_epoch_completed='1630578389.9', return_code='0', job_id='971642', GAL2='1.15', EG2='0.96', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='5.07e-08', ts2='2.27', photon_index='2.41' WHERE bin_id='93' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:26:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 971642: <4FGL_J1033.1+4115_daily_bin93> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin93> 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) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:13:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 03:13:01 2021
Terminated at Thu Sep  2 03:26:30 2021
Results reported at Thu Sep  2 03:26:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin93 158.275 41.262 263433601 263692801 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 :                                   761.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             281.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            969 sec.

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

