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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1009
RA = 154.607, Dec = 35.6802
tmin = 500860801, tmax = 501120001
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='812982', job_status='RUN', time_executed='2021-09-01 17:56:47.499313', time_epoch_executed='1630544207.5' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812982

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812982/ft1_4FGL_J1018.4+3540_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812982/ft2_4FGL_J1018.4+3540_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812982/ft1_4FGL_J1018.4+3540_daily_bin1009.fits outfile=/scratch/kocevski/812982/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1009.fits ra=154.607 dec=35.6802 rad=12.0 tmin=500860801.0 tmax=501120001.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.60
user 4.33
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/812982/ft2_4FGL_J1018.4+3540_daily_bin1009.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/812982/ft2_4FGL_J1018.4+3540_daily_bin1009.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/812982/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1009.fits evtable="EVENTS" outfile="/scratch/kocevski/812982/ft1_filtered_4FGL_J1018.4+3540_daily_bin1009.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812982/ft1_filtered_4FGL_J1018.4+3540_daily_bin1009.fits" evtable="EVENTS" scfile=/scratch/kocevski/812982/ft2_4FGL_J1018.4+3540_daily_bin1009.fits sctable="SC_DATA" outfile=/scratch/kocevski/812982/ltcube_500860801_501120001_4FGL_J1018.4+3540_daily_bin1009.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/812982/ft2_4FGL_J1018.4+3540_daily_bin1009.fits
.....................!
real 16.72
user 16.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812982/ft1_filtered_4FGL_J1018.4+3540_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/812982/ft2_4FGL_J1018.4+3540_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/812982/ltcube_500860801_501120001_4FGL_J1018.4+3540_daily_bin1009.fits outfile=/scratch/kocevski/812982/expmap_500860801_501120001_4FGL_J1018.4+3540_daily_bin1009.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/812982/ltcube_500860801_501120001_4FGL_J1018.4+3540_daily_bin1009.fits
.....................!
real 193.36
user 187.67
sys 4.75

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/812982/ft1_filtered_4FGL_J1018.4+3540_daily_bin1009.fits scfile=/scratch/kocevski/812982/ft2_4FGL_J1018.4+3540_daily_bin1009.fits outfile=/scratch/kocevski/812982/cmap_500860801_501120001_4FGL_J1018.4+3540_daily_bin1009.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=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812982/ft1_filtered_4FGL_J1018.4+3540_daily_bin1009.fits scfile=/scratch/kocevski/812982/ft2_4FGL_J1018.4+3540_daily_bin1009.fits outfile=/scratch/kocevski/812982/cmap_HighResolution_500860801_501120001_4FGL_J1018.4+3540_daily_bin1009.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=154.607 yref=35.6802 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.59
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/812982/ft1_filtered_4FGL_J1018.4+3540_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/812982/ft2_4FGL_J1018.4+3540_daily_bin1009.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/812982/Model_4FGL_J1018.4+3540_daily_bin1009.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/812982/ft1_filtered_4FGL_J1018.4+3540_daily_bin1009.fits....................!
real 53.63
user 52.18
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/812982/ft1_filtered_4FGL_J1018.4+3540_daily_bin1009.fits', '/scratch/kocevski/812982/ft2_4FGL_J1018.4+3540_daily_bin1009.fits', expMap='/scratch/kocevski/812982/expmap_500860801_501120001_4FGL_J1018.4+3540_daily_bin1009.fits', expCube='/scratch/kocevski/812982/ltcube_500860801_501120001_4FGL_J1018.4+3540_daily_bin1009.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/812982/Model_4FGL_J1018.4+3540_daily_bin1009.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+3540'

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/812982/ft1_filtered_4FGL_J1018.4+3540_daily_bin1009.fits
Spacecraft file(s): /scratch/kocevski/812982/ft2_4FGL_J1018.4+3540_daily_bin1009.fits
Exposure map: /scratch/kocevski/812982/expmap_500860801_501120001_4FGL_J1018.4+3540_daily_bin1009.fits
Exposure cube: /scratch/kocevski/812982/ltcube_500860801_501120001_4FGL_J1018.4+3540_daily_bin1009.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/812982/Model_4FGL_J1018.4+3540_daily_bin1009.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) = 5996.55034065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.476       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.143       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.522       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1202       1.0000         .10000E-03   10000.    
     9 'norm      '    4.1933       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.415       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4761       1.0000         .10000E-03   10000.    
    14 'Prefactor '    127.07       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8792       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.489       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.7236       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7411       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.0729       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0498       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .94615       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5996.537     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3250 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.477        10.397        .14319E-06   -.14365E-04
   2  norm          .10000E-03    5.2140        .72563E-07** at limit **
   3  Prefactor     .10000E-03    9.5758        .47633E-06** at limit **
   4  Prefactor     .10000E-03    10.255       -.45856E-06** at limit **
   5  Prefactor     45.151        35.305        .14896E-05    .97461E-04
   6  Prefactor     35.523        10.776       -.10638E-06   -.31382E-04
   7  Prefactor     .10000E-03    4.1506       -.18686E-06** at limit **
   8  Prefactor     3.1201        2.1990        .31865E-07   -.49222E-04
   9  norm          4.1927        6.2114        .38638E-05   -.69922E-03
  10  Prefactor     .10000E-03    2.1140        .31639E-07** at limit **
  11  Prefactor     31.392        35.780       -.39334E-05   -.31608E-03
  12  Prefactor     .10000E-03    4.0204        .16309E-06** at limit **
  13  norm          3.4808        10.159        .11456E-05   -.82338E-05
  14  Prefactor     127.08        78.389        .21758E-05    .99015E-04
  15  Prefactor     .10000E-03    15.467       -.34082E-07** at limit **
  16  Prefactor     2.8799        4.4711        .41101E-06   -.13637E-03
  17  Prefactor     .10000E-03    2.0604       -.42040E-07** at limit **
  18  Prefactor     42.481        36.669       -.10720E-05   -.11638E-03
  19  Prefactor     .10000E-03    42.818        .24326E-06** at limit **
  20  Prefactor     7.7676        188.20        .22093E-04    .78469E-04
  21  Prefactor     .10000E-03    5.9290       -.30239E-06** at limit **
  22  norm          1.7412        .36941       -.76259E-08   -.22898E-03
  23  Prefactor     .10000E-03    5.0811        .54096E-07** at limit **
  24  Prefactor     .10000E-03    6.4669        .12153E-06** at limit **
  25  norm          6.0723        12.399        .34533E-05   -.23363E-03
  26  Normalizat    1.0495        .18180       -.71002E-06   -.39173E-04
  27  Prefactor     .94647        .20658       -.59848E-06   -.37210E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.4773
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.1507
  Prefactor  = 35.5225
  Prefactor  = 0.0001
  Prefactor  = 3.12015
  norm       = 4.19266
  Prefactor  = 0.0001
  Prefactor  = 31.3923
  Prefactor  = 0.0001
  norm       = 3.48085
  Prefactor  = 127.084
  Prefactor  = 0.0001
  Prefactor  = 2.87991
  Prefactor  = 0.0001
  Prefactor  = 42.4815
  Prefactor  = 0.0001
  Prefactor  = 7.76759
  Prefactor  = 0.0001
  norm       = 1.74119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.07234
  Normalizat = 1.04946
  Prefactor  = 0.946468
 **********
 **   18 **HESSE 
 **********

 FCN=   5996.537     FROM HESSE     STATUS=OK           478 CALLS     3728 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.477        10.401        .11341E-03   -1.5001    
   2  norm          .10000E-03    5.2169        .17269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.5911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     45.151        35.514        .59673E-04   -1.4363    
   6  Prefactor     35.523        10.777        .67240E-04   -1.4515    
   7  Prefactor     .10000E-03    4.1673        .15406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1201        2.1957        .92772E-04   -1.5355    
   9  norm          4.1927        6.4139        .98402E-03   -1.5298    
  10  Prefactor     .10000E-03    2.1376        .10985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.392        36.820        .71487E-04   -1.4587    
  12  Prefactor     .10000E-03    4.1099        .15144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4808        10.095        .21689E-03   -1.5335    
  14  Prefactor     127.08        78.731        .17856E-03   -1.3449    
  15  Prefactor     .10000E-03    15.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.8799        4.4349        .18597E-03   -1.5369    
  17  Prefactor     .10000E-03    2.0698        .10851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     42.481        36.689        .61501E-04   -1.4403    
  19  Prefactor     .10000E-03    43.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.7676        200.53        .14429E-03   -1.5150    
  21  Prefactor     .10000E-03    5.9508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7412        .37009        .20979E-04   -1.5444    
  23  Prefactor     .10000E-03    5.0902        .17045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.4785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.0723        12.503        .81462E-03   -1.5215    
  26  Normalizat    1.0495        .21343        .24114E-03   -.91391    
  27  Prefactor     .94647        .24127        .30098E-03   -.94536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6541e-09
Minuit parameter uncertainties:
  1  10.4025
  2  2.47024e-07
  3  4.5189e-05
  4  5.11644e-05
  5  35.5302
  6  10.7779
  7  7.19638e-06
  8  2.19576
  9  6.41493
  10  1.96027e-06
  11  36.8462
  12  1.76798e-05
  13  10.0996
  14  78.7956
  15  1.69411e-05
  16  4.4354
  17  3.39978e-06
  18  36.708
  19  5.45933e-05
  20  79.2304
  21  1.92623e-05
  22  0.370094
  23  5.32814e-07
  24  7.26872e-06
  25  12.5086
  26  0.213601
  27  0.241546
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  1.768e-05  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.465e-01  2.415e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.049e+00  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 8.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/812982/likelihoodResults_500860801_501120001_4FGL_J1018.4+3540_daily_bin1009.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) = 5996.53850843
delta logL = -0.0011598146375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5996.53734844
delta logL = 1.73909938894e-07

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.6105       1.0000          .0000       10.000    
     3 'Normalizat'    1.0494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94652       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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.

 FCN=   5996.537     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      272 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .59441E-01    .30759E-01** at limit **
   2  Index         3.7296        7.7387        .50000        .41439E-06
   3  Normalizat    1.0495        .11634E-02    .24114E-03   -.32601E-03
   4  Prefactor     .94647        .13921E-02    .30098E-03   -.45911E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.72965
  Normalizat = 1.04946
  Prefactor  = 0.946467
 **********
 **   18 **HESSE 
 **********

 FCN=   5996.537     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      305 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.179        .13769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7296        6.7780        .50000       -.25689    
   3  Normalizat    1.0495        .99329E-02    .48227E-04   -.91392    
   4  Prefactor     .94647        .11886E-01    .60197E-04   -.94536    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.53715e-11
Minuit parameter uncertainties:
  1  7.76463e-05
  2  159.558
  3  0.00993295
  4  0.0118856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812982': 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): 102
logL (Free Index) = 5996.53734178
delta logL = 6.82985864842e-06

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  7.765e-05  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  3.730e+00  1.596e+02  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.465e-01  1.189e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.049e+00  9.933e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

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/812982/cmap_HighResolution_500860801_501120001_4FGL_J1018.4+3540_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.55e-03', job_status='DONE', photon_flux_upper_limit='8.37e-08', time_completed='2021-09-01 18:10:10.723028', job_id='812982', GAL2='0.95', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630545010.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='6.83e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1009' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:10:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 812982: <4FGL_J1018.4+3540_daily_bin1009> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1009> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:56:09 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:56:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 17:56:19 2021
Terminated at Wed Sep  1 18:10:11 2021
Results reported at Wed Sep  1 18:10:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1009 154.607 35.6802 500860801 501120001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+3540 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   800.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            842 sec.

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

