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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1468
RA = 154.607, Dec = 35.6802
tmin = 619833601, tmax = 620092801
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='815736', job_status='RUN', time_executed='2021-09-01 18:07:59.091482', time_epoch_executed='1630544879.09' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815736/ft1_4FGL_J1018.4+3540_daily_bin1468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815736/ft2_4FGL_J1018.4+3540_daily_bin1468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815736/ft1_4FGL_J1018.4+3540_daily_bin1468.fits outfile=/scratch/kocevski/815736/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1468.fits ra=154.607 dec=35.6802 rad=12.0 tmin=619833601.0 tmax=620092801.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 3.47
user 3.23
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/815736/ft2_4FGL_J1018.4+3540_daily_bin1468.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/815736/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1468.fits evtable="EVENTS" outfile="/scratch/kocevski/815736/ft1_filtered_4FGL_J1018.4+3540_daily_bin1468.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/815736/ft1_filtered_4FGL_J1018.4+3540_daily_bin1468.fits" evtable="EVENTS" scfile=/scratch/kocevski/815736/ft2_4FGL_J1018.4+3540_daily_bin1468.fits sctable="SC_DATA" outfile=/scratch/kocevski/815736/ltcube_619833601_620092801_4FGL_J1018.4+3540_daily_bin1468.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/815736/ft2_4FGL_J1018.4+3540_daily_bin1468.fits
.....................!
real 16.21
user 15.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815736/ft1_filtered_4FGL_J1018.4+3540_daily_bin1468.fits evtable="EVENTS" scfile=/scratch/kocevski/815736/ft2_4FGL_J1018.4+3540_daily_bin1468.fits sctable="SC_DATA" expcube=/scratch/kocevski/815736/ltcube_619833601_620092801_4FGL_J1018.4+3540_daily_bin1468.fits outfile=/scratch/kocevski/815736/expmap_619833601_620092801_4FGL_J1018.4+3540_daily_bin1468.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/815736/ltcube_619833601_620092801_4FGL_J1018.4+3540_daily_bin1468.fits
.....................!
real 190.64
user 186.22
sys 3.96

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/815736/ft1_filtered_4FGL_J1018.4+3540_daily_bin1468.fits scfile=/scratch/kocevski/815736/ft2_4FGL_J1018.4+3540_daily_bin1468.fits outfile=/scratch/kocevski/815736/cmap_619833601_620092801_4FGL_J1018.4+3540_daily_bin1468.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/815736/ft1_filtered_4FGL_J1018.4+3540_daily_bin1468.fits scfile=/scratch/kocevski/815736/ft2_4FGL_J1018.4+3540_daily_bin1468.fits outfile=/scratch/kocevski/815736/cmap_HighResolution_619833601_620092801_4FGL_J1018.4+3540_daily_bin1468.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.227       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3184       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6631       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34152       1.0000         .10000E-03   10000.    
     9 'norm      '    27.831       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3793       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.507       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15360E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5552       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.620       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.2721       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    21.063       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91803       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2722       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=   6299.986     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3266 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.079       -.29673E-05** at limit **
   2  norm          .10000E-03    4.6143       -.39511E-06** at limit **
   3  Prefactor     26.222        25.740       -.44276E-05    .12373E-04
   4  Prefactor     .10000E-03    6.6397       -.44112E-05** at limit **
   5  Prefactor     .10000E-03    16.117       -.10672E-04** at limit **
   6  Prefactor     2.3124        8.6332       -.74823E-06   -.31367E-03
   7  Prefactor     8.6623        10.746        .58253E-07    .11230E-03
   8  Prefactor     .36639        1.7453        .15715E-07   -.40370E-03
   9  norm          27.830        12.005        .34469E-07    .18098E-04
  10  Prefactor     9.3711        4.9755        .19830E-05    .20247E-02
  11  Prefactor     16.509        21.802        .14313E-05    .68154E-04
  12  Prefactor     .10001E-03    3.0786       -.23603E-05** at limit **
  13  norm          1.5518        14.026       -.19744E-05   -.30690E-03
  14  Prefactor     .10000E-03    23.267        .11492E-04** at limit **
  15  Prefactor     45.616        31.419       -.24597E-05    .16481E-03
  16  Prefactor     .10000E-03    1.8547        .29501E-06** at limit **
  17  Prefactor     .10000E-03    2.5235        .30045E-06** at limit **
  18  Prefactor     .10000E-03    11.555        .44606E-05** at limit **
  19  Prefactor     .10000E-03    43.638        .84391E-05** at limit **
  20  Prefactor     .10000E-03    47.044       -.13374E-04** at limit **
  21  Prefactor     .10000E-03    12.620        .36275E-05** at limit **
  22  norm          2.2721        .41964       -.14480E-07   -.20028E-04
  23  Prefactor     .10000E-03    6.4758        .37519E-05** at limit **
  24  Prefactor     .10000E-03    10.632       -.14078E-05** at limit **
  25  norm          21.064        15.923       -.68971E-07   -.47297E-04
  26  Normalizat    .91780        .17907        .25516E-06    .47937E-03
  27  Prefactor     1.2724        .21249       -.14918E-06    .35567E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.2215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.31244
  Prefactor  = 8.66226
  Prefactor  = 0.36639
  norm       = 27.8302
  Prefactor  = 9.37105
  Prefactor  = 16.5094
  Prefactor  = 0.000100009
  norm       = 1.55182
  Prefactor  = 0.0001
  Prefactor  = 45.6159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.27207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.0643
  Normalizat = 0.917801
  Prefactor  = 1.27236
 **********
 **   18 **HESSE 
 **********

 FCN=   6299.986     FROM HESSE     STATUS=OK           482 CALLS     3748 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.586        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.6169        .16652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.222        25.623        .78224E-04   -1.4683    
   4  Prefactor     .10000E-03    6.6163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3124        8.6276        .26941E-03   -1.5404    
   7  Prefactor     8.6623        10.736        .13619E-03   -1.5119    
   8  Prefactor     .36639        7.7940        .18917E-02   -1.5587    
   9  norm          27.830        11.996        .75940E-04   -1.4652    
  10  Prefactor     9.3711        4.7274        .11525E-03   -1.5096    
  11  Prefactor     16.509        21.764        .98578E-04   -1.4895    
  12  Prefactor     .10001E-03    12.615        .24283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5518        14.158        .34140E-03   -1.5459    
  14  Prefactor     .10000E-03    23.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     45.616        31.050        .59361E-04   -1.4356    
  16  Prefactor     .10000E-03    1.8681        .10546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.5307        .12280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    43.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    46.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.2721        .41994        .21306E-04   -1.5406    
  23  Prefactor     .10000E-03    6.4639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          21.064        15.923        .87274E-04   -1.4790    
  26  Normalizat    .91780        .21125        .26179E-03   -.95837    
  27  Prefactor     1.2724        .25115        .27969E-03   -.84133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31756e-09
Minuit parameter uncertainties:
  1  3.45172e-05
  2  1.24923e-06
  3  25.6336
  4  2.09544e-06
  5  1.41711e-05
  6  8.63225
  7  10.7384
  8  3.37977
  9  11.9969
  10  4.72763
  11  21.7741
  12  0.000659711
  13  9.37729
  14  9.34759e-06
  15  31.061
  16  4.44562e-06
  17  2.23847e-05
  18  8.90795e-06
  19  5.4397e-05
  20  5.49247e-06
  21  2.1479e-05
  22  0.419944
  23  4.48094e-07
  24  2.26758e-06
  25  15.9266
  26  0.211438
  27  0.251386
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  6.597e-04  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:  1.272e+00  2.514e-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:  9.178e-01  2.114e-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: 9.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/815736/likelihoodResults_619833601_620092801_4FGL_J1018.4+3540_daily_bin1468.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) = 6299.98638758
delta logL = -0.000377661482162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6299.98601001
delta logL = -9.78179741651e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5920       1.0000          .0000       10.000    
     3 'Normalizat'    .91784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2724       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=   6299.986     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      235 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0373        .70395E-01** at limit **
   2  Index         2.5938        6.1582        .50000       -.15196E-05
   3  Normalizat    .91780        .60914E-02    .45129E-01    .86274E-04
   4  Prefactor     1.2724        .75515E-02    .63237E-01    .44278E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.59378
  Normalizat = 0.9178
  Prefactor  = 1.27236
 **********
 **   18 **HESSE 
 **********

 FCN=   6299.986     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      270 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6166.8        .24808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5938        5.8507        .50000       -.50207    
   3  Normalizat    .91780        .10089        .26179E-03   -.95837    
   4  Prefactor     1.2724        .12356        .27969E-03   -.84133    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15508e-08
Minuit parameter uncertainties:
  1  0.00328326
  2  62.4209
  3  0.100912
  4  0.123588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815736': 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) = 6299.98600991
delta logL = 1.63799995789e-09

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  3.283e-03  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.594e+00  6.242e+01  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:  1.272e+00  1.236e-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:  9.178e-01  1.009e-01  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/815736/cmap_HighResolution_619833601_620092801_4FGL_J1018.4+3540_daily_bin1468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', job_status='DONE', photon_flux_upper_limit='9.65e-08', time_completed='2021-09-01 18:21:33.184143', job_id='815736', GAL2='1.27', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630545693.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.64e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1468' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:21:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 815736: <4FGL_J1018.4+3540_daily_bin1468> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1468> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 18:05:50 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:05:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 18:05:52 2021
Terminated at Wed Sep  1 18:21:33 2021
Results reported at Wed Sep  1 18:21:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1468 154.607 35.6802 619833601 620092801 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 :                                   812.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

