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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1501
RA = 154.607, Dec = 35.6802
tmin = 628387201, tmax = 628646401
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='816789', job_status='RUN', time_executed='2021-09-01 18:12:25.731195', time_epoch_executed='1630545145.73' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816789

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816789/ft1_4FGL_J1018.4+3540_daily_bin1501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816789/ft2_4FGL_J1018.4+3540_daily_bin1501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816789/ft1_4FGL_J1018.4+3540_daily_bin1501.fits outfile=/scratch/kocevski/816789/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1501.fits ra=154.607 dec=35.6802 rad=12.0 tmin=628387201.0 tmax=628646401.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.58
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/816789/ft2_4FGL_J1018.4+3540_daily_bin1501.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/816789/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1501.fits evtable="EVENTS" outfile="/scratch/kocevski/816789/ft1_filtered_4FGL_J1018.4+3540_daily_bin1501.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/816789/ft1_filtered_4FGL_J1018.4+3540_daily_bin1501.fits" evtable="EVENTS" scfile=/scratch/kocevski/816789/ft2_4FGL_J1018.4+3540_daily_bin1501.fits sctable="SC_DATA" outfile=/scratch/kocevski/816789/ltcube_628387201_628646401_4FGL_J1018.4+3540_daily_bin1501.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/816789/ft2_4FGL_J1018.4+3540_daily_bin1501.fits
.....................!
real 15.32
user 14.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816789/ft1_filtered_4FGL_J1018.4+3540_daily_bin1501.fits evtable="EVENTS" scfile=/scratch/kocevski/816789/ft2_4FGL_J1018.4+3540_daily_bin1501.fits sctable="SC_DATA" expcube=/scratch/kocevski/816789/ltcube_628387201_628646401_4FGL_J1018.4+3540_daily_bin1501.fits outfile=/scratch/kocevski/816789/expmap_628387201_628646401_4FGL_J1018.4+3540_daily_bin1501.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/816789/ltcube_628387201_628646401_4FGL_J1018.4+3540_daily_bin1501.fits
.....................!
real 193.36
user 189.12
sys 3.81

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/816789/ft1_filtered_4FGL_J1018.4+3540_daily_bin1501.fits scfile=/scratch/kocevski/816789/ft2_4FGL_J1018.4+3540_daily_bin1501.fits outfile=/scratch/kocevski/816789/cmap_628387201_628646401_4FGL_J1018.4+3540_daily_bin1501.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816789/ft1_filtered_4FGL_J1018.4+3540_daily_bin1501.fits scfile=/scratch/kocevski/816789/ft2_4FGL_J1018.4+3540_daily_bin1501.fits outfile=/scratch/kocevski/816789/cmap_HighResolution_628387201_628646401_4FGL_J1018.4+3540_daily_bin1501.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9927       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6323       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.659       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3998       1.0000         .10000E-03   10000.    
     9 'norm      '    15.321       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1141       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.263       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6835       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2550       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6849       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.378       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.113       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4231       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1729       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.5591       1.0000         .10000E-03   10000.    
    25 'norm      '    7.9307       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .84479       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0801       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=   6491.200     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3286 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9935        7.1830        .22022E-07    .10049E-04
   2  norm          .10000E-03    7.4224       -.14707E-06** at limit **
   3  Prefactor     3.6395        77.357       -.15341E-05   -.16927E-05
   4  Prefactor     .10000E-03    11.988       -.49135E-08** at limit **
   5  Prefactor     28.656        25.542        .39603E-06    .93403E-05
   6  Prefactor     .10000E-03    2.3069       -.67334E-08** at limit **
   7  Prefactor     .10000E-03    3.5638       -.13086E-06** at limit **
   8  Prefactor     2.4000        2.4605        .10081E-06    .66805E-04
   9  norm          15.320        8.9945        .17988E-06    .25214E-04
  10  Prefactor     3.1146        4.9407        .19704E-06   -.84724E-05
  11  Prefactor     .10000E-03    9.8978        .75501E-08** at limit **
  12  Prefactor     12.264        7.0282       -.28896E-06    .74064E-04
  13  norm          .10000E-03    3.1551       -.10833E-06** at limit **
  14  Prefactor     .10000E-03    19.195       -.12404E-06** at limit **
  15  Prefactor     .10000E-03    11.168       -.32462E-06** at limit **
  16  Prefactor     2.6834        4.2067        .54506E-06    .14839E-03
  17  Prefactor     2.2543        4.3292        .40014E-05   -.19436E-04
  18  Prefactor     .10000E-03    70.671       -.41702E-06** at limit **
  19  Prefactor     9.6851        16.208       -.51874E-07    .49308E-05
  20  Prefactor     34.475        84.991       -.18919E-04   -.16446E-04
  21  Prefactor     13.114        10.960        .41984E-07    .11624E-04
  22  norm          1.4231        .33222       -.11109E-06    .51390E-03
  23  Prefactor     4.1747        15.095       -.19272E-05    .77244E-05
  24  Prefactor     1.5581        21.667        .17762E-04   -.20522E-04
  25  norm          7.9300        14.059       -.71278E-07   -.78046E-05
  26  Normalizat    .84438        .16982       -.10624E-05   -.18943E-04
  27  Prefactor     1.0806        .19184        .96752E-06    .10583E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.99351
  norm       = 0.0001
  Prefactor  = 3.63947
  Prefactor  = 0.0001
  Prefactor  = 28.6557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.39996
  norm       = 15.3203
  Prefactor  = 3.11461
  Prefactor  = 0.0001
  Prefactor  = 12.2642
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.68345
  Prefactor  = 2.2543
  Prefactor  = 0.0001
  Prefactor  = 9.68514
  Prefactor  = 34.4745
  Prefactor  = 13.1142
  norm       = 1.4231
  Prefactor  = 4.17466
  Prefactor  = 1.55809
  norm       = 7.93003
  Normalizat = 0.844383
  Prefactor  = 1.08057
 **********
 **   18 **HESSE 
 **********

 FCN=   6491.200     FROM HESSE     STATUS=OK           494 CALLS     3780 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9935        7.1830        .12676E-03   -1.5076    
   2  norm          .10000E-03    7.4506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6395        77.060        .21198E-03   -1.5326    
   4  Prefactor     .10000E-03    12.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.656        25.605        .74837E-04   -1.4637    
   6  Prefactor     .10000E-03    2.3136        .11948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5717        .14851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4000        2.4459        .12045E-03   -1.5398    
   9  norm          15.320        8.9970        .51163E-03   -1.4925    
  10  Prefactor     3.1146        4.8742        .17552E-03   -1.5355    
  11  Prefactor     .10000E-03    9.9086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.264        6.9720        .11439E-03   -1.5007    
  13  norm          .10000E-03    3.1613        .13972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6834        4.2032        .19359E-03   -1.5380    
  17  Prefactor     2.2543        4.3146        .11041E-02   -1.5408    
  18  Prefactor     .10000E-03    71.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6851        16.202        .12877E-03   -1.5085    
  20  Prefactor     34.475        85.028        .68346E-04   -1.4533    
  21  Prefactor     13.114        10.962        .11061E-03   -1.4984    
  22  norm          1.4231        .33344        .20692E-04   -1.5469    
  23  Prefactor     4.1747        14.949        .19730E-03   -1.5299    
  24  Prefactor     1.5581        21.744        .17042E-02   -1.5458    
  25  norm          7.9300        13.955        .14238E-03   -1.5145    
  26  Normalizat    .84438        .20170        .24869E-03   -.98443    
  27  Prefactor     1.0806        .22903        .26939E-03   -.90090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11026e-10
Minuit parameter uncertainties:
  1  7.18358
  2  1.71359e-05
  3  33.5427
  4  4.06415e-05
  5  25.6149
  6  2.83006e-07
  7  1.07951e-05
  8  2.44605
  9  8.99775
  10  4.87481
  11  2.12982e-05
  12  6.97247
  13  1.09476e-05
  14  2.84436e-05
  15  9.91217e-06
  16  4.20364
  17  4.31521
  18  0.000201942
  19  16.209
  20  85.3289
  21  10.9634
  22  0.333437
  23  14.9619
  24  11.646
  25  13.9607
  26  0.201882
  27  0.229236
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.226e+01  6.972e+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:  1.081e+00  2.292e-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.444e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.43
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 5.71e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 1.51e-05

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) = 6490.97262886
delta logL = 0.22748797139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6490.95412389
delta logL = 0.245992942236

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1422       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9568       1.0000          .0000       10.000    
     3 'Normalizat'    .81360       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1091       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=   6490.954     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      287 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1431        7.2398        .10072E-03   -.11170E-02
   2  Index         2.9566        .61359        .49749E-02   -.22718E-03
   3  Normalizat    .81375        .19534        .25279E-03    .36918E-03
   4  Prefactor     1.1088        .23119        .26645E-03    .46919E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.14313
  Index      = 2.95657
  Normalizat = 0.813749
  Prefactor  = 1.10883
 **********
 **   18 **HESSE 
 **********

 FCN=   6490.954     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1431        6.6438        .40288E-05   -1.5103    
   2  Index         2.9566        .56259        .19900E-03   -.42101    
   3  Normalizat    .81375        .19515        .50558E-04   -.99561    
   4  Prefactor     1.1088        .23090        .53289E-04   -.89185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84602e-10
Minuit parameter uncertainties:
  1  6.64431
  2  0.564026
  3  0.195315
  4  0.231105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816789': 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) = 6490.95412263
delta logL = 0.24599419468

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  9.143e+00  6.644e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.957e+00  5.640e-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.109e+00  2.311e-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.137e-01  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.07
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.96 +/- 0.56
Photon Flux (Free Index): 1.21e-07 +/- 5.91e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.13e-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/816789/cmap_HighResolution_628387201_628646401_4FGL_J1018.4+3540_daily_bin1501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='2.48e-05', photon_flux_error='5.71e-08', dlogl='2.46e-01', energy_flux='2.66e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-01 18:24:45.756031', photon_index_error2='0.56', photon_index2='2.96', ts='7.43', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='0.84', time_epoch_completed='1630545885.76', return_code='0', job_id='816789', GAL2='1.11', EG2='0.81', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='5.91e-08', ts2='8.07', photon_index='2.59' WHERE bin_id='1501' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:24:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 816789: <4FGL_J1018.4+3540_daily_bin1501> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1501> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:10:16 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:10:17 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:10:17 2021
Terminated at Wed Sep  1 18:24:46 2021
Results reported at Wed Sep  1 18:24:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1501 154.607 35.6802 628387201 628646401 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 :                                   736.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

