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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin19
RA = 154.607, Dec = 35.6802
tmin = 244252801, tmax = 244512001
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='809458', job_status='RUN', time_executed='2021-09-01 17:48:39.210204', time_epoch_executed='1630543719.21' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809458

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809458/ft1_4FGL_J1018.4+3540_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809458/ft2_4FGL_J1018.4+3540_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809458/ft1_4FGL_J1018.4+3540_daily_bin19.fits outfile=/scratch/kocevski/809458/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin19.fits ra=154.607 dec=35.6802 rad=12.0 tmin=244252801.0 tmax=244512001.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 2.43
user 2.20
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809458/ft1_filtered_4FGL_J1018.4+3540_daily_bin19.fits" evtable="EVENTS" scfile=/scratch/kocevski/809458/ft2_4FGL_J1018.4+3540_daily_bin19.fits sctable="SC_DATA" outfile=/scratch/kocevski/809458/ltcube_244252801_244512001_4FGL_J1018.4+3540_daily_bin19.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/809458/ft2_4FGL_J1018.4+3540_daily_bin19.fits
.....................!
real 17.74
user 17.20
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809458/ft1_filtered_4FGL_J1018.4+3540_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/809458/ft2_4FGL_J1018.4+3540_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/809458/ltcube_244252801_244512001_4FGL_J1018.4+3540_daily_bin19.fits outfile=/scratch/kocevski/809458/expmap_244252801_244512001_4FGL_J1018.4+3540_daily_bin19.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/809458/ltcube_244252801_244512001_4FGL_J1018.4+3540_daily_bin19.fits
.....................!
real 191.59
user 186.54
sys 4.42

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/809458/ft1_filtered_4FGL_J1018.4+3540_daily_bin19.fits scfile=/scratch/kocevski/809458/ft2_4FGL_J1018.4+3540_daily_bin19.fits outfile=/scratch/kocevski/809458/cmap_244252801_244512001_4FGL_J1018.4+3540_daily_bin19.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809458/ft1_filtered_4FGL_J1018.4+3540_daily_bin19.fits scfile=/scratch/kocevski/809458/ft2_4FGL_J1018.4+3540_daily_bin19.fits outfile=/scratch/kocevski/809458/cmap_HighResolution_244252801_244512001_4FGL_J1018.4+3540_daily_bin19.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0300       1.0000         .10000E-03   10000.    
     2 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    53.448       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.144       1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.008       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.813       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.633       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0104       1.0000         .10000E-03   10000.    
     9 'norm      '    22.308       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    62.592       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9622       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.168       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9629       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    64.006       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.571       1.0000         .10000E-03   10000.    
    22 'norm      '    .72452       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.559       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    20.005       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .75525       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92708       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=   5166.951     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     3337 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0297        6.8434        .29435E-06    .86537E-04
   2  norm          .10000E-03    5.8520        .62942E-06** at limit **
   3  Prefactor     53.445        31.491       -.10880E-06   -.15661E-04
   4  Prefactor     17.121        36.096       -.14279E-05   -.10482E-04
   5  Prefactor     36.051        55.557       -.24235E-07    .94389E-05
   6  Prefactor     13.815        8.2389       -.15126E-06   -.17329E-04
   7  Prefactor     13.634        9.0239       -.14877E-06   -.29430E-04
   8  Prefactor     1.0099        1.3839        .26857E-07    .29958E-04
   9  norm          22.308        9.0862       -.38182E-07   -.16978E-04
  10  Prefactor     .10000E-03    1.1363       -.77170E-07** at limit **
  11  Prefactor     62.602        39.062       -.69117E-06   -.30214E-04
  12  Prefactor     .10000E-03    1.5300       -.73583E-07** at limit **
  13  norm          2.9631        10.090        .97544E-07    .14821E-04
  14  Prefactor     17.173        57.012       -.26263E-05   -.13913E-04
  15  Prefactor     .10000E-03    9.9304        .61591E-07** at limit **
  16  Prefactor     6.9643        4.5895       -.11874E-06   -.18242E-04
  17  Prefactor     .10000E-03    1.5009        .47133E-07** at limit **
  18  Prefactor     .10000E-03    12.419        .46334E-07** at limit **
  19  Prefactor     .10000E-03    20.626        .42056E-06** at limit **
  20  Prefactor     63.608        100.92       -.13980E-05   -.18912E-04
  21  Prefactor     10.571        16.631       -.23579E-06    .74138E-05
  22  norm          .72461        .26739       -.19011E-07   -.39250E-03
  23  Prefactor     15.560        14.298       -.25658E-06   -.21015E-04
  24  Prefactor     .10000E-03    5.6416       -.24370E-06** at limit **
  25  norm          20.004        15.071       -.15755E-06   -.30526E-04
  26  Normalizat    .75471        .20541        .55902E-05   -.22015E-04
  27  Prefactor     .92776        .22627       -.53893E-05    .18349E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.02975
  norm       = 0.0001
  Prefactor  = 53.4454
  Prefactor  = 17.1206
  Prefactor  = 36.0514
  Prefactor  = 13.8151
  Prefactor  = 13.6344
  Prefactor  = 1.00989
  norm       = 22.3085
  Prefactor  = 0.0001
  Prefactor  = 62.6021
  Prefactor  = 0.0001
  norm       = 2.9631
  Prefactor  = 17.1729
  Prefactor  = 0.0001
  Prefactor  = 6.96434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.608
  Prefactor  = 10.571
  norm       = 0.724606
  Prefactor  = 15.5603
  Prefactor  = 0.0001
  norm       = 20.0044
  Normalizat = 0.754705
  Prefactor  = 0.92776
 **********
 **   18 **HESSE 
 **********

 FCN=   5166.951     FROM HESSE     STATUS=OK           498 CALLS     3835 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0297        6.8465        .20087E-03   -1.5306    
   2  norm          .10000E-03    5.8988        .17048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     53.445        31.487        .54863E-04   -1.4245    
   4  Prefactor     17.121        36.025        .96731E-04   -1.4880    
   5  Prefactor     36.051        55.459        .66786E-04   -1.4506    
   6  Prefactor     13.815        8.2270        .10777E-03   -1.4964    
   7  Prefactor     13.634        9.0251        .10848E-03   -1.4969    
   8  Prefactor     1.0099        1.2339        .95322E-03   -1.5507    
   9  norm          22.308        9.0864        .84805E-04   -1.4763    
  10  Prefactor     .10000E-03    1.1457        .74844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     62.602        38.902        .50720E-04   -1.4124    
  12  Prefactor     .10000E-03    1.5445        .86834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9631        9.9930        .23594E-03   -1.5364    
  14  Prefactor     17.173        57.113        .96663E-04   -1.4879    
  15  Prefactor     .10000E-03    9.9354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.9643        4.5756        .11639E-03   -1.5180    
  17  Prefactor     .10000E-03    1.5061        .85976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     63.608        101.09        .25080E-03   -1.4111    
  21  Prefactor     10.571        16.632        .12323E-03   -1.5058    
  22  norm          .72461        .26823        .21506E-04   -1.5538    
  23  Prefactor     15.560        14.294        .10154E-03   -1.4919    
  24  Prefactor     .10000E-03    5.6508        .16680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          20.004        15.067        .89550E-04   -1.4813    
  26  Normalizat    .75471        .20494        .23924E-03   -1.0177    
  27  Prefactor     .92776        .22613        .26454E-03   -.95178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44516e-11
Minuit parameter uncertainties:
  1  6.84783
  2  4.07083e-05
  3  31.4964
  4  36.0707
  5  55.5389
  6  8.22763
  7  9.02597
  8  1.23393
  9  9.08698
  10  4.04392e-06
  11  38.9175
  12  5.29674e-06
  13  9.99858
  14  57.296
  15  2.107e-06
  16  4.57578
  17  8.7195e-08
  18  1.15386e-06
  19  4.28481e-05
  20  101.363
  21  16.6393
  22  0.268226
  23  14.2972
  24  1.45415e-05
  25  15.0695
  26  0.205145
  27  0.226363
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  5.297e-06  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.278e-01  2.264e-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:  7.547e-01  2.051e-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: 5.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809458/likelihoodResults_244252801_244512001_4FGL_J1018.4+3540_daily_bin19.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) = 5166.95434739
delta logL = -0.00306667932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5166.95128075
delta logL = -4.47216734756e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5835       1.0000          .0000       10.000    
     3 'Normalizat'    .75473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92778       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5166.951     FROM MIGRAD    STATUS=FAILED        85 CALLS      232 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10083E-03    119.30        .86998E-03** at limit **
   2  Index         2.4957        6.6506        .50000        .27743E-04
   3  Normalizat    .75471        .38210E-01    .23923E-03   -.41819E-04
   4  Prefactor     .92776        .46717E-01    .26455E-03   -.48561E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5166.951     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      368 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10083E-03    119.30        .24212E-03** at limit **
   2  Index         2.4957        6.6506        .77177E-04    .27743E-04
   3  Normalizat    .75471        .38210E-01    .14883E-05   -.41819E-04
   4  Prefactor     .92776        .46717E-01    .17713E-05   -.48561E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5166.951     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      409 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9567        .17400E-03** at limit **
   2  Index         2.2688        5.8023        .50000       -.62664E-07
   3  Normalizat    .75471        .18188        .95693E-05    .15730E-03
   4  Prefactor     .92776        .22236        .10582E-04    .16180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26884
  Normalizat = 0.754706
  Prefactor  = 0.92776
 **********
 **   18 **HESSE 
 **********

 FCN=   5166.951     FROM HESSE     STATUS=OK            29 CALLS      438 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6472        .34799E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2688        8.0787        .50000       -.57786    
   3  Normalizat    .75471        .18209        .19139E-05   -1.0177    
   4  Prefactor     .92776        .22266        .21164E-05   -.95178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91144e-11
Minuit parameter uncertainties:
  1  9.7894e-08
  2  99.678
  3  0.182236
  4  0.222875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809458': 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) = 5166.95127925
delta logL = 1.45496142068e-06

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  9.789e-08  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.269e+00  9.968e+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:  9.278e-01  2.229e-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:  7.547e-01  1.822e-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/809458/cmap_HighResolution_244252801_244512001_4FGL_J1018.4+3540_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-03', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-09-01 18:00:58.606426', job_id='809458', GAL2='0.93', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630544458.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='19' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:00:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 809458: <4FGL_J1018.4+3540_daily_bin19> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin19> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 17:45:24 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:45:44 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:44 2021
Terminated at Wed Sep  1 18:00:59 2021
Results reported at Wed Sep  1 18:00:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin19 154.607 35.6802 244252801 244512001 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 :                                   739.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            935 sec.

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

