/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 6 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1018.4+3540_daily_bin528
RA = 154.607, Dec = 35.6802
tmin = 376185601, tmax = 376444801
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='811283', job_status='RUN', time_executed='2021-09-01 17:51:43.800091', time_epoch_executed='1630543903.8' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811283/ft1_4FGL_J1018.4+3540_daily_bin528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811283/ft2_4FGL_J1018.4+3540_daily_bin528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811283/ft1_4FGL_J1018.4+3540_daily_bin528.fits outfile=/scratch/kocevski/811283/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin528.fits ra=154.607 dec=35.6802 rad=12.0 tmin=376185601.0 tmax=376444801.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.40
user 3.18
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811283/ft1_filtered_4FGL_J1018.4+3540_daily_bin528.fits evtable="EVENTS" scfile=/scratch/kocevski/811283/ft2_4FGL_J1018.4+3540_daily_bin528.fits sctable="SC_DATA" expcube=/scratch/kocevski/811283/ltcube_376185601_376444801_4FGL_J1018.4+3540_daily_bin528.fits outfile=/scratch/kocevski/811283/expmap_376185601_376444801_4FGL_J1018.4+3540_daily_bin528.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/811283/ltcube_376185601_376444801_4FGL_J1018.4+3540_daily_bin528.fits
.....................!
real 192.53
user 187.30
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/811283/ft1_filtered_4FGL_J1018.4+3540_daily_bin528.fits scfile=/scratch/kocevski/811283/ft2_4FGL_J1018.4+3540_daily_bin528.fits outfile=/scratch/kocevski/811283/cmap_376185601_376444801_4FGL_J1018.4+3540_daily_bin528.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.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811283/ft1_filtered_4FGL_J1018.4+3540_daily_bin528.fits scfile=/scratch/kocevski/811283/ft2_4FGL_J1018.4+3540_daily_bin528.fits outfile=/scratch/kocevski/811283/cmap_HighResolution_376185601_376444801_4FGL_J1018.4+3540_daily_bin528.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.42
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88807       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29925E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23023E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5803       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4821       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9975       1.0000         .10000E-03   10000.    
     9 'norm      '    .43396E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.406       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23136       1.0000         .10000E-03   10000.    
    13 'norm      '    4.9572       1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.291       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1935       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3365       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.175       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3601       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3750       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0316       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .80630       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1675       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=   6854.284     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3862 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88741        6.9766        .13015E-05   -.32259E-03
   2  norm          .10000E-03    6.3256        .12472E-07** at limit **
   3  Prefactor     .10144E-03    19.785        .37735E-05** at limit **
   4  Prefactor     .10000E-03    30.415       -.23636E-06** at limit **
   5  Prefactor     .10015E-03    29.577       -.10578E-05** at limit **
   6  Prefactor     5.5849        8.0467       -.18242E-05   -.56479E-03
   7  Prefactor     2.4824        7.1650       -.14143E-05   -.23730E-03
   8  Prefactor     5.9980        2.7518        .26405E-06   -.12844E-02
   9  norm          .10001E-03    5.3672        .77991E-06** at limit **
  10  Prefactor     .10000E-03    .92548        .52116E-08** at limit **
  11  Prefactor     39.388        37.059        .92493E-06    .14609E-03
  12  Prefactor     .23150        2.1460        .13890E-07   -.25557E-03
  13  norm          4.9625        7.1871        .13486E-05   -.80247E-03
  14  Prefactor     49.291        45.743       -.19899E-06   -.10092E-04
  15  Prefactor     4.1964        24.020        .34771E-05   -.19820E-03
  16  Prefactor     1.3370        4.6041       -.11538E-06   -.31146E-03
  17  Prefactor     .10000E-03    1.9785       -.11870E-06** at limit **
  18  Prefactor     .10000E-03    14.990       -.18647E-06** at limit **
  19  Prefactor     21.170        21.381       -.13602E-06   -.10547E-04
  20  Prefactor     .10000E-03    83.946       -.49568E-05** at limit **
  21  Prefactor     8.3613        8.0719       -.18596E-06   -.41950E-04
  22  norm          3.3750        .50255        .96460E-07    .75397E-03
  23  Prefactor     2.0527        35.183       -.12103E-04   -.17041E-03
  24  Prefactor     .10000E-03    21.160       -.11485E-06** at limit **
  25  norm          .10000E-03    8.0364       -.17118E-07** at limit **
  26  Normalizat    .80634        .16803        .20029E-06   -.51488E-04
  27  Prefactor     1.1674        .19166       -.29008E-06   -.88338E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.887406
  norm       = 0.0001
  Prefactor  = 0.000101444
  Prefactor  = 0.0001
  Prefactor  = 0.000100154
  Prefactor  = 5.58495
  Prefactor  = 2.48237
  Prefactor  = 5.99803
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 39.3883
  Prefactor  = 0.231505
  norm       = 4.96254
  Prefactor  = 49.291
  Prefactor  = 4.19636
  Prefactor  = 1.337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.1703
  Prefactor  = 0.000100002
  Prefactor  = 8.36127
  norm       = 3.37503
  Prefactor  = 2.05267
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.806341
  Prefactor  = 1.1674
 **********
 **   18 **HESSE 
 **********

 FCN=   6854.284     FROM HESSE     STATUS=OK           506 CALLS     4368 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88741        7.7911        .44229E-03   -1.5520    
   2  norm          .10000E-03    6.3346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10144E-03    146.00        .67379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10015E-03    31.239        .11962       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5849        8.1206        .17007E-03   -1.5235    
   7  Prefactor     2.4824        7.2374        .25949E-03   -1.5393    
   8  Prefactor     5.9980        2.7855        .44483E-03   -1.5218    
   9  norm          .10001E-03    23.943        .36743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .92930        .77716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     39.388        37.744        .63852E-04   -1.4452    
  12  Prefactor     .23150        5.2225        .23251E-02   -1.5612    
  13  norm          4.9625        7.9204        .90317E-03   -1.5262    
  14  Prefactor     49.291        45.766        .57118E-04   -1.4303    
  15  Prefactor     4.1964        26.423        .98399E-03   -1.5298    
  16  Prefactor     1.3370        4.6046        .29802E-03   -1.5477    
  17  Prefactor     .10000E-03    1.9882        .11358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.170        21.382        .87041E-04   -1.4787    
  20  Prefactor     .10000E-03    84.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.3613        8.0772        .13865E-03   -1.5130    
  22  norm          3.3750        .50405        .20420E-04   -1.5341    
  23  Prefactor     2.0527        37.894        .29022E-03   -1.5421    
  24  Prefactor     .10000E-03    21.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    8.0839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .80634        .19892        .26333E-03   -.99834    
  27  Prefactor     1.1674        .22658        .27074E-03   -.87341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65521e-08
Minuit parameter uncertainties:
  1  5.25947
  2  5.23763e-07
  3  0.0291063
  4  3.2009e-05
  5  0.00438925
  6  8.1222
  7  7.23997
  8  2.78552
  9  0.000854925
  10  5.62717e-07
  11  37.7668
  12  2.19885
  13  7.92211
  14  45.799
  15  21.0735
  16  4.60581
  17  6.18615e-06
  18  1.45934e-05
  19  21.3902
  20  0.000821232
  21  8.07821
  22  0.504053
  23  17.6517
  24  0.000188402
  25  4.4962e-05
  26  0.199099
  27  0.226771
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.315e-01  2.199e+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.167e+00  2.268e-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.063e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 6.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/811283/likelihoodResults_376185601_376444801_4FGL_J1018.4+3540_daily_bin528.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) = 6854.23854097
delta logL = 0.0459532757613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6854.17317713
delta logL = 0.111317118075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0555       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8216       1.0000          .0000       10.000    
     3 'Normalizat'    .80913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1610       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6854.173     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      274 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0580        2.5752        .22861E-02    .17716E-03
   2  Index         1.8224        1.1016        .16733E-01   -.62406E-05
   3  Normalizat    .80919        .18155        .26289E-03   -.95140E-06
   4  Prefactor     1.1609        .22162        .27135E-03   -.23044E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05796
  Index      = 1.82242
  Normalizat = 0.809191
  Prefactor  = 1.16092
 **********
 **   18 **HESSE 
 **********

 FCN=   6854.173     FROM HESSE     STATUS=OK            27 CALLS      301 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0580        2.5877        .91443E-04   -1.5502    
   2  Index         1.8224        1.1093        .66931E-03   -.68868    
   3  Normalizat    .80919        .18173        .10516E-04   -.99729    
   4  Prefactor     1.1609        .22184        .10854E-04   -.87542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53864e-13
Minuit parameter uncertainties:
  1  2.58801
  2  1.12521
  3  0.181866
  4  0.222019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811283': 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) = 6854.17317645
delta logL = 0.111317796349

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.058e+00  2.588e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  1.822e+00  1.125e+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.161e+00  2.220e-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.092e-01  1.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/811283/cmap_HighResolution_376185601_376444801_4FGL_J1018.4+3540_daily_bin528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.09e-08', time_completed='2021-09-01 18:06:53.381536', job_id='811283', GAL2='1.16', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630544813.38', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.11e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='528' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:06:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 811283: <4FGL_J1018.4+3540_daily_bin528> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin528> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:51:05 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:51:29 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:51:29 2021
Terminated at Wed Sep  1 18:06:54 2021
Results reported at Wed Sep  1 18:06:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin528 154.607 35.6802 376185601 376444801 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 :                                   906.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            949 sec.

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

