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


Performing analysis on: 4FGL_J0910.8+3859_daily_bin1332
RA = 137.709, Dec = 38.9999
tmin = 584582401, tmax = 584841601
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='53340', job_status='RUN', time_executed='2021-08-31 02:55:48.494647', time_epoch_executed='1630403748.49' WHERE source_name='4FGL J0910.8+3859' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/53340

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/53340/ft1_4FGL_J0910.8+3859_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/53340/ft2_4FGL_J0910.8+3859_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/53340/ft1_4FGL_J0910.8+3859_daily_bin1332.fits outfile=/scratch/kocevski/53340/ft1_filteredMKT_4FGL_J0910.8+3859_daily_bin1332.fits ra=137.709 dec=38.9999 rad=12.0 tmin=584582401.0 tmax=584841601.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.15
user 2.64
sys 0.46

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/53340/ft2_4FGL_J0910.8+3859_daily_bin1332.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/53340/ft2_4FGL_J0910.8+3859_daily_bin1332.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/53340/ft1_filteredMKT_4FGL_J0910.8+3859_daily_bin1332.fits evtable="EVENTS" outfile="/scratch/kocevski/53340/ft1_filtered_4FGL_J0910.8+3859_daily_bin1332.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.75
user 0.34
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/53340/ft1_filtered_4FGL_J0910.8+3859_daily_bin1332.fits" evtable="EVENTS" scfile=/scratch/kocevski/53340/ft2_4FGL_J0910.8+3859_daily_bin1332.fits sctable="SC_DATA" outfile=/scratch/kocevski/53340/ltcube_584582401_584841601_4FGL_J0910.8+3859_daily_bin1332.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/53340/ft2_4FGL_J0910.8+3859_daily_bin1332.fits
.....................!
real 12.95
user 12.29
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/53340/ft1_filtered_4FGL_J0910.8+3859_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/53340/ft2_4FGL_J0910.8+3859_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/53340/ltcube_584582401_584841601_4FGL_J0910.8+3859_daily_bin1332.fits outfile=/scratch/kocevski/53340/expmap_584582401_584841601_4FGL_J0910.8+3859_daily_bin1332.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/53340/ltcube_584582401_584841601_4FGL_J0910.8+3859_daily_bin1332.fits
.....................!
real 190.54
user 184.97
sys 5.07

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

Setting source of interest to:
4FGL J0910.8+3859 @ 137.709 38.9999

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/53340/ft1_filtered_4FGL_J0910.8+3859_daily_bin1332.fits scfile=/scratch/kocevski/53340/ft2_4FGL_J0910.8+3859_daily_bin1332.fits outfile=/scratch/kocevski/53340/cmap_584582401_584841601_4FGL_J0910.8+3859_daily_bin1332.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=137.709 yref=38.9999 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.75
user 0.37
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/53340/ft1_filtered_4FGL_J0910.8+3859_daily_bin1332.fits scfile=/scratch/kocevski/53340/ft2_4FGL_J0910.8+3859_daily_bin1332.fits outfile=/scratch/kocevski/53340/cmap_HighResolution_584582401_584841601_4FGL_J0910.8+3859_daily_bin1332.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=137.709 yref=38.9999 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.80
user 0.37
sys 0.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/53340/ft1_filtered_4FGL_J0910.8+3859_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/53340/ft2_4FGL_J0910.8+3859_daily_bin1332.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/53340/Model_4FGL_J0910.8+3859_daily_bin1332.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/53340/ft1_filtered_4FGL_J0910.8+3859_daily_bin1332.fits.....................!
real 18.20
user 16.44
sys 1.65

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/53340/ft1_filtered_4FGL_J0910.8+3859_daily_bin1332.fits', '/scratch/kocevski/53340/ft2_4FGL_J0910.8+3859_daily_bin1332.fits', expMap='/scratch/kocevski/53340/expmap_584582401_584841601_4FGL_J0910.8+3859_daily_bin1332.fits', expCube='/scratch/kocevski/53340/ltcube_584582401_584841601_4FGL_J0910.8+3859_daily_bin1332.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/53340/Model_4FGL_J0910.8+3859_daily_bin1332.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0910.8+3859'

4FGL J0910.8+3859
   Spectrum: PowerLaw
318    Prefactor:  5.960e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
319        Index:  1.996e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
320        Scale:  2.436e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/53340/ft1_filtered_4FGL_J0910.8+3859_daily_bin1332.fits
Spacecraft file(s): /scratch/kocevski/53340/ft2_4FGL_J0910.8+3859_daily_bin1332.fits
Exposure map: /scratch/kocevski/53340/expmap_584582401_584841601_4FGL_J0910.8+3859_daily_bin1332.fits
Exposure cube: /scratch/kocevski/53340/ltcube_584582401_584841601_4FGL_J0910.8+3859_daily_bin1332.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/53340/Model_4FGL_J0910.8+3859_daily_bin1332.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) = 648.427370316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'norm      '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     4 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13993E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     7 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    174.46       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6040       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    30.094       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13913E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.6350       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .85319       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   646.8348     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3935 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10000.        6700.2        .21904E-03** at limit **
   2  norm          10000.        410.86       -.21214E-03** at limit **
   3  Prefactor     10000.        6843.4        .63929E-03** at limit **
   4  Prefactor    10000.0        6920.0        .14619E-02** at limit **
   5  Prefactor     .10000E-03    8339.3       -.17998E-02** at limit **
   6  Prefactor     10000.        6518.4        .15553E-02** at limit **
   7  norm          10000.        1020.6        .82097E-03** at limit **
   8  Prefactor     .10000E-03    24.250       -.62363E-06** at limit **
   9  Prefactor     174.49        113.02        .16067E-04    .18218E-05
  10  Prefactor    10000.0        7072.1        .39637E-02** at limit **
  11  Prefactor     .10000E-03    4.9748        .14621E-07** at limit **
  12  Prefactor     .10000E-03    57.478       -.24323E-04** at limit **
  13  Prefactor     .10000E-03    4.5432        .24995E-07** at limit **
  14  norm          .10000E-03    2.1459       -.10984E-06** at limit **
  15  Prefactor     .10000E-03    19.007        .14754E-06** at limit **
  16  norm          .10000E-03    1.2306        .56764E-07** at limit **
  17  Prefactor     .10000E-03    13.449       -.18243E-07** at limit **
  18  norm          .10000E-03    6.3704       -.86554E-07** at limit **
  19  Prefactor     .10000E-03    4.4301        .48347E-08** at limit **
  20  Prefactor     7.6017        10.040       -.19759E-05   -.18307E-04
  21  Prefactor     .10000E-03    55.790        .29077E-04** at limit **
  22  norm          30.099        46.961        .63906E-06    .38000E-04
  23  Prefactor     .10000E-03    88.169       -.67601E-04** at limit **
  24  Prefactor     .10000E-03    98.153        .67214E-04** at limit **
  25  Prefactor     6.6382        16.590       -.14652E-06   -.56777E-04
  26  Normalizat    .10000E-01    .25383        .16141E-05** at limit **
  27  Prefactor     .85283        .32221       -.35711E-05   -.11589E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 174.492
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.60171
  Prefactor  = 0.0001
  norm       = 30.0992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.63819
  Normalizat = 0.01
  Prefactor  = 0.852834
 **********
 **   18 **HESSE 
 **********

 FCN=   646.8348     FROM HESSE     STATUS=OK           470 CALLS     4405 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10000.        6700.2        .21375E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10000.        410.86        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10000.        6843.4        .20361E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        6920.1        .18533E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8339.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10000.        6518.4        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10000.        1020.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.250        .12240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     174.49        113.09        .15276E-03   -1.3058    
  10  Prefactor    10000.0        7072.2        .18446E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.9797        .55420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    57.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5447        .52964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.1467        .36390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.007        .10836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2841        .55073E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.817        .18213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.3706        .62718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4844        .52296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.6017        10.027        .88037E-04   -1.5156    
  21  Prefactor     .10000E-03    55.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          30.099        47.030        .73036E-04   -1.4610    
  23  Prefactor     .10000E-03    88.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    98.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.6382        16.631        .15039E-03   -1.5193    
  26  Normalizat    .10000E-01    .29227        .70407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .85283        .29692        .23521E-03   -.97809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90607e-11
Minuit parameter uncertainties:
  1  1.73228e-05
  2  1.57354e-05
  3  6.84313e-05
  4  0.000272129
  5  0.000111327
  6  3.7335e-05
  7  1.14735e-05
  8  1.54911e-06
  9  113.23
  10  0.00203131
  11  1.09483e-06
  12  9.07874e-07
  13  7.31834e-07
  14  9.50147e-06
  15  9.04654e-07
  16  2.84601e-06
  17  2.5954e-05
  18  9.31599e-07
  19  3.85497e-06
  20  10.0288
  21  3.33026e-06
  22  47.088
  23  8.98015e-05
  24  0.000122372
  25  16.6429
  26  3.13627e-06
  27  0.29748
Done.

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

Extracting fit parameters...

4FGL J0910.8+3859
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  9.079e-07  1.000e-04  1.000e+04 ( 1.000e-14)
319        Index:  1.996e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
320        Scale:  2.436e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
636    Prefactor:  8.528e-01  2.975e-01  0.000e+00  1.000e+01 ( 1.000e+00)
637        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
638        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
635   Normalization:  1.000e-02  3.136e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 137.709 39.000
Photon Flux Upper Limit: 2.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.51e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/53340/likelihoodResults_584582401_584841601_4FGL_J0910.8+3859_daily_bin1332.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) = 646.834881558
delta logL = -8.25386853194e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 646.83479967
delta logL = -6.49778144179e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12935E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1607       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85284       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6390E+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=   646.8348     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      280 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10203E-03    220.34        .16986E-02** at limit **
   2  Index         2.0908        5.8768        .50000        .77941E-05
   3  Normalizat    .10000E-01    .27048E-02    .70406E-02** at limit **
   4  Prefactor     .85283        .25309E-01    .23521E-03    .13413E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102027
  Index      = 2.09077
  Normalizat = 0.01
  Prefactor  = 0.852834
 **********
 **   18 **HESSE 
 **********

 FCN=   646.8348     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10203E-03    922.90        .33973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0908        6.4358        .50000       -.62100    
   3  Normalizat    .10000E-01    .11974E-01    .14081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .85283        .53240E-01    .94084E-05   -.97809    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.20725e-09
Minuit parameter uncertainties:
  1  0.0878964
  2  495.68
  3  1.0226e-08
  4  0.0532433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/53340': 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) = 646.834799197
delta logL = -1.77359993359e-07

Extracting fit parameters...

4FGL J0910.8+3859
   Spectrum: PowerLaw
318    Prefactor:  1.020e-04  8.790e-02  1.000e-04  1.000e+04 ( 1.000e-14)
319        Index:  2.091e+00  4.957e+02  0.000e+00  1.000e+01 (-1.000e+00)
320        Scale:  2.436e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
636    Prefactor:  8.528e-01  5.324e-02  0.000e+00  1.000e+01 ( 1.000e+00)
637        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
638        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
635   Normalization:  1.000e-02  1.023e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 137.709 39.000

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/53340/cmap_HighResolution_584582401_584841601_4FGL_J0910.8+3859_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', job_status='DONE', photon_flux_upper_limit='2.02e-07', time_completed='2021-08-31 03:02:19.805839', job_id='53340', GAL2='0.85', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630404139.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-1.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1332' AND source_name='4FGL J0910.8+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 03:02:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 53340: <4FGL_J0910.8+3859_daily_bin1332> in cluster <slac> Done

Job <4FGL_J0910.8+3859_daily_bin1332> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Aug 31 02:55:32 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 02:55:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 02:55:34 2021
Terminated at Tue Aug 31 03:02:20 2021
Results reported at Tue Aug 31 03:02:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0910.8+3859_daily_bin1332 137.709 38.9999 584582401 584841601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0910.8+3859 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   395.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   406 sec.
    Turnaround time :                            408 sec.

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

