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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1079
RA = 154.607, Dec = 35.6802
tmin = 519004801, tmax = 519264001
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='814090', job_status='RUN', time_executed='2021-09-01 18:02:28.933225', time_epoch_executed='1630544548.93' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1079'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814090

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814090/ft1_4FGL_J1018.4+3540_daily_bin1079.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814090/ft2_4FGL_J1018.4+3540_daily_bin1079.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814090/ft1_4FGL_J1018.4+3540_daily_bin1079.fits outfile=/scratch/kocevski/814090/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1079.fits ra=154.607 dec=35.6802 rad=12.0 tmin=519004801.0 tmax=519264001.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.67
user 3.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/814090/ft2_4FGL_J1018.4+3540_daily_bin1079.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/814090/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1079.fits evtable="EVENTS" outfile="/scratch/kocevski/814090/ft1_filtered_4FGL_J1018.4+3540_daily_bin1079.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.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814090/ft1_filtered_4FGL_J1018.4+3540_daily_bin1079.fits" evtable="EVENTS" scfile=/scratch/kocevski/814090/ft2_4FGL_J1018.4+3540_daily_bin1079.fits sctable="SC_DATA" outfile=/scratch/kocevski/814090/ltcube_519004801_519264001_4FGL_J1018.4+3540_daily_bin1079.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/814090/ft2_4FGL_J1018.4+3540_daily_bin1079.fits
.....................!
real 16.52
user 16.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814090/ft1_filtered_4FGL_J1018.4+3540_daily_bin1079.fits evtable="EVENTS" scfile=/scratch/kocevski/814090/ft2_4FGL_J1018.4+3540_daily_bin1079.fits sctable="SC_DATA" expcube=/scratch/kocevski/814090/ltcube_519004801_519264001_4FGL_J1018.4+3540_daily_bin1079.fits outfile=/scratch/kocevski/814090/expmap_519004801_519264001_4FGL_J1018.4+3540_daily_bin1079.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/814090/ltcube_519004801_519264001_4FGL_J1018.4+3540_daily_bin1079.fits
.....................!
real 192.41
user 186.81
sys 4.87

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/814090/ft1_filtered_4FGL_J1018.4+3540_daily_bin1079.fits scfile=/scratch/kocevski/814090/ft2_4FGL_J1018.4+3540_daily_bin1079.fits outfile=/scratch/kocevski/814090/cmap_519004801_519264001_4FGL_J1018.4+3540_daily_bin1079.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/814090/ft1_filtered_4FGL_J1018.4+3540_daily_bin1079.fits scfile=/scratch/kocevski/814090/ft2_4FGL_J1018.4+3540_daily_bin1079.fits outfile=/scratch/kocevski/814090/cmap_HighResolution_519004801_519264001_4FGL_J1018.4+3540_daily_bin1079.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41796       1.0000         .10000E-03   10000.    
     2 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.732       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.325       1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.311       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7641       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19186E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2164       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4221       1.0000         .10000E-03   10000.    
    13 'norm      '    18.056       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4486       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.600       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5528       1.0000         .10000E-03   10000.    
    23 'Prefactor '    44.451       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.0716       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91267       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98274       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=   5705.564     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3280 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41786        6.0923       -.10214E-05   -.15765E-03
   2  norm          .10000E-03    7.6139       -.41729E-06** at limit **
   3  Prefactor     15.729        34.904       -.31220E-05   -.65946E-05
   4  Prefactor     36.320        35.080       -.30083E-05    .20782E-04
   5  Prefactor     34.310        41.206        .22748E-06    .11850E-04
   6  Prefactor     3.7641        8.2360       -.19925E-06   -.21238E-03
   7  Prefactor     .10000E-03    5.9675        .17706E-06** at limit **
   8  Prefactor     .10000E-03    1.0824        .95444E-07** at limit **
   9  norm          .10000E-03    4.9244       -.36430E-06** at limit **
  10  Prefactor     3.2149        5.6488       -.86027E-07   -.50379E-03
  11  Prefactor     .10000E-03    19.121        .77879E-05** at limit **
  12  Prefactor     5.4243        7.0937       -.43090E-06   -.32935E-03
  13  norm          18.058        11.875       -.39270E-06   -.28639E-04
  14  Prefactor     .10000E-03    62.869       -.19245E-05** at limit **
  15  Prefactor     .10000E-03    21.426       -.98087E-05** at limit **
  16  Prefactor     5.4479        5.4554       -.15746E-05   -.33623E-03
  17  Prefactor     .10000E-03    3.5719       -.29173E-07** at limit **
  18  Prefactor     21.611        42.084        .15937E-04    .20664E-04
  19  Prefactor     .10000E-03    8.9890        .65671E-06** at limit **
  20  Prefactor     .10000E-03    34.337        .50337E-05** at limit **
  21  Prefactor     .10000E-03    4.2429       -.76469E-07** at limit **
  22  norm          1.5528        .38577       -.33057E-08    .10283E-03
  23  Prefactor     44.453        21.214       -.36711E-07    .16557E-04
  24  Prefactor     .10000E-03    10.457       -.12223E-05** at limit **
  25  norm          4.0724        12.022       -.37453E-06   -.10039E-03
  26  Normalizat    .91274        .18656        .16246E-06    .15260E-04
  27  Prefactor     .98266        .20606       -.32593E-06    .21503E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.417858
  norm       = 0.0001
  Prefactor  = 15.7292
  Prefactor  = 36.32
  Prefactor  = 34.3102
  Prefactor  = 3.76408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.21494
  Prefactor  = 0.0001
  Prefactor  = 5.42428
  norm       = 18.0583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.44794
  Prefactor  = 0.0001
  Prefactor  = 21.6114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.55276
  Prefactor  = 44.4526
  Prefactor  = 0.0001
  norm       = 4.07238
  Normalizat = 0.912741
  Prefactor  = 0.982664
 **********
 **   18 **HESSE 
 **********

 FCN=   5705.564     FROM HESSE     STATUS=OK           494 CALLS     3774 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41786        21.175        .35989E-02   -1.5579    
   2  norm          .10000E-03    7.6169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.729        34.889        .10098E-03   -1.4915    
   4  Prefactor     36.320        35.064        .66495E-04   -1.4502    
   5  Prefactor     34.310        41.178        .68412E-04   -1.4536    
   6  Prefactor     3.7641        8.2197        .20809E-03   -1.5320    
   7  Prefactor     .10000E-03    32.776        .35176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0929        .76675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.9431        .16366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2149        5.4936        .17833E-03   -1.5349    
  11  Prefactor     .10000E-03    19.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4243        6.9498        .17114E-03   -1.5242    
  13  norm          18.058        11.868        .94255E-04   -1.4858    
  14  Prefactor     .10000E-03    62.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.4479        5.4922        .15968E-03   -1.5241    
  17  Prefactor     .10000E-03    3.5958        .13925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.611        42.049        .86183E-04   -1.4778    
  19  Prefactor     .10000E-03    8.9917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.2500        .15195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5528        .38691        .21914E-04   -1.5459    
  23  Prefactor     44.453        21.254        .60133E-04   -1.4374    
  24  Prefactor     .10000E-03    10.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.0724        11.999        .19981E-03   -1.5304    
  26  Normalizat    .91274        .21921        .24418E-03   -.96014    
  27  Prefactor     .98266        .24129        .27896E-03   -.93310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54609e-08
Minuit parameter uncertainties:
  1  5.95068
  2  2.13203e-05
  3  34.9343
  4  35.0838
  5  41.2125
  6  8.22217
  7  0.000220525
  8  2.37639e-06
  9  2.94803e-06
  10  5.49442
  11  1.22448e-05
  12  6.95081
  13  11.8691
  14  1.81454e-05
  15  7.99076e-05
  16  5.49266
  17  2.94498e-05
  18  42.1072
  19  8.55869e-07
  20  1.10579e-05
  21  2.29923e-07
  22  0.386906
  23  21.2573
  24  6.08453e-07
  25  12.0061
  26  0.219427
  27  0.241553
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.424e+00  6.951e+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:  9.827e-01  2.416e-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.127e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.45e-08 +/- 5.69e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.51e-05

TS (Fixed Index): 1.22
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814090/likelihoodResults_519004801_519264001_4FGL_J1018.4+3540_daily_bin1079.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) = 5704.75101891
delta logL = 0.812625711882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5704.7305041
delta logL = 0.833140520187

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7935       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8985       1.0000          .0000       10.000    
     3 'Normalizat'    .84779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0379       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=   5704.731     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      245 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7863        19.550        .78070E-02    .13994E-03
   2  Index         3.9009        3.2706        .14294        .70639E-04
   3  Normalizat    .84785        .51182E-01    .44231E-01   -.68200E-04
   4  Prefactor     1.0378        .60386E-01    .61617E-01   -.56478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78629
  Index      = 3.90089
  Normalizat = 0.847852
  Prefactor  = 1.03778
 **********
 **   18 **HESSE 
 **********

 FCN=   5704.731     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7863        14.144        .63750E-04   -1.5441    
   2  Index         3.9009        3.3396        .52932E-02   -.22163    
   3  Normalizat    .84785        .21344        .25210E-03   -.98318    
   4  Prefactor     1.0378        .24961        .27250E-03   -.91481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25767e-10
Minuit parameter uncertainties:
  1  10.0559
  2  3.67851
  3  0.213654
  4  0.249888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814090': 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) = 5704.73050136
delta logL = 0.833143268835

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.786e+00  1.006e+01  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  3.901e+00  3.679e+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:  1.038e+00  2.499e-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:  8.479e-01  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 154.607 35.680
Photon Index (Free Index): 3.90 +/- 3.68
Photon Flux (Free Index): 9.46e-08 +/- 6.50e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.32e-05

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/814090/cmap_HighResolution_519004801_519264001_4FGL_J1018.4+3540_daily_bin1079.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='4.45e-08', energy_flux2='1.44e-05', photon_flux_error='5.69e-08', dlogl='8.33e-01', energy_flux='1.18e-05', photon_flux2='9.46e-08', job_status='DONE', time_completed='2021-09-01 18:15:20.270722', photon_index_error2='3.68', photon_index2='3.90', ts='1.22', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.32e-05', EG='0.91', time_epoch_completed='1630545320.27', return_code='0', job_id='814090', GAL2='1.04', EG2='0.85', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='6.50e-08', ts2='3.08', photon_index='2.59' WHERE bin_id='1079' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:15:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 814090: <4FGL_J1018.4+3540_daily_bin1079> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1079> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:00:28 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:00:30 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:00:30 2021
Terminated at Wed Sep  1 18:15:21 2021
Results reported at Wed Sep  1 18:15:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1079 154.607 35.6802 519004801 519264001 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 :                                   769.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

