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


Performing analysis on: 4FGL_J0930.3+8612_daily_bin85
RA = 142.599, Dec = 86.2021
tmin = 261360001, tmax = 261619201
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='249611', job_status='RUN', time_executed='2021-08-31 12:46:12.501255', time_epoch_executed='1630439172.5' WHERE source_name='4FGL J0930.3+8612' and cadence='daily' and bin_id='85'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/249611

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/249611/ft1_4FGL_J0930.3+8612_daily_bin85.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/249611/ft2_4FGL_J0930.3+8612_daily_bin85.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/249611/ft1_4FGL_J0930.3+8612_daily_bin85.fits outfile=/scratch/kocevski/249611/ft1_filteredMKT_4FGL_J0930.3+8612_daily_bin85.fits ra=142.599 dec=86.2021 rad=12.0 tmin=261360001.0 tmax=261619201.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 1.46
user 1.29
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/249611/ft2_4FGL_J0930.3+8612_daily_bin85.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/249611/ft2_4FGL_J0930.3+8612_daily_bin85.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/249611/ft1_filteredMKT_4FGL_J0930.3+8612_daily_bin85.fits evtable="EVENTS" outfile="/scratch/kocevski/249611/ft1_filtered_4FGL_J0930.3+8612_daily_bin85.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/249611/ft1_filtered_4FGL_J0930.3+8612_daily_bin85.fits" evtable="EVENTS" scfile=/scratch/kocevski/249611/ft2_4FGL_J0930.3+8612_daily_bin85.fits sctable="SC_DATA" outfile=/scratch/kocevski/249611/ltcube_261360001_261619201_4FGL_J0930.3+8612_daily_bin85.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/249611/ft2_4FGL_J0930.3+8612_daily_bin85.fits
.....................!
real 12.81
user 12.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/249611/ft1_filtered_4FGL_J0930.3+8612_daily_bin85.fits evtable="EVENTS" scfile=/scratch/kocevski/249611/ft2_4FGL_J0930.3+8612_daily_bin85.fits sctable="SC_DATA" expcube=/scratch/kocevski/249611/ltcube_261360001_261619201_4FGL_J0930.3+8612_daily_bin85.fits outfile=/scratch/kocevski/249611/expmap_261360001_261619201_4FGL_J0930.3+8612_daily_bin85.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/249611/ltcube_261360001_261619201_4FGL_J0930.3+8612_daily_bin85.fits
.....................!
real 192.26
user 187.24
sys 4.37

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

Setting source of interest to:
4FGL J0930.3+8612 @ 142.599 86.2021

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/249611/ft1_filtered_4FGL_J0930.3+8612_daily_bin85.fits scfile=/scratch/kocevski/249611/ft2_4FGL_J0930.3+8612_daily_bin85.fits outfile=/scratch/kocevski/249611/cmap_261360001_261619201_4FGL_J0930.3+8612_daily_bin85.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.599 yref=86.2021 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.61
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/249611/ft1_filtered_4FGL_J0930.3+8612_daily_bin85.fits scfile=/scratch/kocevski/249611/ft2_4FGL_J0930.3+8612_daily_bin85.fits outfile=/scratch/kocevski/249611/cmap_HighResolution_261360001_261619201_4FGL_J0930.3+8612_daily_bin85.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.599 yref=86.2021 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.59
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/249611/ft1_filtered_4FGL_J0930.3+8612_daily_bin85.fits evtable="EVENTS" scfile=/scratch/kocevski/249611/ft2_4FGL_J0930.3+8612_daily_bin85.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/249611/Model_4FGL_J0930.3+8612_daily_bin85.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/249611/ft1_filtered_4FGL_J0930.3+8612_daily_bin85.fits.....................!
real 118.58
user 116.24
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/249611/ft1_filtered_4FGL_J0930.3+8612_daily_bin85.fits', '/scratch/kocevski/249611/ft2_4FGL_J0930.3+8612_daily_bin85.fits', expMap='/scratch/kocevski/249611/expmap_261360001_261619201_4FGL_J0930.3+8612_daily_bin85.fits', expCube='/scratch/kocevski/249611/ltcube_261360001_261619201_4FGL_J0930.3+8612_daily_bin85.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/249611/Model_4FGL_J0930.3+8612_daily_bin85.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0930.3+8612'

4FGL J0930.3+8612
   Spectrum: PowerLaw
284    Prefactor:  3.863e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.219e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  1.519e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/249611/ft1_filtered_4FGL_J0930.3+8612_daily_bin85.fits
Spacecraft file(s): /scratch/kocevski/249611/ft2_4FGL_J0930.3+8612_daily_bin85.fits
Exposure map: /scratch/kocevski/249611/expmap_261360001_261619201_4FGL_J0930.3+8612_daily_bin85.fits
Exposure cube: /scratch/kocevski/249611/ltcube_261360001_261619201_4FGL_J0930.3+8612_daily_bin85.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/249611/Model_4FGL_J0930.3+8612_daily_bin85.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) = 8766.2257098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .74663       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .46441E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9643       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7218       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1328       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.473       1.0000         .10000E-03   10000.    
    21 'Prefactor '    74.418       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80206       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97794       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8766.222     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2533 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.981        .10386E-04** at limit **
   2  Prefactor     .75300        5.9219       -.34963E-05    .37621E-03
   3  Prefactor     .10000E-03    16.040       -.56180E-05** at limit **
   4  Prefactor     .10000E-03    5.0199       -.22812E-06** at limit **
   5  norm          .10000E-03    4.0615       -.45983E-07** at limit **
   6  norm          .10000E-03    8.1960       -.10760E-06** at limit **
   7  Prefactor     8.9640        12.629       -.14366E-06   -.52606E-05
   8  Prefactor     .10000E-03    1.9918        .28081E-07** at limit **
   9  Prefactor     8.7217        9.6525        .11130E-06   -.29736E-04
  10  Prefactor     .10000E-03    7.1338        .72144E-07** at limit **
  11  Prefactor     .10000E-03    2.0957        .27387E-07** at limit **
  12  Prefactor     .10000E-03    12.587       -.28916E-05** at limit **
  13  norm          .10000E-03    1.4816        .10242E-07** at limit **
  14  Prefactor     .10000E-03    2.8405       -.35174E-07** at limit **
  15  Prefactor     8.1333        8.9499       -.57182E-07   -.13784E-03
  16  Prefactor     .10000E-03    31.898        .25972E-06** at limit **
  17  norm          .10000E-03    1.3247       -.23681E-07** at limit **
  18  Prefactor     .10000E-03    13.253       -.63558E-05** at limit **
  19  Prefactor     .10000E-03    12.192        .46746E-05** at limit **
  20  Prefactor     16.214        64.403        .12590E-05   -.28296E-05
  21  Prefactor     74.352        65.168       -.66163E-05    .28013E-04
  22  Normalizat    .80204        .15635        .33428E-06    .26602E-03
  23  Prefactor     .97800        .82387E-01    .52297E-06    .59583E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.752999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.96403
  Prefactor  = 0.0001
  Prefactor  = 8.72172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.13328
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2137
  Prefactor  = 74.3516
  Normalizat = 0.802044
  Prefactor  = 0.978001
 **********
 **   18 **HESSE 
 **********

 FCN=   8766.222     FROM HESSE     STATUS=OK           362 CALLS     2895 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .75300        18.534        .42119E-02   -1.5534    
   3  Prefactor     .10000E-03    16.580        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.619        .40331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.0624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.2031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9640        12.627        .13387E-03   -1.5109    
   8  Prefactor     .10000E-03    2.0129        .12902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.7217        9.6460        .13573E-03   -1.5117    
  10  Prefactor     .10000E-03    7.1716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.0966        .13237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5009        .11121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8504        .15403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.1333        8.9461        .14059E-03   -1.5138    
  16  Prefactor     .10000E-03    31.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.3396        .10491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.214        64.550        .98681E-04   -1.4902    
  21  Prefactor     74.352        65.342        .46543E-04   -1.3981    
  22  Normalizat    .80204        .17675        .32311E-03   -.99993    
  23  Prefactor     .97800        .93589E-01    .15861E-03   -.93466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71882e-09
Minuit parameter uncertainties:
  1  4.21089e-05
  2  7.47364
  3  9.82132e-05
  4  9.18942e-05
  5  9.64525e-07
  6  2.82016e-06
  7  12.6309
  8  1.82869e-06
  9  9.64774
  10  3.35676e-06
  11  5.2976e-07
  12  3.51416e-06
  13  1.82637e-06
  14  1.97545e-06
  15  8.94753
  16  1.03434e-05
  17  1.63432e-06
  18  2.48268e-06
  19  2.1632e-05
  20  64.8248
  21  65.4047
  22  0.176874
  23  0.0936047
Done.

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

Extracting fit parameters...

4FGL J0930.3+8612
   Spectrum: PowerLaw
284    Prefactor:  8.722e+00  9.648e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.219e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  1.519e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  9.780e-01  9.360e-02  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  8.020e-01  1.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 142.599 86.202
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.00e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.44e-05

TS (Fixed Index): 1.08
Ra Dec: 142.599 86.202
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/249611/likelihoodResults_261360001_261619201_4FGL_J0930.3+8612_daily_bin85.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) = 8765.90291179
delta logL = 0.31875715848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8765.89052548
delta logL = 0.331143470759

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7349       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9408       1.0000          .0000       10.000    
     3 'Normalizat'    .77544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98408       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8765.891     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      321 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.7404        68.484        .52234E-02    .65172E-03
   2  Index         2.9391        3.0274        .10485        .22785E-03
   3  Normalizat    .77557        .59353E-01    .74097E-01    .14643E-05
   4  Prefactor     .98396        .28995E-01    .46068E-01    .27995E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.7404
  Index      = 2.93908
  Normalizat = 0.775569
  Prefactor  = 0.983959
 **********
 **   18 **HESSE 
 **********

 FCN=   8765.891     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      354 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7404        122.71        .14344E-03   -1.5321    
   2  Index         2.9391        6.4619        .62736E-02   -.42485    
   3  Normalizat    .77557        .21471        .32796E-03   -1.0098    
   4  Prefactor     .98396        .10938        .15815E-03   -.93266    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.35546e-06
Minuit parameter uncertainties:
  1  42.9429
  2  5.57593
  3  0.214945
  4  0.109408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/249611': 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) = 8765.89052015
delta logL = 0.331148798276

Extracting fit parameters...

4FGL J0930.3+8612
   Spectrum: PowerLaw
284    Prefactor:  3.740e+00  4.294e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.939e+00  5.576e+00  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  1.519e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  9.840e-01  1.094e-01  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  7.756e-01  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 142.599 86.202
Photon Index (Free Index): 2.94 +/- 5.58
Photon Flux (Free Index): 5.74e-08 +/- 6.82e-08
Energy Flux (Free Index): 1.18e-05 +/- 2.74e-05

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/249611/cmap_HighResolution_261360001_261619201_4FGL_J0930.3+8612_daily_bin85.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.81e-03', comment='SUCCESS', photon_flux='3.00e-08', energy_flux2='1.18e-05', photon_flux_error='3.32e-08', dlogl='3.31e-01', energy_flux='1.30e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2021-08-31 13:02:22.890022', photon_index_error2='5.58', photon_index2='2.94', ts='1.08', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='2.74e-05', EG='0.80', time_epoch_completed='1630440142.89', return_code='0', job_id='249611', GAL2='0.98', EG2='0.78', return_code2='102', energy_flux_error='1.44e-05', photon_flux_error2='6.82e-08', ts2='1.76', photon_index='2.22' WHERE bin_id='85' AND source_name='4FGL J0930.3+8612' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 13:02:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 249611: <4FGL_J0930.3+8612_daily_bin85> in cluster <slac> Done

Job <4FGL_J0930.3+8612_daily_bin85> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 12:45:52 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 12:45:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 12:45:53 2021
Terminated at Tue Aug 31 13:02:23 2021
Results reported at Tue Aug 31 13:02:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0930.3+8612_daily_bin85 142.599 86.2021 261360001 261619201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0930.3+8612 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   960.17 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             343.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            991 sec.

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

