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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin609
RA = 158.275, Dec = 41.262
tmin = 397180801, tmax = 397440001
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='974657', job_status='RUN', time_executed='2021-09-02 03:22:49.528455', time_epoch_executed='1630578169.53' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974657

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974657/ft1_4FGL_J1033.1+4115_daily_bin609.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974657/ft2_4FGL_J1033.1+4115_daily_bin609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974657/ft1_4FGL_J1033.1+4115_daily_bin609.fits outfile=/scratch/kocevski/974657/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin609.fits ra=158.275 dec=41.262 rad=12.0 tmin=397180801.0 tmax=397440001.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 4.05
user 3.77
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974657/ft1_filtered_4FGL_J1033.1+4115_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/974657/ft2_4FGL_J1033.1+4115_daily_bin609.fits sctable="SC_DATA" expcube=/scratch/kocevski/974657/ltcube_397180801_397440001_4FGL_J1033.1+4115_daily_bin609.fits outfile=/scratch/kocevski/974657/expmap_397180801_397440001_4FGL_J1033.1+4115_daily_bin609.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/974657/ltcube_397180801_397440001_4FGL_J1033.1+4115_daily_bin609.fits
.....................!
real 191.69
user 186.44
sys 4.35

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/974657/ft1_filtered_4FGL_J1033.1+4115_daily_bin609.fits scfile=/scratch/kocevski/974657/ft2_4FGL_J1033.1+4115_daily_bin609.fits outfile=/scratch/kocevski/974657/cmap_397180801_397440001_4FGL_J1033.1+4115_daily_bin609.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974657/ft1_filtered_4FGL_J1033.1+4115_daily_bin609.fits scfile=/scratch/kocevski/974657/ft2_4FGL_J1033.1+4115_daily_bin609.fits outfile=/scratch/kocevski/974657/cmap_HighResolution_397180801_397440001_4FGL_J1033.1+4115_daily_bin609.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.022       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    15.314       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4164       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.3299       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .82881       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .27155E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .98230E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.452       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.5268       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.535       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .95969E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.7984       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88597       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0867       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=   4815.422     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3760 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.6853        .58850E-07** at limit **
   2  Prefactor     19.026        24.116        .72170E-06    .59052E-04
   3  Prefactor     .10000E-03    14.542       -.79428E-06** at limit **
   4  Prefactor     .10000E-03    13.502        .12987E-05** at limit **
   5  norm          15.315        12.793        .10180E-07    .24609E-04
   6  Prefactor     .10000E-03    2.5371       -.19686E-07** at limit **
   7  Prefactor     7.4174        4.7518       -.55603E-06    .39340E-03
   8  Prefactor     .10000E-03    73.649       -.37343E-05** at limit **
   9  norm          5.3302        3.3767       -.36486E-07    .17839E-04
  10  Prefactor     .10000E-03    2.4261        .45470E-06** at limit **
  11  norm          .82394        22.059        .26563E-05    .19550E-03
  12  Prefactor     .10000E-03    52.789        .83794E-05** at limit **
  13  Prefactor     .10000E-03    48.423        .10676E-05** at limit **
  14  Prefactor     .10000E-03    2.8358        .12157E-06** at limit **
  15  Prefactor     .10021E-03    4.2057       -.13365E-05** at limit **
  16  Prefactor     .10189E-03    39.569       -.34286E-05** at limit **
  17  Prefactor     .10000E-03    22.504        .43373E-07** at limit **
  18  Prefactor     50.442        29.240       -.10901E-05   -.89838E-04
  19  Prefactor     .10000E-03    37.260       -.13020E-05** at limit **
  20  norm          2.5268        .50638        .62866E-07    .12545E-03
  21  Prefactor     .10000E-03    45.838       -.33647E-05** at limit **
  22  Prefactor     19.514        24.405       -.24501E-05   -.86910E-04
  23  Prefactor     .10000E-03    36.869       -.11804E-06** at limit **
  24  norm          .10001E-03    11.438        .12452E-05** at limit **
  25  Prefactor     8.7968        4.1416        .72371E-07   -.46661E-05
  26  Prefactor     .10000E-03    47.286       -.10207E-05** at limit **
  27  norm          .10000E-03    1.3299       -.27267E-07** at limit **
  28  Normalizat    .88616        .18599        .14986E-06    .19832E-03
  29  Prefactor     1.0863        .23048        .56138E-06    .14579E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 19.0262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.315
  Prefactor  = 0.0001
  Prefactor  = 7.41742
  Prefactor  = 0.000100001
  norm       = 5.33023
  Prefactor  = 0.0001
  norm       = 0.823938
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100207
  Prefactor  = 0.000101888
  Prefactor  = 0.0001
  Prefactor  = 50.4423
  Prefactor  = 0.0001
  norm       = 2.52676
  Prefactor  = 0.0001
  Prefactor  = 19.5142
  Prefactor  = 0.0001
  norm       = 0.000100011
  Prefactor  = 8.79685
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.886161
  Prefactor  = 1.08625
 **********
 **   18 **HESSE 
 **********

 FCN=   4815.422     FROM HESSE     STATUS=OK           555 CALLS     4315 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.6884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.026        24.175        .91833E-04   -1.4835    
   3  Prefactor     .10000E-03    14.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.315        12.794        .10235E-03   -1.4925    
   6  Prefactor     .10000E-03    2.5458        .10793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.4174        4.9984        .59887E-03   -1.5163    
   8  Prefactor     .10000E-03    75.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3302        3.3749        .98064E-04   -1.5246    
  10  Prefactor     .10000E-03    2.4608        .10578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .82394        24.266        .39937E-02   -1.5526    
  12  Prefactor     .10000E-03    54.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    48.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8772        .11391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10021E-03    34.089        .22783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10189E-03    34.117        .11970       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     50.442        29.313        .56460E-04   -1.4286    
  19  Prefactor     .10000E-03    37.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.5268        .51148        .19925E-04   -1.5390    
  21  Prefactor     .10000E-03    46.152        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.514        24.395        .90619E-04   -1.4824    
  23  Prefactor     .10000E-03    36.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10001E-03    56.233        .43284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.7968        4.1149        .92782E-04   -1.5115    
  26  Prefactor     .10000E-03    47.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.3411        .78078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .88616        .21913        .24019E-03   -.96948    
  29  Prefactor     1.0863        .27295        .28368E-03   -.89907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98639e-09
Minuit parameter uncertainties:
  1  9.30915e-06
  2  24.187
  3  6.04567e-05
  4  6.45865e-05
  5  12.7967
  6  1.56151e-06
  7  4.99863
  8  0.000503756
  9  3.37501
  10  1.48094e-05
  11  8.94626
  12  0.000984219
  13  0.00024099
  14  5.13186e-06
  15  0.00532072
  16  0.0160604
  17  1.57689e-06
  18  29.3216
  19  0.00013248
  20  0.511483
  21  8.31212e-06
  22  24.4073
  23  1.53904e-05
  24  0.00158453
  25  4.11505
  26  0.000121627
  27  6.23713e-07
  28  0.219352
  29  0.273298
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  5.132e-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.086e+00  2.733e-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:  8.862e-01  2.194e-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: 6.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/974657/likelihoodResults_397180801_397440001_4FGL_J1033.1+4115_daily_bin609.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) = 4815.42407581
delta logL = -0.00165451264729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4815.42242139
delta logL = -9.50485627982e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4150       1.0000          .0000       10.000    
     3 'Normalizat'    .88618       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0863       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=   4815.422     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    8.6721        .11393E-02** at limit **
   2  Index         2.4501        6.6037        .50000       -.55451E-05
   3  Normalizat    .88616        .20945        .24019E-03   -.16235E-04
   4  Prefactor     1.0863        .27206        .28368E-03   -.83759E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4815.422     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      365 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    8.6721        .30972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4501        6.6037        .35175E-03   -.53517    
   3  Normalizat    .88616        .20945        .29510E-04   -.96948    
   4  Prefactor     1.0863        .27206        .30685E-04   -.89907    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4815.422     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      401 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7624        .22786E-03** at limit **
   2  Index         2.5253        8.5166        .50000       -.17462E-06
   3  Normalizat    .88616        .20962        .96077E-05    .26151E-03
   4  Prefactor     1.0863        .27234        .11347E-04    .13866E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.52529
  Normalizat = 0.886162
  Prefactor  = 1.08625
 **********
 **   18 **HESSE 
 **********

 FCN=   4815.422     FROM HESSE     STATUS=OK            29 CALLS      430 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9235        .45572E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5253        7.6989        .50000       -.51777    
   3  Normalizat    .88616        .20996        .19215E-05   -.96948    
   4  Prefactor     1.0863        .27276        .22694E-05   -.89907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97389e-10
Minuit parameter uncertainties:
  1  2.67e-05
  2  186.124
  3  0.210157
  4  0.273108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974657': 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) = 4815.42242119
delta logL = 1.08314452518e-07

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  2.670e-05  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.525e+00  1.861e+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.086e+00  2.731e-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:  8.862e-01  2.102e-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/974657/cmap_HighResolution_397180801_397440001_4FGL_J1033.1+4115_daily_bin609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-03', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-09-02 03:36:25.638528', job_id='974657', GAL2='1.09', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630578985.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='609' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:36:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 974657: <4FGL_J1033.1+4115_daily_bin609> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin609 158.275 41.262 397180801 397440001 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 :                                   813.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             284.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            962 sec.

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

