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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin3
RA = 154.607, Dec = 35.6802
tmin = 240105601, tmax = 240364801
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='809433', job_status='RUN', time_executed='2021-09-01 17:46:10.498331', time_epoch_executed='1630543570.5' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809433

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809433/ft1_4FGL_J1018.4+3540_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809433/ft2_4FGL_J1018.4+3540_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809433/ft1_4FGL_J1018.4+3540_daily_bin3.fits outfile=/scratch/kocevski/809433/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin3.fits ra=154.607 dec=35.6802 rad=12.0 tmin=240105601.0 tmax=240364801.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 1.46
user 1.27
sys 0.17

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809433/ft1_filtered_4FGL_J1018.4+3540_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/809433/ft2_4FGL_J1018.4+3540_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/809433/ltcube_240105601_240364801_4FGL_J1018.4+3540_daily_bin3.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/809433/ft2_4FGL_J1018.4+3540_daily_bin3.fits
.....................!
real 16.43
user 16.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809433/ft1_filtered_4FGL_J1018.4+3540_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/809433/ft2_4FGL_J1018.4+3540_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/809433/ltcube_240105601_240364801_4FGL_J1018.4+3540_daily_bin3.fits outfile=/scratch/kocevski/809433/expmap_240105601_240364801_4FGL_J1018.4+3540_daily_bin3.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/809433/ltcube_240105601_240364801_4FGL_J1018.4+3540_daily_bin3.fits
.....................!
real 192.61
user 186.63
sys 5.24

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/809433/ft1_filtered_4FGL_J1018.4+3540_daily_bin3.fits scfile=/scratch/kocevski/809433/ft2_4FGL_J1018.4+3540_daily_bin3.fits outfile=/scratch/kocevski/809433/cmap_240105601_240364801_4FGL_J1018.4+3540_daily_bin3.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809433/ft1_filtered_4FGL_J1018.4+3540_daily_bin3.fits scfile=/scratch/kocevski/809433/ft2_4FGL_J1018.4+3540_daily_bin3.fits outfile=/scratch/kocevski/809433/cmap_HighResolution_240105601_240364801_4FGL_J1018.4+3540_daily_bin3.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.57
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/809433/ft1_filtered_4FGL_J1018.4+3540_daily_bin3.fits', '/scratch/kocevski/809433/ft2_4FGL_J1018.4+3540_daily_bin3.fits', expMap='/scratch/kocevski/809433/expmap_240105601_240364801_4FGL_J1018.4+3540_daily_bin3.fits', expCube='/scratch/kocevski/809433/ltcube_240105601_240364801_4FGL_J1018.4+3540_daily_bin3.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/809433/Model_4FGL_J1018.4+3540_daily_bin3.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/809433/ft1_filtered_4FGL_J1018.4+3540_daily_bin3.fits
Spacecraft file(s): /scratch/kocevski/809433/ft2_4FGL_J1018.4+3540_daily_bin3.fits
Exposure map: /scratch/kocevski/809433/expmap_240105601_240364801_4FGL_J1018.4+3540_daily_bin3.fits
Exposure cube: /scratch/kocevski/809433/ltcube_240105601_240364801_4FGL_J1018.4+3540_daily_bin3.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/809433/Model_4FGL_J1018.4+3540_daily_bin3.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) = 4647.98588819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6139       1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .64104E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.615       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.501       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    24.796       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0371       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1784       1.0000         .10000E-03   10000.    
    13 'norm      '    12.272       1.0000         .10000E-03   10000.    
    14 'Prefactor '    65.022       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.650       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5838       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10796E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.517       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5336       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3101       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.9311       1.0000         .10000E-03   10000.    
    25 'norm      '    82.106       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2252       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .66817       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=   4647.980     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3292 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6142        8.8035       -.38144E-06   -.11548E-03
   2  norm          .10000E-03    8.2407        .84246E-06** at limit **
   3  Prefactor     .10109E-03    24.758       -.48674E-05** at limit **
   4  Prefactor     11.623        28.291        .76387E-05   -.10486E-04
   5  Prefactor     .10000E-03    73.021       -.45656E-05** at limit **
   6  Prefactor     11.500        9.9206        .87231E-07    .11628E-03
   7  Prefactor     .10000E-03    4.2182       -.42236E-07** at limit **
   8  Prefactor     .10000E-03    2.2608       -.20463E-07** at limit **
   9  norm          24.797        12.129        .14586E-07    .19805E-04
  10  Prefactor     2.0370        3.1654       -.30796E-08   -.32166E-03
  11  Prefactor     .10000E-03    13.975        .78587E-05** at limit **
  12  Prefactor     2.1780        3.6387        .66219E-08   -.29661E-03
  13  norm          12.272        9.7623        .17040E-06   -.53518E-04
  14  Prefactor     65.024        64.911        .15495E-05    .10677E-05
  15  Prefactor     10.638        23.639       -.48540E-05    .17583E-05
  16  Prefactor     1.5835        4.9209        .22336E-05   -.60058E-03
  17  Prefactor     .10000E-03    7.0277        .42276E-07** at limit **
  18  Prefactor     .10000E-03    26.335       -.18068E-04** at limit **
  19  Prefactor     10.517        23.477       -.25122E-06   -.90566E-05
  20  Prefactor     .10000E-03    32.249        .20048E-04** at limit **
  21  Prefactor     6.5341        13.797       -.10719E-06   -.56733E-04
  22  norm          1.3102        .42264        .67532E-07    .17111E-03
  23  Prefactor     .10000E-03    12.101       -.57594E-05** at limit **
  24  Prefactor     7.9305        15.365       -.19582E-05   -.60740E-03
  25  norm          82.107        25.863        .26278E-06    .58901E-04
  26  Normalizat    1.2252        .20489       -.14783E-05    .25144E-03
  27  Prefactor     .66813        .23314        .10293E-05    .77747E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.61422
  norm       = 0.0001
  Prefactor  = 0.000101088
  Prefactor  = 11.6233
  Prefactor  = 0.000100001
  Prefactor  = 11.4998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.7968
  Prefactor  = 2.03705
  Prefactor  = 0.0001
  Prefactor  = 2.17802
  norm       = 12.2724
  Prefactor  = 65.0237
  Prefactor  = 10.6377
  Prefactor  = 1.58351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5167
  Prefactor  = 0.0001
  Prefactor  = 6.53412
  norm       = 1.31016
  Prefactor  = 0.0001
  Prefactor  = 7.93049
  norm       = 82.1066
  Normalizat = 1.22521
  Prefactor  = 0.668127
 **********
 **   18 **HESSE 
 **********

 FCN=   4647.980     FROM HESSE     STATUS=OK           488 CALLS     3780 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6142        8.8145        .15604E-03   -1.5194    
   2  norm          .10000E-03    8.2401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10109E-03    116.24        .64677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.623        28.262        .11754E-03   -1.5026    
   5  Prefactor     .10000E-03    73.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.500        9.8878        .11813E-03   -1.5030    
   7  Prefactor     .10000E-03    4.2324        .13673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3497        .19974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          24.797        12.125        .80444E-04   -1.4712    
  10  Prefactor     2.0370        3.1280        .14139E-03   -1.5423    
  11  Prefactor     .10000E-03    13.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1780        3.5988        .15711E-03   -1.5413    
  13  norm          12.272        9.7484        .11435E-03   -1.5007    
  14  Prefactor     65.024        64.906        .49769E-04   -1.4093    
  15  Prefactor     10.638        23.511        .12277E-03   -1.5056    
  16  Prefactor     1.5835        4.8401        .24717E-03   -1.5456    
  17  Prefactor     .10000E-03    7.2682        .35115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.517        23.483        .12355E-03   -1.5059    
  20  Prefactor     .10000E-03    32.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.5341        13.794        .15700E-03   -1.5197    
  22  norm          1.3102        .42663        .23542E-04   -1.5479    
  23  Prefactor     .10000E-03    12.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.9305        15.747        .71188E-03   -1.5145    
  25  norm          82.107        25.866        .44327E-04   -1.3893    
  26  Normalizat    1.2252        .23450        .21574E-03   -.85827    
  27  Prefactor     .66813        .26487        .33412E-03   -1.0479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11326e-08
Minuit parameter uncertainties:
  1  8.81621
  2  4.99665e-05
  3  0.0225327
  4  28.2945
  5  0.000509375
  6  9.88925
  7  3.00737e-06
  8  7.90656e-06
  9  12.1263
  10  3.12821
  11  1.29038e-05
  12  3.59915
  13  9.74966
  14  64.9767
  15  23.5316
  16  4.84127
  17  9.96476e-05
  18  1.17362e-06
  19  23.5041
  20  3.06506e-06
  21  13.8004
  22  0.426628
  23  1.64427e-05
  24  15.7553
  25  25.8696
  26  0.234704
  27  0.265373
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.178e+00  3.599e+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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  6.681e-01  2.654e-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.225e+00  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/809433/likelihoodResults_240105601_240364801_4FGL_J1018.4+3540_daily_bin3.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4647.97966586
delta logL = 0.000400450439884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4647.97953478
delta logL = 0.000531531673005

Fit tolerance = 1e-08

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

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

 FCN=   4647.980     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      220 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2343        164.67        .68764E-02    .34180E-03
   2  Index         2.5388        5.8015        .24592        .20904E-04
   3  Normalizat    1.2262        .69614E-01    .34277E-01   -.82024E-06
   4  Prefactor     .66728        .71438E-01    .75514E-01    .17667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.23427
  Index      = 2.53876
  Normalizat = 1.22622
  Prefactor  = 0.667278
 **********
 **   18 **HESSE 
 **********

 FCN=   4647.980     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2343        4.1134        .15976E-03   -1.5409    
   2  Index         2.5388        1.5836        .15203E-01   -.51467    
   3  Normalizat    1.2262        .22302        .21566E-03   -.85796    
   4  Prefactor     .66728        .26060        .33431E-03   -1.0482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.41911e-10
Minuit parameter uncertainties:
  1  4.11389
  2  1.6208
  3  0.223196
  4  0.261071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809433': 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) = 4647.97953473
delta logL = 0.000531581132236

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.234e+00  4.114e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.539e+00  1.621e+00  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:  6.673e-01  2.611e-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.226e+00  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
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/809433/cmap_HighResolution_240105601_240364801_4FGL_J1018.4+3540_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.74e-03', job_status='DONE', photon_flux_upper_limit='9.90e-08', time_completed='2021-09-01 17:57:35.579085', job_id='809433', GAL2='0.67', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630544255.58', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='5.32e-04', ts2='0.60', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='3' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:57:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 809433: <4FGL_J1018.4+3540_daily_bin3> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin3> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 17:45:22 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:45:31 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:45:31 2021
Terminated at Wed Sep  1 17:57:36 2021
Results reported at Wed Sep  1 17:57:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin3 154.607 35.6802 240105601 240364801 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 :                                   684.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            734 sec.

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

