/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 115 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.4+0528_daily_bin432
RA = 154.617, Dec = 5.4702
tmin = 351302401, tmax = 351561601
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='803896', job_status='RUN', time_executed='2021-09-01 17:29:47.521229', time_epoch_executed='1630542587.52' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803896/ft1_4FGL_J1018.4+0528_daily_bin432.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803896/ft2_4FGL_J1018.4+0528_daily_bin432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803896/ft1_4FGL_J1018.4+0528_daily_bin432.fits outfile=/scratch/kocevski/803896/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin432.fits ra=154.617 dec=5.4702 rad=12.0 tmin=351302401.0 tmax=351561601.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.47
user 3.21
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/803896/ft2_4FGL_J1018.4+0528_daily_bin432.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/803896/ft2_4FGL_J1018.4+0528_daily_bin432.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/803896/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin432.fits evtable="EVENTS" outfile="/scratch/kocevski/803896/ft1_filtered_4FGL_J1018.4+0528_daily_bin432.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.53
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803896/ft1_filtered_4FGL_J1018.4+0528_daily_bin432.fits" evtable="EVENTS" scfile=/scratch/kocevski/803896/ft2_4FGL_J1018.4+0528_daily_bin432.fits sctable="SC_DATA" outfile=/scratch/kocevski/803896/ltcube_351302401_351561601_4FGL_J1018.4+0528_daily_bin432.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/803896/ft2_4FGL_J1018.4+0528_daily_bin432.fits
.....................!
real 16.01
user 15.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803896/ft1_filtered_4FGL_J1018.4+0528_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/803896/ft2_4FGL_J1018.4+0528_daily_bin432.fits sctable="SC_DATA" expcube=/scratch/kocevski/803896/ltcube_351302401_351561601_4FGL_J1018.4+0528_daily_bin432.fits outfile=/scratch/kocevski/803896/expmap_351302401_351561601_4FGL_J1018.4+0528_daily_bin432.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/803896/ltcube_351302401_351561601_4FGL_J1018.4+0528_daily_bin432.fits
.....................!
real 190.60
user 185.71
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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J1018.4+0528 @ 154.617 5.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/803896/ft1_filtered_4FGL_J1018.4+0528_daily_bin432.fits scfile=/scratch/kocevski/803896/ft2_4FGL_J1018.4+0528_daily_bin432.fits outfile=/scratch/kocevski/803896/cmap_351302401_351561601_4FGL_J1018.4+0528_daily_bin432.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.617 yref=5.4702 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803896/ft1_filtered_4FGL_J1018.4+0528_daily_bin432.fits scfile=/scratch/kocevski/803896/ft2_4FGL_J1018.4+0528_daily_bin432.fits outfile=/scratch/kocevski/803896/cmap_HighResolution_351302401_351561601_4FGL_J1018.4+0528_daily_bin432.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.617 yref=5.4702 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803896/ft1_filtered_4FGL_J1018.4+0528_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/803896/ft2_4FGL_J1018.4+0528_daily_bin432.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803896/Model_4FGL_J1018.4+0528_daily_bin432.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/803896/ft1_filtered_4FGL_J1018.4+0528_daily_bin432.fits.....................!
real 47.84
user 46.46
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/803896/ft1_filtered_4FGL_J1018.4+0528_daily_bin432.fits', '/scratch/kocevski/803896/ft2_4FGL_J1018.4+0528_daily_bin432.fits', expMap='/scratch/kocevski/803896/expmap_351302401_351561601_4FGL_J1018.4+0528_daily_bin432.fits', expCube='/scratch/kocevski/803896/ltcube_351302401_351561601_4FGL_J1018.4+0528_daily_bin432.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/803896/Model_4FGL_J1018.4+0528_daily_bin432.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+0528'

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  9.961e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/803896/ft1_filtered_4FGL_J1018.4+0528_daily_bin432.fits
Spacecraft file(s): /scratch/kocevski/803896/ft2_4FGL_J1018.4+0528_daily_bin432.fits
Exposure map: /scratch/kocevski/803896/expmap_351302401_351561601_4FGL_J1018.4+0528_daily_bin432.fits
Exposure cube: /scratch/kocevski/803896/ltcube_351302401_351561601_4FGL_J1018.4+0528_daily_bin432.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/803896/Model_4FGL_J1018.4+0528_daily_bin432.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) = 4549.55443524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7157       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.462       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11662E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11489E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.2603       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .59057E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.201       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0175       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2103       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3355       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4766       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.943       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94596       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0062       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4549.518     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2052 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7157        1.3428        .63691E-07   -.56679E-04
   2  norm          .10000E-03    .21887       -.48636E-07** at limit **
   3  Prefactor     12.453        12.124        .97652E-06   -.10082E-03
   4  Prefactor     .10000E-03    172.96        .18742E-05** at limit **
   5  Prefactor     .10000E-03    17.728        .28044E-06** at limit **
   6  norm          4.2846        14.907       -.46658E-05   -.32600E-03
   7  Prefactor     .10000E-03    24.835        .15581E-04** at limit **
   8  Prefactor     .10000E-03    33.204        .10570E-05** at limit **
   9  Prefactor     35.328        48.345        .11741E-05   -.18734E-03
  10  Prefactor     .10000E-03    14.284        .48500E-05** at limit **
  11  norm          1.0171        1.7235        .41974E-06   -.15699E-03
  12  Prefactor     5.2101        6.9581        .22896E-06   -.60085E-04
  13  Prefactor     .10000E-03    2.1360        .18612E-06** at limit **
  14  Prefactor     5.3327        9.6839        .56841E-06   -.16639E-04
  15  Prefactor     6.4828        6.6288        .11517E-06   -.58418E-04
  16  norm          .10000E-03    .16310       -.34218E-07** at limit **
  17  Prefactor     .10000E-03    2.8677       -.11793E-07** at limit **
  18  Prefactor     38.930        26.558        .43932E-06    .12066E-04
  19  Normalizat    .94582        .21328       -.39285E-05   -.13598E-03
  20  Prefactor     1.0064        .17837        .21436E-05   -.37736E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.71572
  norm       = 0.0001
  Prefactor  = 12.4532
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.28456
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 35.3278
  Prefactor  = 0.0001
  norm       = 1.01713
  Prefactor  = 5.21012
  Prefactor  = 0.0001
  Prefactor  = 5.33272
  Prefactor  = 6.48277
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.9304
  Normalizat = 0.945821
  Prefactor  = 1.00636
 **********
 **   18 **HESSE 
 **********

 FCN=   4549.518     FROM HESSE     STATUS=OK           293 CALLS     2345 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7157        1.3424        .52825E-04   -1.5378    
   2  norm          .10000E-03    .22840        .61486E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.453        12.146        .11347E-03   -1.5002    
   4  Prefactor     .10000E-03    175.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.2846        15.268        .19521E-03   -1.5294    
   7  Prefactor     .10000E-03    25.393        .42145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.328        48.596        .33772E-03   -1.4519    
  10  Prefactor     .10000E-03    14.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0171        1.6797        .10740E-03   -1.5506    
  12  Prefactor     5.2101        6.9206        .17611E-03   -1.5251    
  13  Prefactor     .10000E-03    5.3278        .19005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3327        9.6906        .17399E-03   -1.5246    
  15  Prefactor     6.4828        6.6105        .15770E-03   -1.5199    
  16  norm          .10000E-03    .16659        .26569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.8735        .11154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     38.930        26.564        .64229E-04   -1.4459    
  19  Normalizat    .94582        .24460        .25587E-03   -.94868    
  20  Prefactor     1.0064        .20673        .21661E-03   -.92518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.54424e-10
Minuit parameter uncertainties:
  1  1.34237
  2  1.07252e-06
  3  12.1484
  4  0.000749122
  5  3.44362e-05
  6  15.2815
  7  0.000423584
  8  6.40722e-05
  9  48.6503
  10  8.46612e-05
  11  1.67983
  12  6.9217
  13  8.29641e-06
  14  9.69346
  15  6.61127
  16  4.02207e-07
  17  2.89252e-06
  18  26.5719
  19  0.244889
  20  0.206888
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  3.533e+01  4.865e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.006e+00  2.069e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  9.458e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.90
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803896/likelihoodResults_351302401_351561601_4FGL_J1018.4+0528_daily_bin432.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4549.40972174
delta logL = 0.108238644011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4549.40456056
delta logL = 0.113399824148

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.404       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8229       1.0000          .0000       10.000    
     3 'Normalizat'    .92770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0169       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+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=   4549.405     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      293 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.396        125.64        .10205E-03   -.98172E-03
   2  Index         2.8239        2.4776        .61280E-02   -.42269E-03
   3  Normalizat    .92736        .24764        .25810E-03   -.70766E-03
   4  Prefactor     1.0170        .21181        .21559E-03   -.83832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3961
  Index      = 2.82395
  Normalizat = 0.927356
  Prefactor  = 1.01701
 **********
 **   18 **HESSE 
 **********

 FCN=   4549.405     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.396        42.733        .20410E-04   -1.4923    
   2  Index         2.8239        1.2550        .24512E-03   -.45027    
   3  Normalizat    .92736        .24157        .51621E-04   -.95505    
   4  Prefactor     1.0170        .20804        .43117E-04   -.92165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02212e-09
Minuit parameter uncertainties:
  1  42.8181
  2  1.27182
  3  0.241854
  4  0.208205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803896': 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) = 4549.40455778
delta logL = 0.113402601643

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.540e+01  4.282e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.824e+00  1.272e+00  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.017e+00  2.082e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  9.274e-01  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 154.617 5.470
Photon Index (Free Index): 2.82 +/- 1.27
Photon Flux (Free Index): 3.74e-08 +/- 4.87e-08
Energy Flux (Free Index): 8.24e-06 +/- 9.91e-06

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/803896/cmap_HighResolution_351302401_351561601_4FGL_J1018.4+0528_daily_bin432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.47e-03', comment='SUCCESS', energy_flux2='8.24e-06', dlogl='1.13e-01', photon_flux2='3.74e-08', job_status='DONE', time_completed='2021-09-01 17:38:15.594094', photon_index_error2='1.27', photon_index2='2.82', ts='0.90', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='9.91e-06', EG='0.95', time_epoch_completed='1630543095.59', return_code='0', job_id='803896', GAL2='1.02', EG2='0.93', return_code2='0', photon_flux_error2='4.87e-08', ts2='1.14', photon_index='2.28' WHERE bin_id='432' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:38:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 803896: <4FGL_J1018.4+0528_daily_bin432> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin432> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 17:25:55 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:27: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:27:44 2021
Terminated at Wed Sep  1 17:38:16 2021
Results reported at Wed Sep  1 17:38:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin432 154.617 5.4702 351302401 351561601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+0528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   508.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             306.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            741 sec.

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

