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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin497
RA = 154.617, Dec = 5.4702
tmin = 368150401, tmax = 368409601
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='804776', job_status='RUN', time_executed='2021-09-01 17:32:50.526010', time_epoch_executed='1630542770.53' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='497'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804776

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804776/ft1_4FGL_J1018.4+0528_daily_bin497.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804776/ft2_4FGL_J1018.4+0528_daily_bin497.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804776/ft1_4FGL_J1018.4+0528_daily_bin497.fits outfile=/scratch/kocevski/804776/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin497.fits ra=154.617 dec=5.4702 rad=12.0 tmin=368150401.0 tmax=368409601.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.34
user 3.10
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/804776/ft2_4FGL_J1018.4+0528_daily_bin497.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/804776/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin497.fits evtable="EVENTS" outfile="/scratch/kocevski/804776/ft1_filtered_4FGL_J1018.4+0528_daily_bin497.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804776/ft1_filtered_4FGL_J1018.4+0528_daily_bin497.fits" evtable="EVENTS" scfile=/scratch/kocevski/804776/ft2_4FGL_J1018.4+0528_daily_bin497.fits sctable="SC_DATA" outfile=/scratch/kocevski/804776/ltcube_368150401_368409601_4FGL_J1018.4+0528_daily_bin497.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/804776/ft2_4FGL_J1018.4+0528_daily_bin497.fits
.....................!
real 15.38
user 14.93
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804776/ft1_filtered_4FGL_J1018.4+0528_daily_bin497.fits evtable="EVENTS" scfile=/scratch/kocevski/804776/ft2_4FGL_J1018.4+0528_daily_bin497.fits sctable="SC_DATA" expcube=/scratch/kocevski/804776/ltcube_368150401_368409601_4FGL_J1018.4+0528_daily_bin497.fits outfile=/scratch/kocevski/804776/expmap_368150401_368409601_4FGL_J1018.4+0528_daily_bin497.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/804776/ltcube_368150401_368409601_4FGL_J1018.4+0528_daily_bin497.fits
.....................!
real 192.77
user 186.82
sys 5.50

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/804776/ft1_filtered_4FGL_J1018.4+0528_daily_bin497.fits scfile=/scratch/kocevski/804776/ft2_4FGL_J1018.4+0528_daily_bin497.fits outfile=/scratch/kocevski/804776/cmap_368150401_368409601_4FGL_J1018.4+0528_daily_bin497.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.55
user 0.39
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/804776/ft1_filtered_4FGL_J1018.4+0528_daily_bin497.fits', '/scratch/kocevski/804776/ft2_4FGL_J1018.4+0528_daily_bin497.fits', expMap='/scratch/kocevski/804776/expmap_368150401_368409601_4FGL_J1018.4+0528_daily_bin497.fits', expCube='/scratch/kocevski/804776/ltcube_368150401_368409601_4FGL_J1018.4+0528_daily_bin497.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/804776/Model_4FGL_J1018.4+0528_daily_bin497.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/804776/ft1_filtered_4FGL_J1018.4+0528_daily_bin497.fits
Spacecraft file(s): /scratch/kocevski/804776/ft2_4FGL_J1018.4+0528_daily_bin497.fits
Exposure map: /scratch/kocevski/804776/expmap_368150401_368409601_4FGL_J1018.4+0528_daily_bin497.fits
Exposure cube: /scratch/kocevski/804776/ltcube_368150401_368409601_4FGL_J1018.4+0528_daily_bin497.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/804776/Model_4FGL_J1018.4+0528_daily_bin497.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) = 7435.41547152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6531       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1913       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20158E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.883       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17375E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.778       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5563       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.998       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.169       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1390       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89882       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4407       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=   7435.382     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     1848 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6532        1.4870       -.50952E-07   -.29025E-03
   2  norm          2.1914        .81215       -.23701E-07   -.39523E-03
   3  Prefactor     .10072E-03    19.049        .25158E-05** at limit **
   4  Prefactor     .10000E-03    17.812       -.32880E-06** at limit **
   5  Prefactor     .10000E-03    14.857        .14380E-06** at limit **
   6  norm          18.844        20.415        .18712E-05   -.34784E-04
   7  Prefactor     .10000E-03    6.8415        .56991E-06** at limit **
   8  Prefactor     .10013E-03    518.49       -.88345E-04** at limit **
   9  Prefactor     13.736        50.736       -.21477E-04    .42111E-04
  10  Prefactor     .10001E-03    25.418        .20329E-05** at limit **
  11  norm          .10000E-03    .82998        .12059E-06** at limit **
  12  Prefactor     6.5582        7.6700       -.45405E-06   -.20834E-03
  13  Prefactor     16.997        6.2737       -.10395E-05   -.24552E-02
  14  Prefactor     .10000E-03    3.9020       -.10515E-07** at limit **
  15  Prefactor     34.175        14.371        .30734E-05    .20522E-04
  16  norm          3.1392        .86801       -.90381E-07    .29362E-04
  17  Prefactor     .10000E-03    6.7332       -.98884E-07** at limit **
  18  Prefactor     .10000E-03    11.832       -.55100E-07** at limit **
  19  Normalizat    .89860        .22637        .13103E-05   -.54954E-04
  20  Prefactor     1.4407        .17989       -.28644E-06   -.65523E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.65321
  norm       = 2.19143
  Prefactor  = 0.00010072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.8443
  Prefactor  = 0.000100001
  Prefactor  = 0.000100125
  Prefactor  = 13.7365
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 6.55822
  Prefactor  = 16.9966
  Prefactor  = 0.0001
  Prefactor  = 34.1753
  norm       = 3.13916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.898601
  Prefactor  = 1.44074
 **********
 **   18 **HESSE 
 **********

 FCN=   7435.382     FROM HESSE     STATUS=OK           301 CALLS     2149 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6532        1.4873        .74681E-04   -1.5382    
   2  norm          2.1914        .81120        .44729E-04   -1.5412    
   3  Prefactor     .10072E-03    26.701        .85877E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.844        20.597        .92169E-04   -1.4839    
   7  Prefactor     .10000E-03    6.8730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10013E-03    496.87        .40702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.736        49.809        .10791E-03   -1.4967    
  10  Prefactor     .10001E-03    25.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.6282        .14863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5582        7.6239        .15673E-03   -1.5196    
  13  Prefactor     16.997        6.5423        .48572E-03   -1.4883    
  14  Prefactor     .10000E-03    3.9119        .16634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     34.175        14.590        .68554E-04   -1.4538    
  16  norm          3.1392        .86763        .40433E-04   -1.5354    
  17  Prefactor     .10000E-03    6.7647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89860        .26602        .35584E-03   -.96509    
  20  Prefactor     1.4407        .21283        .24520E-03   -.79213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4341e-09
Minuit parameter uncertainties:
  1  1.48727
  2  0.8112
  3  0.00877512
  4  6.38973e-07
  5  1.81556e-06
  6  20.6051
  7  0.000146194
  8  0.015914
  9  49.9607
  10  0.000815431
  11  1.88184e-05
  12  7.62502
  13  6.5426
  14  1.31902e-06
  15  14.5918
  16  0.867634
  17  2.23363e-05
  18  1.58409e-05
  19  0.266406
  20  0.212964
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.374e+01  4.996e+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.441e+00  2.130e-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:  8.986e-01  2.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/804776/likelihoodResults_368150401_368409601_4FGL_J1018.4+0528_daily_bin497.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) = 7435.05364378
delta logL = 0.328478984948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7435.04773212
delta logL = 0.334390639819

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7435.048     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      391 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1867        217.30        .88962E-03   -.51072E-03
   2  Index         3.6049        6.7784        .61421E-02   -.66571E-04
   3  Normalizat    .83947        .20883        .36703E-03   -.16113E-03
   4  Prefactor     1.4712        .16868        .24304E-03   -.21449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.18675
  Index      = 3.60488
  Normalizat = 0.839469
  Prefactor  = 1.47116
 **********
 **   18 **HESSE 
 **********

 FCN=   7435.048     FROM HESSE     STATUS=OK            25 CALLS      416 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1867        14.847        .35585E-04   -1.5351    
   2  Index         3.6049        1.7499        .24568E-03   -.28278    
   3  Normalizat    .83947        .26430        .14681E-04   -.98621    
   4  Prefactor     1.4712        .21765        .48608E-04   -.78351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59649e-10
Minuit parameter uncertainties:
  1  13.7624
  2  1.79116
  3  0.264705
  4  0.217792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804776': 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) = 7435.04771969
delta logL = 0.334403071698

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  3.187e+00  1.376e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  3.605e+00  1.791e+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.471e+00  2.178e-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:  8.395e-01  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 154.617 5.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/804776/cmap_HighResolution_368150401_368409601_4FGL_J1018.4+0528_daily_bin497.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.70e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-01 17:43:08.375105', job_id='804776', GAL2='1.47', fit_tolerance='1e-08', EG2='0.84', EG='0.90', time_epoch_completed='1630543388.38', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.44', dlogl='3.34e-01', ts2='0.82', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='497' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:43:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 804776: <4FGL_J1018.4+0528_daily_bin497> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin497> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 17:30:22 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:30:55 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:30:55 2021
Terminated at Wed Sep  1 17:43:09 2021
Results reported at Wed Sep  1 17:43:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin497 154.617 5.4702 368150401 368409601 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 :                                   617.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             339.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            767 sec.

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

