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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin542
RA = 154.617, Dec = 5.4702
tmin = 379814401, tmax = 380073601
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='804848', job_status='RUN', time_executed='2021-09-01 17:35:46.884452', time_epoch_executed='1630542946.88' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804848/ft1_4FGL_J1018.4+0528_daily_bin542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804848/ft2_4FGL_J1018.4+0528_daily_bin542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804848/ft1_4FGL_J1018.4+0528_daily_bin542.fits outfile=/scratch/kocevski/804848/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin542.fits ra=154.617 dec=5.4702 rad=12.0 tmin=379814401.0 tmax=380073601.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.45
user 3.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804848/ft1_filtered_4FGL_J1018.4+0528_daily_bin542.fits" evtable="EVENTS" scfile=/scratch/kocevski/804848/ft2_4FGL_J1018.4+0528_daily_bin542.fits sctable="SC_DATA" outfile=/scratch/kocevski/804848/ltcube_379814401_380073601_4FGL_J1018.4+0528_daily_bin542.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/804848/ft2_4FGL_J1018.4+0528_daily_bin542.fits
.....................!
real 14.91
user 14.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804848/ft1_filtered_4FGL_J1018.4+0528_daily_bin542.fits evtable="EVENTS" scfile=/scratch/kocevski/804848/ft2_4FGL_J1018.4+0528_daily_bin542.fits sctable="SC_DATA" expcube=/scratch/kocevski/804848/ltcube_379814401_380073601_4FGL_J1018.4+0528_daily_bin542.fits outfile=/scratch/kocevski/804848/expmap_379814401_380073601_4FGL_J1018.4+0528_daily_bin542.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/804848/ltcube_379814401_380073601_4FGL_J1018.4+0528_daily_bin542.fits
.....................!
real 192.06
user 187.53
sys 4.03

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/804848/ft1_filtered_4FGL_J1018.4+0528_daily_bin542.fits scfile=/scratch/kocevski/804848/ft2_4FGL_J1018.4+0528_daily_bin542.fits outfile=/scratch/kocevski/804848/cmap_379814401_380073601_4FGL_J1018.4+0528_daily_bin542.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804848/ft1_filtered_4FGL_J1018.4+0528_daily_bin542.fits scfile=/scratch/kocevski/804848/ft2_4FGL_J1018.4+0528_daily_bin542.fits outfile=/scratch/kocevski/804848/cmap_HighResolution_379814401_380073601_4FGL_J1018.4+0528_daily_bin542.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4206       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9407       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2637       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12059E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2188       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13139E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.5236       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4775       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26007E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2561       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3141       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1053       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92516       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=   5893.204     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     2460 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .59751        .11403E-03** at limit **
   2  norm          1.4202        .80923        .49683E-04    .19244E-03
   3  Prefactor     9.9356        11.009        .12709E-03    .33544E-04
   4  Prefactor     .10000E-03    29.192        .18142E-02** at limit **
   5  Prefactor     5.1553        95.892        .17519E-03   -.94093E-05
   6  norm          .10000E-03    5.0475        .16839E-02** at limit **
   7  Prefactor     .10000E-03    5.3527        .17289E-02** at limit **
   8  Prefactor     .10000E-03    36.645        .18142E-02** at limit **
   9  Prefactor     1.2900        276.59        .40876E-02    .17953E-04
  10  Prefactor     .10000E-03    43.180        .36285E-02** at limit **
  11  norm          3.5231        1.6553        .64879E-04    .90768E-04
  12  Prefactor     .10000E-03    6.6484        .36285E-03** at limit **
  13  Prefactor     6.4850        4.1002        .11364E-03    .17708E-04
  14  Prefactor     .10000E-03    7.6758        .18142E-02** at limit **
  15  Prefactor     .10000E-03    14.098        .49023E-01** at limit **
  16  norm          1.2565        .82669        .42621E-04   -.25340E-04
  17  Prefactor     2.3270        13.883        .26969E-03    .53115E-05
  18  Prefactor     .10000E-03    5.5605        .17677E-02** at limit **
  19  Normalizat    1.1054        .23970        .26042E-03    .15458E-03
  20  Prefactor     .92524        .19056        .23425E-03    .12303E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.42021
  Prefactor  = 9.93557
  Prefactor  = 0.0001
  Prefactor  = 5.15531
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.28995
  Prefactor  = 0.0001
  norm       = 3.52306
  Prefactor  = 0.0001
  Prefactor  = 6.485
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.25654
  Prefactor  = 2.327
  Prefactor  = 0.0001
  Normalizat = 1.10541
  Prefactor  = 0.925237
 **********
 **   18 **HESSE 
 **********

 FCN=   5893.204     FROM HESSE     STATUS=OK           283 CALLS     2743 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .59751        .22806E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4202        .80912        .19873E-05   -1.5470    
   3  Prefactor     9.9356        11.000        .50837E-05   -1.5077    
   4  Prefactor     .10000E-03    29.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1553        95.870        .70078E-05   -1.5254    
   6  norm          .10000E-03    5.0475        .33678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3527        .34577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.647        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2900        273.90        .16351E-03   -1.5481    
  10  Prefactor     .10000E-03    43.136        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.5231        1.6552        .25952E-05   -1.5333    
  12  Prefactor     .10000E-03    6.6488        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4850        4.0974        .45454E-05   -1.5199    
  14  Prefactor     .10000E-03    7.6822        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.3207        .62676E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2565        .82527        .17048E-05   -1.5484    
  17  Prefactor     2.3270        13.814        .10788E-04   -1.5403    
  18  Prefactor     .10000E-03    5.5606        .35353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1054        .23959        .10417E-04   -.89578    
  20  Prefactor     .92524        .19074        .93701E-05   -.95265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31034e-11
Minuit parameter uncertainties:
  1  6.08355e-07
  2  0.809129
  3  11.0024
  4  0.000171813
  5  44.5455
  6  1.71096e-06
  7  5.98678e-06
  8  8.26419e-05
  9  37.7686
  10  9.01679e-05
  11  1.65523
  12  2.94639e-05
  13  4.09754
  14  7.17672e-06
  15  0.000269935
  16  0.825275
  17  11.3431
  18  2.80465e-07
  19  0.239824
  20  0.190875
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.290e+00  3.777e+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:  9.252e-01  1.909e-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:  1.105e+00  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 7.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804848/likelihoodResults_379814401_380073601_4FGL_J1018.4+0528_daily_bin542.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) = 5892.87454231
delta logL = 0.329366418197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5892.84150428
delta logL = 0.362404451464

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76429       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0697       1.0000          .0000       10.000    
     3 'Normalizat'    1.0493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95427       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.

 FCN=   5892.842     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      246 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76154        16.692        .18717E-01    .97540E-03
   2  Index         4.0711        2.6153        .92043E-01    .17208E-03
   3  Normalizat    1.0494        .37394E-01    .60211E-01   -.43650E-05
   4  Prefactor     .95417        .31244E-01    .45693E-01   -.42732E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.761542
  Index      = 4.07107
  Normalizat = 1.04939
  Prefactor  = 0.954171
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.842     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      281 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76154        58.448        .84474E-03   -1.5533    
   2  Index         4.0711        7.0355        .58011E-02   -.18687    
   3  Normalizat    1.0494        .15482        .26628E-03   -.91394    
   4  Prefactor     .95417        .12732        .23104E-03   -.94273    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33109e-07
Minuit parameter uncertainties:
  1  13.3559
  2  6.83256
  3  0.154891
  4  0.127361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804848': 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) = 5892.84150392
delta logL = 0.362404809713

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  7.615e-01  1.336e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  4.071e+00  6.833e+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:  9.542e-01  1.274e-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:  1.049e+00  1.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/804848/cmap_HighResolution_379814401_380073601_4FGL_J1018.4+0528_daily_bin542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2021-09-01 17:45:25.475162', job_id='804848', GAL2='0.95', fit_tolerance='1e-08', EG2='1.05', EG='1.11', time_epoch_completed='1630543525.48', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.62e-01', ts2='0.77', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='542' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:45:25 PDT 2021


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

Job <4FGL_J1018.4+0528_daily_bin542> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 17:30:27 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:31:57 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:31:57 2021
Terminated at Wed Sep  1 17:45:26 2021
Results reported at Wed Sep  1 17:45:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin542 154.617 5.4702 379814401 380073601 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 :                                   577.19 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             272.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            899 sec.

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

