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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin662
RA = 158.275, Dec = 41.262
tmin = 410918401, tmax = 411177601
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='974731', job_status='RUN', time_executed='2021-09-02 03:24:44.928546', time_epoch_executed='1630578284.93' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974731

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974731/ft1_4FGL_J1033.1+4115_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974731/ft2_4FGL_J1033.1+4115_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974731/ft1_4FGL_J1033.1+4115_daily_bin662.fits outfile=/scratch/kocevski/974731/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin662.fits ra=158.275 dec=41.262 rad=12.0 tmin=410918401.0 tmax=411177601.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 7.74
user 6.70
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/974731/ft2_4FGL_J1033.1+4115_daily_bin662.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/974731/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin662.fits evtable="EVENTS" outfile="/scratch/kocevski/974731/ft1_filtered_4FGL_J1033.1+4115_daily_bin662.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.66
user 0.34
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974731/ft1_filtered_4FGL_J1033.1+4115_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/974731/ft2_4FGL_J1033.1+4115_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/974731/ltcube_410918401_411177601_4FGL_J1033.1+4115_daily_bin662.fits outfile=/scratch/kocevski/974731/expmap_410918401_411177601_4FGL_J1033.1+4115_daily_bin662.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/974731/ltcube_410918401_411177601_4FGL_J1033.1+4115_daily_bin662.fits
.....................!
real 192.51
user 186.70
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/974731/ft1_filtered_4FGL_J1033.1+4115_daily_bin662.fits scfile=/scratch/kocevski/974731/ft2_4FGL_J1033.1+4115_daily_bin662.fits outfile=/scratch/kocevski/974731/cmap_410918401_411177601_4FGL_J1033.1+4115_daily_bin662.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.94
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.505       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10855E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.022       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8111       1.0000         .10000E-03   10000.    
     5 'norm      '    3.6090       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7578       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6365       1.0000         .10000E-03   10000.    
     9 'norm      '    14.907       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5652       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0796       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.998       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.998       1.0000         .10000E-03   10000.    
    20 'norm      '    2.6884       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    61.652       1.0000         .10000E-03   10000.    
    24 'norm      '    38.913       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.1710       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96319       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .62625       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2890.259     FROM MIGRAD    STATUS=CONVERGED     81 CALLS     3033 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.505        1.0022        .19804E-07   -.69156E-04
   2  Prefactor     .10027E-03    9.6791       -.24646E-05** at limit **
   3  Prefactor     34.025        1.3781        .21344E-06   -.26925E-02
   4  Prefactor     2.8113        1.0201       -.38211E-07   -.33734E-03
   5  norm          3.6096        1.0177        .69277E-07    .49356E-04
   6  Prefactor     .10000E-03    4.2052       -.30086E-05** at limit **
   7  Prefactor     1.7578        1.1101       -.11316E-06   -.16531E-02
   8  Prefactor     2.6506        3.6420        .28411E-05   -.24894E-02
   9  norm          14.908        1.8059        .26117E-06    .83591E-02
  10  Prefactor     .10000E-03    2.2604       -.15283E-06** at limit **
  11  norm          2.5654        1.0538       -.18224E-06    .67971E-04
  12  Prefactor     .10065E-03    18.414       -.10358E-04** at limit **
  13  Prefactor     .10000E-03    12.449       -.29742E-05** at limit **
  14  Prefactor     .10000E-03    3.1023       -.14705E-06** at limit **
  15  Prefactor     3.0800        3.3555        .29185E-05    .17187E-03
  16  Prefactor     27.997        1.0617       -.87623E-07    .78009E-03
  17  Prefactor     .10018E-03    9.9272       -.34394E-05** at limit **
  18  Prefactor     .10005E-03    10.730       -.49252E-05** at limit **
  19  Prefactor     42.997        1.1297       -.10464E-06    .17308E-02
  20  norm          2.6884        .61987        .15942E-06    .26517E-03
  21  Prefactor     .10000E-03    9.4845        .37187E-06** at limit **
  22  Prefactor     .10000E-03    16.003       -.80738E-06** at limit **
  23  Prefactor     61.651        1.0551       -.55872E-07    .13209E-02
  24  norm          38.914        1.0307        .53469E-07   -.46270E-03
  25  Prefactor     .10000E-03    1.3336       -.90162E-06** at limit **
  26  Prefactor     .10009E-03    22.323        .11285E-04** at limit **
  27  norm          8.1718        1.6518        .30712E-06    .53416E-02
  28  Normalizat    .96291        .24904       -.23207E-05   -.18274E-04
  29  Prefactor     .62656        .31457        .61938E-06   -.10056E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.5049
  Prefactor  = 0.000100275
  Prefactor  = 34.0252
  Prefactor  = 2.81131
  norm       = 3.60964
  Prefactor  = 0.0001
  Prefactor  = 1.75779
  Prefactor  = 2.65055
  norm       = 14.9079
  Prefactor  = 0.0001
  norm       = 2.56543
  Prefactor  = 0.000100655
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.08003
  Prefactor  = 27.9965
  Prefactor  = 0.000100175
  Prefactor  = 0.000100051
  Prefactor  = 42.9966
  norm       = 2.6884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.6505
  norm       = 38.9136
  Prefactor  = 0.0001
  Prefactor  = 0.000100094
  norm       = 8.17177
  Normalizat = 0.962911
  Prefactor  = 0.626561
 **********
 **   18 **HESSE 
 **********

 FCN=   2890.259     FROM HESSE     STATUS=OK           613 CALLS     3646 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.505        18.994        .23276E-02   -1.4847    
   2  Prefactor     .10027E-03    40.916        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.025        47.339        .17175E-02   -1.4541    
   4  Prefactor     2.8113        7.3272        .60652E-02   -1.5373    
   5  norm          3.6096        22.737        .53172E-02   -1.5328    
   6  Prefactor     .10000E-03    4.1810        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7578        4.6613        .79023E-02   -1.5443    
   8  Prefactor     2.6506        115.99        .62780E-02   -1.5382    
   9  norm          14.908        5.5373        .25935E-02   -1.4936    
  10  Prefactor     .10000E-03    2.2508        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5654        10.011        .63718E-02   -1.5388    
  12  Prefactor     .10065E-03    47.758        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.787        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0774        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0800        3.3586        .57782E-02   -1.5357    
  16  Prefactor     27.997        30.388        .18928E-02   -1.4649    
  17  Prefactor     .10018E-03    41.863        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10005E-03    42.723        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     42.997        130.13        .15284E-02   -1.4396    
  20  norm          2.6884        .62208        .44616E-02   -1.5380    
  21  Prefactor     .10000E-03    9.4839        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.332        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     61.651        141.04        .12776E-02   -1.4136    
  24  norm          38.914        20.418        .16063E-02   -1.4460    
  25  Prefactor     .10000E-03    1.3320        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10009E-03    25.754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.1718        5.5318        .35064E-02   -1.5136    
  28  Normalizat    .96291        .22701        .45704E-01   -.94284    
  29  Prefactor     .62656        .27220        .72284E-01   -1.0648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81217e-07
Minuit parameter uncertainties:
  1  19.0007
  2  0.00670775
  3  47.3912
  4  7.3295
  5  18.1286
  6  2.42599e-05
  7  4.66225
  8  35.1394
  9  5.53752
  10  3.2302e-07
  11  10.0172
  12  0.011193
  13  0.000320501
  14  1.28272e-07
  15  3.35881
  16  30.4043
  17  0.00542286
  18  0.00296788
  19  131.004
  20  0.622077
  21  0.000114016
  22  0.000169006
  23  141.818
  24  20.4218
  25  2.57124e-06
  26  0.00311808
  27  5.53216
  28  0.227235
  29  0.27278
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  1.283e-07  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:  6.266e-01  2.728e-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.629e-01  2.272e-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: 8.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/974731/likelihoodResults_410918401_411177601_4FGL_J1033.1+4115_daily_bin662.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) = 2890.2608104
delta logL = -0.00152950251777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2890.25928094
delta logL = -3.97230905946e-08

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    4.4029        .92034E-03** at limit **
   2  Index         2.4474        6.6777        .50000       -.35347E-05
   3  Normalizat    .96291        .24807        .20803E-03   -.65852E-05
   4  Prefactor     .62656        .31402        .31997E-03    .10588E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2890.259     FROM SIMPLEX   STATUS=UNCHANGED    118 CALLS      356 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    4.4029        .16044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4474        6.6777        .29043E-02   -.53579    
   3  Normalizat    .96291        .24807        .16017E-03   -.94284    
   4  Prefactor     .62656        .31402        .14842E-03   -1.0648    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2890.259     FROM MIGRAD    STATUS=CONVERGED      7 CALLS      363 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0518       -.31466E-05** at limit **
   2  Index         2.5578        6.0823        .13847E-01   -.11788E-06
   3  Normalizat    .96291        .24768        .10174E-05    .15694E-03
   4  Prefactor     .62656        .31378       -.10988E-05    .47534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.55781
  Normalizat = 0.962913
  Prefactor  = 0.626559
 **********
 **   18 **HESSE 
 **********

 FCN=   2890.259     FROM HESSE     STATUS=OK            29 CALLS      392 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2869        .18407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5578        7.6110        .50000       -.51030    
   3  Normalizat    .96291        .24829        .83212E-05   -.94283    
   4  Prefactor     .62656        .31430        .12799E-04   -1.0648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11802e-10
Minuit parameter uncertainties:
  1  1.98861e-05
  2  241.923
  3  0.248592
  4  0.315188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974731': 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) = 2890.25928082
delta logL = 7.70724000176e-08

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  1.989e-05  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.558e+00  2.419e+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:  6.266e-01  3.152e-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.629e-01  2.486e-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/974731/cmap_HighResolution_410918401_411177601_4FGL_J1033.1+4115_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', job_status='DONE', photon_flux_upper_limit='8.71e-08', time_completed='2021-09-02 03:35:05.236395', job_id='974731', GAL2='0.63', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630578905.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='7.71e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='662' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:35:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 974731: <4FGL_J1033.1+4115_daily_bin662> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin662 158.275 41.262 410918401 411177601 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 :                                   609.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             223.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            876 sec.

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

