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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1124
RA = 154.607, Dec = 35.6802
tmin = 530668801, tmax = 530928001
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='814155', job_status='RUN', time_executed='2021-09-01 18:03:30.578770', time_epoch_executed='1630544610.58' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814155

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814155/ft1_4FGL_J1018.4+3540_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814155/ft2_4FGL_J1018.4+3540_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814155/ft1_4FGL_J1018.4+3540_daily_bin1124.fits outfile=/scratch/kocevski/814155/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1124.fits ra=154.607 dec=35.6802 rad=12.0 tmin=530668801.0 tmax=530928001.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.42
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814155/ft1_filtered_4FGL_J1018.4+3540_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/814155/ft2_4FGL_J1018.4+3540_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/814155/ltcube_530668801_530928001_4FGL_J1018.4+3540_daily_bin1124.fits outfile=/scratch/kocevski/814155/expmap_530668801_530928001_4FGL_J1018.4+3540_daily_bin1124.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/814155/ltcube_530668801_530928001_4FGL_J1018.4+3540_daily_bin1124.fits
.....................!
real 191.63
user 186.68
sys 4.40

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/814155/ft1_filtered_4FGL_J1018.4+3540_daily_bin1124.fits scfile=/scratch/kocevski/814155/ft2_4FGL_J1018.4+3540_daily_bin1124.fits outfile=/scratch/kocevski/814155/cmap_530668801_530928001_4FGL_J1018.4+3540_daily_bin1124.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1287       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1792       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10400E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4554       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21574E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2327       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6745       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3338       1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.072       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.099       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1141       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1569       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=   6129.058     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     2825 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1077       -.14827E-07** at limit **
   2  norm          .10000E-03    4.6024       -.18174E-07** at limit **
   3  Prefactor     .10000E-03    22.803       -.98503E-07** at limit **
   4  Prefactor     .10000E-03    23.263       -.11109E-06** at limit **
   5  Prefactor     .10000E-03    23.387       -.90746E-07** at limit **
   6  Prefactor     9.1257        7.8502        .43186E-06    .20326E-03
   7  Prefactor     4.1806        8.5451        .11138E-05    .40405E-03
   8  Prefactor     .10000E-03    1.4871       -.13910E-06** at limit **
   9  norm          .10000E-03    21.705        .10136E-04** at limit **
  10  Prefactor     .10000E-03    2.5134       -.65651E-07** at limit **
  11  Prefactor     5.4466        33.128        .15579E-05    .32312E-04
  12  Prefactor     .10031E-03    3.4305       -.24636E-05** at limit **
  13  norm          .10000E-03    7.4039        .62064E-07** at limit **
  14  Prefactor     .10000E-03    72.380        .20311E-06** at limit **
  15  Prefactor     .10000E-03    8.8879        .41083E-07** at limit **
  16  Prefactor     4.2322        3.9584        .16169E-06    .94408E-03
  17  Prefactor     .10000E-03    1.7099        .50367E-07** at limit **
  18  Prefactor     .10000E-03    8.4947        .13081E-06** at limit **
  19  Prefactor     .10000E-03    9.7253        .47863E-07** at limit **
  20  Prefactor     .10000E-03    46.466       -.41928E-06** at limit **
  21  Prefactor     1.6749        18.117        .56797E-05    .42253E-03
  22  norm          1.3339        .34479        .65247E-10   -.17025E-03
  23  Prefactor     33.073        21.542       -.37098E-07    .64212E-04
  24  Prefactor     .10000E-03    7.2315        .87022E-07** at limit **
  25  norm          13.086        18.141        .24476E-06    .31614E-04
  26  Normalizat    1.1146        .17427       -.43992E-06    .10844E-03
  27  Prefactor     1.1564        .21012       -.29512E-07   -.10357E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.1257
  Prefactor  = 4.1806
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 5.44656
  Prefactor  = 0.000100313
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 4.23223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1.67493
  norm       = 1.33391
  Prefactor  = 33.0733
  Prefactor  = 0.0001
  norm       = 13.0858
  Normalizat = 1.11457
  Prefactor  = 1.15645
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1286        .13478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.6051        .16404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1257        7.8359        .13265E-03   -1.5104    
   7  Prefactor     4.1806        8.6459        .19714E-03   -1.5299    
   8  Prefactor     .10000E-03    2.8726        .18364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    23.891        .38719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6081        .24131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.4466        33.329        .17203E-03   -1.5241    
  12  Prefactor     .10031E-03    35.202        .21388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.4806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    72.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2322        3.9526        .14414E-03   -1.5296    
  17  Prefactor     .10000E-03    1.7236        .99957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.4979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.7517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    46.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.6749        20.894        .32568E-03   -1.5449    
  22  norm          1.3339        .34550        .22144E-04   -1.5477    
  23  Prefactor     33.073        21.574        .69678E-04   -1.4557    
  24  Prefactor     .10000E-03    7.2392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.086        18.122        .11068E-03   -1.4984    
  26  Normalizat    1.1146        .20028        .23253E-03   -.89285    
  27  Prefactor     1.1564        .24351        .28403E-03   -.87682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11372e-08
Minuit parameter uncertainties:
  1  1.71856e-06
  2  2.07781e-06
  3  6.41731e-05
  4  0.000148745
  5  0.000158636
  6  7.83675
  7  8.64851
  8  2.32139e-05
  9  0.000547138
  10  6.63967e-06
  11  26.9687
  12  0.00664267
  13  1.01008e-05
  14  0.000916479
  15  1.74772e-05
  16  3.95289
  17  6.4777e-06
  18  6.50866e-05
  19  3.96256e-05
  20  0.000783989
  21  11.8364
  22  0.345496
  23  21.579
  24  1.13597e-05
  25  18.1298
  26  0.200412
  27  0.243742
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.003e-04  6.643e-03  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.156e+00  2.437e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.115e+00  2.004e-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: 8.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814155/likelihoodResults_530668801_530928001_4FGL_J1018.4+3540_daily_bin1124.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) = 6129.05768386
delta logL = -0.000134880008773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6129.05746955
delta logL = 7.94263241914e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31301E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7584       1.0000          .0000       10.000    
     3 'Normalizat'    1.1145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1566       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=   6128.964     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      263 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31832        14.854        .98909E-02    .20027E-02
   2  Index         3.9582        4.0745        .22721        .68188E-04
   3  Normalizat    1.0886        .26847E-01    .37438E-01   -.12957E-03
   4  Prefactor     1.1748        .33487E-01    .63791E-01   -.74277E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.318315
  Index      = 3.95816
  Normalizat = 1.08862
  Prefactor  = 1.17485
 **********
 **   18 **HESSE 
 **********

 FCN=   6128.964     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31832        86.219        .97559E-04   -1.5595    
   2  Index         3.9582        7.6640        .12463E-01   -.20991    
   3  Normalizat    1.0886        .16632        .23503E-03   -.90118    
   4  Prefactor     1.1748        .20258        .28215E-03   -.87109    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24056e-06
Minuit parameter uncertainties:
  1  10.4912
  2  19.3729
  3  0.166399
  4  0.202717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814155': 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) = 6128.96410771
delta logL = 0.0934412713668

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  3.183e-01  1.049e+01  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  3.958e+00  1.937e+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.175e+00  2.027e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.089e+00  1.664e-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/814155/cmap_HighResolution_530668801_530928001_4FGL_J1018.4+3540_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-03', job_status='DONE', photon_flux_upper_limit='8.39e-08', time_completed='2021-09-01 18:16:32.730921', job_id='814155', GAL2='1.17', fit_tolerance='1e-08', EG2='1.09', EG='1.11', time_epoch_completed='1630545392.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='9.34e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1124' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:16:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 814155: <4FGL_J1018.4+3540_daily_bin1124> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1124> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:00:32 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:00:34 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:34 2021
Terminated at Wed Sep  1 18:16:33 2021
Results reported at Wed Sep  1 18:16:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1124 154.607 35.6802 530668801 530928001 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 :                                   780.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            961 sec.

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

