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


Performing analysis on: 4FGL_J0910.8+3859_daily_bin1018
RA = 137.709, Dec = 38.9999
tmin = 503193601, tmax = 503452801
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='50303', job_status='RUN', time_executed='2021-08-31 02:48:01.104284', time_epoch_executed='1630403281.1' WHERE source_name='4FGL J0910.8+3859' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/50303

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/50303/ft1_4FGL_J0910.8+3859_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/50303/ft2_4FGL_J0910.8+3859_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/50303/ft1_4FGL_J0910.8+3859_daily_bin1018.fits outfile=/scratch/kocevski/50303/ft1_filteredMKT_4FGL_J0910.8+3859_daily_bin1018.fits ra=137.709 dec=38.9999 rad=12.0 tmin=503193601.0 tmax=503452801.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 5.21
user 4.83
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/50303/ft2_4FGL_J0910.8+3859_daily_bin1018.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/50303/ft1_filteredMKT_4FGL_J0910.8+3859_daily_bin1018.fits evtable="EVENTS" outfile="/scratch/kocevski/50303/ft1_filtered_4FGL_J0910.8+3859_daily_bin1018.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.60
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/50303/ft1_filtered_4FGL_J0910.8+3859_daily_bin1018.fits" evtable="EVENTS" scfile=/scratch/kocevski/50303/ft2_4FGL_J0910.8+3859_daily_bin1018.fits sctable="SC_DATA" outfile=/scratch/kocevski/50303/ltcube_503193601_503452801_4FGL_J0910.8+3859_daily_bin1018.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/50303/ft2_4FGL_J0910.8+3859_daily_bin1018.fits
.....................!
real 12.26
user 11.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/50303/ft1_filtered_4FGL_J0910.8+3859_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/50303/ft2_4FGL_J0910.8+3859_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/50303/ltcube_503193601_503452801_4FGL_J0910.8+3859_daily_bin1018.fits outfile=/scratch/kocevski/50303/expmap_503193601_503452801_4FGL_J0910.8+3859_daily_bin1018.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/50303/ltcube_503193601_503452801_4FGL_J0910.8+3859_daily_bin1018.fits
.....................!
real 190.76
user 185.13
sys 4.60

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/50303/ft1_filtered_4FGL_J0910.8+3859_daily_bin1018.fits scfile=/scratch/kocevski/50303/ft2_4FGL_J0910.8+3859_daily_bin1018.fits outfile=/scratch/kocevski/50303/cmap_503193601_503452801_4FGL_J0910.8+3859_daily_bin1018.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/50303/ft1_filtered_4FGL_J0910.8+3859_daily_bin1018.fits scfile=/scratch/kocevski/50303/ft2_4FGL_J0910.8+3859_daily_bin1018.fits outfile=/scratch/kocevski/50303/cmap_HighResolution_503193601_503452801_4FGL_J0910.8+3859_daily_bin1018.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.57
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/50303/ft1_filtered_4FGL_J0910.8+3859_daily_bin1018.fits', '/scratch/kocevski/50303/ft2_4FGL_J0910.8+3859_daily_bin1018.fits', expMap='/scratch/kocevski/50303/expmap_503193601_503452801_4FGL_J0910.8+3859_daily_bin1018.fits', expCube='/scratch/kocevski/50303/ltcube_503193601_503452801_4FGL_J0910.8+3859_daily_bin1018.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/50303/Model_4FGL_J0910.8+3859_daily_bin1018.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/50303/ft1_filtered_4FGL_J0910.8+3859_daily_bin1018.fits
Spacecraft file(s): /scratch/kocevski/50303/ft2_4FGL_J0910.8+3859_daily_bin1018.fits
Exposure map: /scratch/kocevski/50303/expmap_503193601_503452801_4FGL_J0910.8+3859_daily_bin1018.fits
Exposure cube: /scratch/kocevski/50303/ltcube_503193601_503452801_4FGL_J0910.8+3859_daily_bin1018.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/50303/Model_4FGL_J0910.8+3859_daily_bin1018.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) = 6297.8186203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2019       1.0000         .10000E-03   10000.    
     2 'norm      '    .29323E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34513E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2119       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2237       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10313E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8330       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.725       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6402       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3985       1.0000         .10000E-03   10000.    
    14 'norm      '    .61614       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17142E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9027       1.0000         .10000E-03   10000.    
    18 'norm      '    9.1160       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .66458       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1040       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.0534       1.0000         .10000E-03   10000.    
    22 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .40535       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.630       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .84482       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1147       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6297.808     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     2828 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2024        5.8428       -.16696E-06   -.60495E-03
   2  norm          .29541E-01    .70723        .28435E-06    .28621E-03
   3  Prefactor     .10003E-03    37.465       -.19640E-06** at limit **
   4  Prefactor     1.2147        2.7123        .80539E-06    .43034E-03
   5  Prefactor     8.2196        4.2988        .97348E-07   -.13910E-02
   6  Prefactor     .10000E-03    4.6909        .19086E-05** at limit **
   7  norm          .10000E-03    4.1477       -.61867E-06** at limit **
   8  Prefactor     .10000E-03    .57464       -.93919E-08** at limit **
   9  Prefactor     6.8383        6.6002        .11205E-06    .63168E-02
  10  Prefactor     29.619        28.549       -.53048E-06    .58697E-02
  11  Prefactor     2.6402        3.3407       -.26003E-06   -.18227E-03
  12  Prefactor     .10000E-03    12.208       -.12813E-05** at limit **
  13  Prefactor     3.3986        2.8740        .19606E-06    .29812E-03
  14  norm          .61450        1.1621       -.16096E-07   -.46089E-04
  15  Prefactor     .10071E-03    87.068       -.15132E-05** at limit **
  16  norm          .10000E-03    .25745       -.93028E-07** at limit **
  17  Prefactor     3.9018        2.1762        .57016E-07    .38281E-03
  18  norm          9.1191        6.4403       -.22921E-07    .52271E-02
  19  Prefactor     .66483        1.6817        .63790E-06    .45959E-03
  20  Prefactor     3.1054        3.6597       -.85033E-07   -.90861E-04
  21  Prefactor     7.0546        3.9143        .84952E-07   -.39552E-02
  22  norm          .10000E-03    8.8529        .15525E-05** at limit **
  23  Prefactor     .23531        299.11       -.14022E-05   -.37449E-03
  24  Prefactor     11.676        30.609        .71377E-06    .17283E-02
  25  Prefactor     .10000E-03    2.1465        .20888E-06** at limit **
  26  Normalizat    .84455        .18130        .78413E-06    .15413E-03
  27  Prefactor     1.1150        .18590       -.77170E-06    .84474E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.20243
  norm       = 0.0295412
  Prefactor  = 0.000100026
  Prefactor  = 1.21474
  Prefactor  = 8.21957
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.83832
  Prefactor  = 29.6185
  Prefactor  = 2.64015
  Prefactor  = 0.0001
  Prefactor  = 3.39858
  norm       = 0.614504
  Prefactor  = 0.000100715
  norm       = 0.0001
  Prefactor  = 3.90179
  norm       = 9.11908
  Prefactor  = 0.664825
  Prefactor  = 3.1054
  Prefactor  = 7.05462
  norm       = 0.0001
  Prefactor  = 0.235308
  Prefactor  = 11.6758
  Prefactor  = 0.0001
  Normalizat = 0.844555
  Prefactor  = 1.11498
 **********
 **   18 **HESSE 
 **********

 FCN=   6297.808     FROM HESSE     STATUS=OK           568 CALLS     3396 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2024        5.9247        .40300E-02   -1.5210    
   2  norm          .29541E-01    .27960        .15230E-01   -1.5674    
   3  Prefactor     .10003E-03    7.4305        .10665       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2147        3.0542        .10271E-01   -1.5488    
   5  Prefactor     8.2196        24.203        .34951E-02   -1.5134    
   6  Prefactor     .10000E-03    4.6835        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.9922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .57199        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8383        13.274        .38372E-02   -1.5185    
  10  Prefactor     29.619        57.773        .18372E-02   -1.4619    
  11  Prefactor     2.6402        3.3620        .62733E-02   -1.5383    
  12  Prefactor     .10000E-03    12.251        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3986        2.9326        .54865E-02   -1.5339    
  14  norm          .61450        1.3604        .27126E-01   -1.5551    
  15  Prefactor     .10071E-03    11.234        .10181       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .18874        .15842E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.9018        2.3880        .51058E-02   -1.5313    
  18  norm          9.1191        7.5830        .33186E-02   -1.5104    
  19  Prefactor     .66483        1.7631        .11925E-01   -1.5545    
  20  Prefactor     3.1054        3.7105        .57541E-02   -1.5356    
  21  Prefactor     7.0546        8.3469        .37762E-02   -1.5177    
  22  norm          .10000E-03    8.8302        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .23531        18.054        .10878       -1.5611    
  24  Prefactor     11.676        37.723        .29367E-02   -1.5024    
  25  Prefactor     .10000E-03    2.1462        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .84455        .16389        .44192E-01   -.98437    
  27  Prefactor     1.1150        .16465        .37054E-01   -.88989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14533e-07
Minuit parameter uncertainties:
  1  5.92525
  2  0.181459
  3  0.000885215
  4  3.05458
  5  24.2316
  6  0.000109885
  7  3.26551e-05
  8  2.00245e-07
  9  13.2796
  10  57.8825
  11  3.36221
  12  0.00011844
  13  2.93269
  14  1.36049
  15  0.00566755
  16  1.07952e-06
  17  2.3881
  18  7.58376
  19  1.7632
  20  3.7108
  21  8.34828
  22  0.000125454
  23  4.12266
  24  37.8004
  25  8.08706e-06
  26  0.163988
  27  0.16473
Done.

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

Extracting fit parameters...

4FGL J0910.8+3859
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  1.184e-04  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:  1.115e+00  1.647e-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:  8.446e-01  1.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 137.709 39.000
Photon Flux Upper Limit: 3.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/50303/likelihoodResults_503193601_503452801_4FGL_J0910.8+3859_daily_bin1018.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) = 6297.80883094
delta logL = -0.000388124060009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6297.80844269
delta logL = 1.28191459225e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9677       1.0000          .0000       10.000    
     3 'Normalizat'    .84455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1150       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=   6297.808     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10155E-03    97.938        .18142E-02** at limit **
   2  Index         1.9079        9.0057        .50000        .14359E-04
   3  Normalizat    .84455        .10491E-01    .24212E-03    .34841E-04
   4  Prefactor     1.1150        .11444E-01    .23184E-03   -.60805E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101555
  Index      = 1.9079
  Normalizat = 0.844554
  Prefactor  = 1.11498
 **********
 **   18 **HESSE 
 **********

 FCN=   6297.808     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10155E-03    423.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9079        5.4413        .50000       -.66673    
   3  Normalizat    .84455        .22546E-01    .96847E-05   -.98437    
   4  Prefactor     1.1150        .24594E-01    .92738E-05   -.88989    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.72365e-08
Minuit parameter uncertainties:
  1  0.0517028
  2  551.065
  3  0.0225463
  4  0.0245939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/50303': 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) = 6297.80844251
delta logL = 3.07214577333e-07

Extracting fit parameters...

4FGL J0910.8+3859
   Spectrum: PowerLaw
318    Prefactor:  1.016e-04  5.170e-02  1.000e-04  1.000e+04 ( 1.000e-14)
319        Index:  1.908e+00  5.511e+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:  1.115e+00  2.459e-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:  8.446e-01  2.255e-02  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/50303/cmap_HighResolution_503193601_503452801_4FGL_J0910.8+3859_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-03', job_status='DONE', photon_flux_upper_limit='3.40e-08', time_completed='2021-08-31 03:01:31.661629', job_id='50303', GAL2='1.11', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630404091.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1018' AND source_name='4FGL J0910.8+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 03:01:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 50303: <4FGL_J0910.8+3859_daily_bin1018> in cluster <slac> Done

Job <4FGL_J0910.8+3859_daily_bin1018> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 02:45:44 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 02:45:46 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:45:46 2021
Terminated at Tue Aug 31 03:01:32 2021
Results reported at Tue Aug 31 03:01:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0910.8+3859_daily_bin1018 137.709 38.9999 503193601 503452801 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 :                                   806.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            948 sec.

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

