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


Performing analysis on: 4FGL_J0930.9-1015_daily_bin1170
RA = 142.74, Dec = -10.2565
tmin = 542592001, tmax = 542851201
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='266716', job_status='RUN', time_executed='2021-08-31 13:36:33.073598', time_epoch_executed='1630442193.07' WHERE source_name='4FGL J0930.9-1015' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266716

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266716/ft1_4FGL_J0930.9-1015_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266716/ft2_4FGL_J0930.9-1015_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266716/ft1_4FGL_J0930.9-1015_daily_bin1170.fits outfile=/scratch/kocevski/266716/ft1_filteredMKT_4FGL_J0930.9-1015_daily_bin1170.fits ra=142.74 dec=-10.2565 rad=12.0 tmin=542592001.0 tmax=542851201.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 7.22
user 6.57
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/266716/ft2_4FGL_J0930.9-1015_daily_bin1170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266716/ft2_4FGL_J0930.9-1015_daily_bin1170.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/266716/ft1_filteredMKT_4FGL_J0930.9-1015_daily_bin1170.fits evtable="EVENTS" outfile="/scratch/kocevski/266716/ft1_filtered_4FGL_J0930.9-1015_daily_bin1170.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.73
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266716/ft1_filtered_4FGL_J0930.9-1015_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/266716/ft2_4FGL_J0930.9-1015_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/266716/ltcube_542592001_542851201_4FGL_J0930.9-1015_daily_bin1170.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/266716/ft2_4FGL_J0930.9-1015_daily_bin1170.fits
.....................!
real 15.74
user 15.29
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266716/ft1_filtered_4FGL_J0930.9-1015_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/266716/ft2_4FGL_J0930.9-1015_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/266716/ltcube_542592001_542851201_4FGL_J0930.9-1015_daily_bin1170.fits outfile=/scratch/kocevski/266716/expmap_542592001_542851201_4FGL_J0930.9-1015_daily_bin1170.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/266716/ltcube_542592001_542851201_4FGL_J0930.9-1015_daily_bin1170.fits
.....................!
real 194.43
user 188.09
sys 4.21

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J0930.9-1015 @ 142.74 -10.2565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/266716/ft1_filtered_4FGL_J0930.9-1015_daily_bin1170.fits scfile=/scratch/kocevski/266716/ft2_4FGL_J0930.9-1015_daily_bin1170.fits outfile=/scratch/kocevski/266716/cmap_542592001_542851201_4FGL_J0930.9-1015_daily_bin1170.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=142.74 yref=-10.2565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266716/ft1_filtered_4FGL_J0930.9-1015_daily_bin1170.fits scfile=/scratch/kocevski/266716/ft2_4FGL_J0930.9-1015_daily_bin1170.fits outfile=/scratch/kocevski/266716/cmap_HighResolution_542592001_542851201_4FGL_J0930.9-1015_daily_bin1170.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=142.74 yref=-10.2565 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.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/266716/ft1_filtered_4FGL_J0930.9-1015_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/266716/ft2_4FGL_J0930.9-1015_daily_bin1170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/266716/Model_4FGL_J0930.9-1015_daily_bin1170.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/266716/ft1_filtered_4FGL_J0930.9-1015_daily_bin1170.fits.....................!
real 50.94
user 49.64
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/266716/ft1_filtered_4FGL_J0930.9-1015_daily_bin1170.fits', '/scratch/kocevski/266716/ft2_4FGL_J0930.9-1015_daily_bin1170.fits', expMap='/scratch/kocevski/266716/expmap_542592001_542851201_4FGL_J0930.9-1015_daily_bin1170.fits', expCube='/scratch/kocevski/266716/ltcube_542592001_542851201_4FGL_J0930.9-1015_daily_bin1170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/266716/Model_4FGL_J0930.9-1015_daily_bin1170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0930.9-1015'

4FGL J0930.9-1015
   Spectrum: PowerLaw
258    Prefactor:  5.847e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
259        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  8.329e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/266716/ft1_filtered_4FGL_J0930.9-1015_daily_bin1170.fits
Spacecraft file(s): /scratch/kocevski/266716/ft2_4FGL_J0930.9-1015_daily_bin1170.fits
Exposure map: /scratch/kocevski/266716/expmap_542592001_542851201_4FGL_J0930.9-1015_daily_bin1170.fits
Exposure cube: /scratch/kocevski/266716/ltcube_542592001_542851201_4FGL_J0930.9-1015_daily_bin1170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/266716/Model_4FGL_J0930.9-1015_daily_bin1170.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) = 4038.57501073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    80.061       1.0000         .10000E-03   10000.    
     2 'norm      '    5.3226       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8412       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14627E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    71.071       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0756       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.877       1.0000         .10000E-03   10000.    
    11 'Prefactor '    110.42       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11889E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4349       1.0000         .10000E-03   10000.    
    15 'norm      '    .30391E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .17709E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0077       1.0000         .10000E-03   10000.    
    18 'norm      '    .67249E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.056       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3297       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .66060       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+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=   4038.513     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     2640 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     80.047        39.171        .44885E-04    .60788E-05
   2  norm          5.3236        7.1586        .17421E-03    .96585E-05
   3  norm          .10000E-03    .71378        .52364E-03** at limit **
   4  Prefactor     .10000E-03    3.7321        .11981E-02** at limit **
   5  Prefactor     .10000E-03    2.1493        .90946E-03** at limit **
   6  norm          2.8388        6.5931        .23539E-03    .38034E-04
   7  Prefactor     .10000E-03    35.799        .18142E-02** at limit **
   8  Prefactor     71.067        66.468        .47618E-04    .54434E-05
   9  Prefactor     8.9661        70.054        .13304E-03    .15125E-04
  10  Prefactor     18.872        20.378        .92185E-04    .27625E-04
  11  Prefactor     110.39        59.684        .19139E-03    .19305E-05
  12  Prefactor     .10000E-03    37.714        .18142E-02** at limit **
  13  Prefactor     .10000E-03    6.4699        .15787E-02** at limit **
  14  norm          2.4017        22.726        .26223E-03    .25514E-04
  15  norm          .10000E-03    9.4338        .26827E-02** at limit **
  16  norm          .10000E-03    19.664        .94840E-03** at limit **
  17  norm          2.0071        2.5687        .11240E-03    .52090E-05
  18  norm          .10000E-03    148.09        .55303E-02** at limit **
  19  Prefactor     38.943        107.61        .64136E-04    .60090E-05
  20  Normalizat    1.3305        .30910        .26131E-03    .63834E-04
  21  Prefactor     .66013        .18330        .22572E-03    .83480E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 80.0474
  norm       = 5.32361
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.83876
  Prefactor  = 0.0001
  Prefactor  = 71.0675
  Prefactor  = 8.96609
  Prefactor  = 18.8723
  Prefactor  = 110.39
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.40171
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 2.00706
  norm       = 0.0001
  Prefactor  = 38.9429
  Normalizat = 1.33046
  Prefactor  = 0.660126
 **********
 **   18 **HESSE 
 **********

 FCN=   4038.513     FROM HESSE     STATUS=OK           295 CALLS     2935 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     80.047        39.170        .89770E-05   -1.3916    
   2  norm          5.3236        7.1583        .69682E-05   -1.5246    
   3  norm          .10000E-03    .71379        .10473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7322        .23962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.1494        .18189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8388        6.5916        .94156E-05   -1.5371    
   7  Prefactor     .10000E-03    35.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     71.067        66.466        .95237E-05   -1.4020    
   9  Prefactor     8.9661        70.014        .53216E-05   -1.5109    
  10  Prefactor     18.872        20.373        .36874E-05   -1.4839    
  11  Prefactor     110.39        59.679        .76555E-05   -1.3603    
  12  Prefactor     .10000E-03    37.715        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.4700        .31574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4017        22.700        .10489E-04   -1.5398    
  15  norm          .10000E-03    9.4706        .53653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    20.424        .37936E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0071        2.5687        .44960E-05   -1.5425    
  18  norm          .10000E-03    151.36        .11061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.943        107.61        .12827E-04   -1.4459    
  20  Normalizat    1.3305        .30924        .52261E-04   -.82662    
  21  Prefactor     .66013        .18346        .90290E-05   -1.0511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33623e-10
Minuit parameter uncertainties:
  1  39.1826
  2  7.15943
  3  6.94096e-07
  4  3.19383e-06
  5  2.08928e-06
  6  6.59325
  7  7.45379e-05
  8  66.5359
  9  50.1908
  10  20.3802
  11  59.7116
  12  2.56822e-06
  13  1.26898e-06
  14  14.7743
  15  0.000179121
  16  0.000199095
  17  2.56882
  18  0.00018195
  19  108.152
  20  0.309671
  21  0.183622
Done.

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

Extracting fit parameters...

4FGL J0930.9-1015
   Spectrum: PowerLaw
258    Prefactor:  1.104e+02  5.971e+01  1.000e-04  1.000e+04 ( 1.000e-13)
259        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  8.329e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  6.601e-01  1.836e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.330e+00  3.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.80
Ra Dec: 142.740 -10.257
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 7.49e-08
Energy Flux (Fixed Index): 4.23e-05 +/- 2.29e-05

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) = 4038.50761421
delta logL = 0.00546460962642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4038.50505525
delta logL = 0.00802357178509

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    114.91       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3947       1.0000          .0000       10.000    
     3 'Normalizat'    1.3371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+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=   4038.505     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     114.93        71.730        .18766E-03    .78455E-05
   2  Index         2.3946        .49879        .53390E-02    .20999E-03
   3  Normalizat    1.3369        .28926        .26078E-03    .39845E-04
   4  Prefactor     .65735        .18038        .22616E-03   -.22797E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 114.932
  Index      = 2.39462
  Normalizat = 1.33686
  Prefactor  = 0.657348
 **********
 **   18 **HESSE 
 **********

 FCN=   4038.505     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     114.93        70.644        .75062E-05   -1.3560    
   2  Index         2.3946        .49096        .10678E-02   -.54811    
   3  Normalizat    1.3369        .28944        .10431E-04   -.82473    
   4  Prefactor     .65735        .18049        .90464E-05   -1.0522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32799e-11
Minuit parameter uncertainties:
  1  70.696
  2  0.492051
  3  0.289795
  4  0.180655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266716': 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) = 4038.50505438
delta logL = 0.00802444308511

Extracting fit parameters...

4FGL J0930.9-1015
   Spectrum: PowerLaw
258    Prefactor:  1.149e+02  7.070e+01  1.000e-04  1.000e+04 ( 1.000e-13)
259        Index:  2.395e+00  4.921e-01  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  8.329e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  6.573e-01  1.807e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.337e+00  2.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.77
Ra Dec: 142.740 -10.257
Photon Index (Free Index): 2.39 +/- 0.49
Photon Flux (Free Index): 1.32e-07 +/- 8.83e-08
Energy Flux (Free Index): 4.36e-05 +/- 2.61e-05

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/266716/cmap_HighResolution_542592001_542851201_4FGL_J0930.9-1015_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='4.36e-05', photon_flux_error='7.49e-08', dlogl='8.02e-03', energy_flux='4.23e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-08-31 13:45:23.730343', photon_index_error2='0.49', photon_index2='2.39', ts='8.80', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='2.61e-05', EG='1.33', time_epoch_completed='1630442723.73', return_code='0', job_id='266716', GAL2='0.66', EG2='1.34', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='8.83e-08', ts2='8.77', photon_index='2.46' WHERE bin_id='1170' AND source_name='4FGL J0930.9-1015' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 13:45:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 266716: <4FGL_J0930.9-1015_daily_bin1170> in cluster <slac> Done

Job <4FGL_J0930.9-1015_daily_bin1170> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 13:35:59 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 13:36:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 13:36:00 2021
Terminated at Tue Aug 31 13:45:24 2021
Results reported at Tue Aug 31 13:45:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0930.9-1015_daily_bin1170 142.74 -10.2565 542592001 542851201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0930.9-1015 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   502.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   564 sec.
    Turnaround time :                            565 sec.

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

