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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin733
RA = 158.275, Dec = 41.262
tmin = 429321601, tmax = 429580801
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='974831', job_status='RUN', time_executed='2021-09-02 03:23:53.762316', time_epoch_executed='1630578233.76' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974831

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974831/ft1_4FGL_J1033.1+4115_daily_bin733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974831/ft2_4FGL_J1033.1+4115_daily_bin733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974831/ft1_4FGL_J1033.1+4115_daily_bin733.fits outfile=/scratch/kocevski/974831/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin733.fits ra=158.275 dec=41.262 rad=12.0 tmin=429321601.0 tmax=429580801.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.65
user 6.32
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974831/ft1_filtered_4FGL_J1033.1+4115_daily_bin733.fits" evtable="EVENTS" scfile=/scratch/kocevski/974831/ft2_4FGL_J1033.1+4115_daily_bin733.fits sctable="SC_DATA" outfile=/scratch/kocevski/974831/ltcube_429321601_429580801_4FGL_J1033.1+4115_daily_bin733.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/974831/ft2_4FGL_J1033.1+4115_daily_bin733.fits
.....................!
real 18.09
user 17.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974831/ft1_filtered_4FGL_J1033.1+4115_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/974831/ft2_4FGL_J1033.1+4115_daily_bin733.fits sctable="SC_DATA" expcube=/scratch/kocevski/974831/ltcube_429321601_429580801_4FGL_J1033.1+4115_daily_bin733.fits outfile=/scratch/kocevski/974831/expmap_429321601_429580801_4FGL_J1033.1+4115_daily_bin733.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/974831/ltcube_429321601_429580801_4FGL_J1033.1+4115_daily_bin733.fits
.....................!
real 193.05
user 187.85
sys 4.15

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/974831/ft1_filtered_4FGL_J1033.1+4115_daily_bin733.fits scfile=/scratch/kocevski/974831/ft2_4FGL_J1033.1+4115_daily_bin733.fits outfile=/scratch/kocevski/974831/cmap_429321601_429580801_4FGL_J1033.1+4115_daily_bin733.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.86
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974831/ft1_filtered_4FGL_J1033.1+4115_daily_bin733.fits scfile=/scratch/kocevski/974831/ft2_4FGL_J1033.1+4115_daily_bin733.fits outfile=/scratch/kocevski/974831/cmap_HighResolution_429321601_429580801_4FGL_J1033.1+4115_daily_bin733.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.62
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4490       1.0000         .10000E-03   10000.    
     5 'norm      '    8.3313       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7158       1.0000         .10000E-03   10000.    
     8 'Prefactor '    53.690       1.0000         .10000E-03   10000.    
     9 'norm      '    12.746       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.8927       1.0000         .10000E-03   10000.    
    12 'Prefactor '    122.38       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .75326       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .39575       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.2725       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .63688       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0821       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=   2447.379     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3670 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.2365       -.10366E-07** at limit **
   2  Prefactor     .10000E-03    23.609       -.35324E-05** at limit **
   3  Prefactor     .10000E-03    17.546       -.46773E-05** at limit **
   4  Prefactor     5.4489        6.3652        .11766E-05    .22398E-04
   5  norm          8.3269        14.750       -.16665E-06   -.36156E-04
   6  Prefactor     .10000E-03    3.7379       -.25693E-07** at limit **
   7  Prefactor     2.7176        4.4231       -.28261E-06   -.20332E-03
   8  Prefactor     53.680        47.493       -.68801E-05    .50765E-05
   9  norm          12.745        5.4509       -.93755E-08    .30565E-04
  10  Prefactor     .10000E-03    4.8848        .12502E-07** at limit **
  11  norm          7.8797        16.870        .23662E-05   -.27068E-04
  12  Prefactor     122.38        84.879        .17348E-05    .11492E-04
  13  Prefactor     .10000E-03    80.065        .59718E-05** at limit **
  14  Prefactor     .10000E-03    8.5569        .70978E-07** at limit **
  15  Prefactor     .10000E-03    11.907       -.32922E-06** at limit **
  16  Prefactor     .10000E-03    27.091       -.65478E-05** at limit **
  17  Prefactor     .10000E-03    71.412       -.17858E-04** at limit **
  18  Prefactor     .53149        51.420       -.26855E-05    .29133E-04
  19  Prefactor     .10000E-03    82.002        .12005E-04** at limit **
  20  norm          .39579        .34873       -.11395E-07   -.45860E-03
  21  Prefactor     .10000E-03    30.401        .67829E-05** at limit **
  22  Prefactor     .10000E-03    13.885        .80508E-06** at limit **
  23  Prefactor     .10000E-03    52.376        .10399E-05** at limit **
  24  norm          .10000E-03    19.143        .49910E-05** at limit **
  25  Prefactor     3.2729        3.2723       -.33785E-07   -.34687E-04
  26  Prefactor     .10000E-03    21.834        .32810E-05** at limit **
  27  norm          .10000E-03    1.8966        .39958E-07** at limit **
  28  Normalizat    .63717        .22160        .13376E-05    .53635E-05
  29  Prefactor     1.0819        .27933       -.59280E-06    .44270E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.44895
  norm       = 8.32689
  Prefactor  = 0.0001
  Prefactor  = 2.71759
  Prefactor  = 53.6805
  norm       = 12.7454
  Prefactor  = 0.0001
  norm       = 7.87965
  Prefactor  = 122.384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.531486
  Prefactor  = 0.0001
  norm       = 0.395788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.27286
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.637171
  Prefactor  = 1.08189
 **********
 **   18 **HESSE 
 **********

 FCN=   2447.379     FROM HESSE     STATUS=OK           547 CALLS     4217 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.2415        .14686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4489        6.3689        .13153E-03   -1.5241    
   5  norm          8.3269        14.751        .13889E-03   -1.5131    
   6  Prefactor     .10000E-03    3.7522        .93392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7176        4.4056        .12558E-03   -1.5378    
   8  Prefactor     53.680        47.480        .54740E-04   -1.4241    
   9  norm          12.745        5.4515        .73273E-04   -1.4994    
  10  Prefactor     .10000E-03    4.9198        .10634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.8797        16.765        .14272E-03   -1.5146    
  12  Prefactor     122.38        84.895        .36381E-04   -1.3491    
  13  Prefactor     .10000E-03    80.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.7322        .28173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.141        .16644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    71.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .53149        613.99        .66941E-02   -1.5562    
  19  Prefactor     .10000E-03    82.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .39579        .34730        .26411E-04   -1.5582    
  21  Prefactor     .10000E-03    30.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.903        .18004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    52.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    19.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.2729        3.2748        .87062E-04   -1.5346    
  26  Prefactor     .10000E-03    21.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.9393        .66516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .63717        .26092        .23657E-03   -1.0643    
  29  Prefactor     1.0819        .32876        .24281E-03   -.90047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4063e-10
Minuit parameter uncertainties:
  1  1.38023e-06
  2  2.09973e-05
  3  1.16972e-05
  4  6.36973
  5  14.7571
  6  4.38478e-07
  7  4.40611
  8  47.5135
  9  5.45171
  10  6.60484e-06
  11  16.7752
  12  84.9796
  13  9.72936e-05
  14  7.7114e-06
  15  2.09482e-05
  16  8.21815e-06
  17  3.31208e-06
  18  36.5069
  19  1.17433e-05
  20  0.3473
  21  8.6175e-05
  22  8.53703e-06
  23  1.85157e-06
  24  2.42599e-05
  25  3.27494
  26  2.43045e-06
  27  1.31681e-06
  28  0.261423
  29  0.329379
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  7.711e-06  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.082e+00  3.294e-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.372e-01  2.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/974831/likelihoodResults_429321601_429580801_4FGL_J1033.1+4115_daily_bin733.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): 102
logL (Free Index) = 2447.37926678
delta logL = -0.000546161308193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2447.37872115
delta logL = -5.26611074747e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4078       1.0000          .0000       10.000    
     3 'Normalizat'    .63703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0821       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2447.379     FROM MIGRAD    STATUS=FAILED        90 CALLS      248 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10036E-03    1590.1        .28202E-03** at limit **
   2  Index         2.3624        8.6878        .50000        .41249E-05
   3  Normalizat    .63717        .11098        .23657E-03    .27873E-04
   4  Prefactor     1.0819        .14551        .24281E-03    .24441E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2447.379     FROM SIMPLEX   STATUS=UNCHANGED    162 CALLS      410 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10036E-03    1590.1        .56888E-03** at limit **
   2  Index         2.3624        8.6878        .28147E-04    .41249E-05
   3  Normalizat    .63717        .11098        .14897E-05    .27873E-04
   4  Prefactor     1.0819        .14551        .68421E-06    .24441E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2447.379     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      456 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2896        .56404E-04** at limit **
   2  Index         1.9040        5.8291        .50000       -.80081E-07
   3  Normalizat    .63717        .24803        .94627E-05   -.70884E-05
   4  Prefactor     1.0819        .32630        .97123E-05   -.20016E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90402
  Normalizat = 0.637172
  Prefactor  = 1.08189
 **********
 **   18 **HESSE 
 **********

 FCN=   2447.379     FROM HESSE     STATUS=OK            29 CALLS      485 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2429        .11281E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9040        5.7592        .50000       -.66772    
   3  Normalizat    .63717        .24766        .18925E-05   -1.0643    
   4  Prefactor     1.0819        .32581        .19425E-05   -.90047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.75052e-12
Minuit parameter uncertainties:
  1  2.50757e-07
  2  125.338
  3  0.248097
  4  0.326409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974831': 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) = 2447.37872031
delta logL = 3.15153556585e-07

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  2.508e-07  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  1.904e+00  1.253e+02  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.082e+00  3.264e-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.372e-01  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 158.275 41.262

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.47e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-02 03:33:52.783184', job_id='974831', GAL2='1.08', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1630578832.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='733' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:33:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 974831: <4FGL_J1033.1+4115_daily_bin733> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin733> 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) <bullet0289>, 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:33:53 2021
Results reported at Thu Sep  2 03:33:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin733 158.275 41.262 429321601 429580801 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 :                                   591.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            797 sec.

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

