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


Performing analysis on: 4FGL_J0910.8+3859_daily_bin299
RA = 137.709, Dec = 38.9999
tmin = 316828801, tmax = 317088001
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='46943', job_status='RUN', time_executed='2021-08-31 02:36:18.412880', time_epoch_executed='1630402578.41' WHERE source_name='4FGL J0910.8+3859' and cadence='daily' and bin_id='299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46943

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46943/ft1_4FGL_J0910.8+3859_daily_bin299.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46943/ft2_4FGL_J0910.8+3859_daily_bin299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46943/ft1_4FGL_J0910.8+3859_daily_bin299.fits outfile=/scratch/kocevski/46943/ft1_filteredMKT_4FGL_J0910.8+3859_daily_bin299.fits ra=137.709 dec=38.9999 rad=12.0 tmin=316828801.0 tmax=317088001.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.93
user 3.24
sys 0.67

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46943/ft1_filtered_4FGL_J0910.8+3859_daily_bin299.fits" evtable="EVENTS" scfile=/scratch/kocevski/46943/ft2_4FGL_J0910.8+3859_daily_bin299.fits sctable="SC_DATA" outfile=/scratch/kocevski/46943/ltcube_316828801_317088001_4FGL_J0910.8+3859_daily_bin299.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/46943/ft2_4FGL_J0910.8+3859_daily_bin299.fits
.....................!
real 14.58
user 13.61
sys 0.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46943/ft1_filtered_4FGL_J0910.8+3859_daily_bin299.fits evtable="EVENTS" scfile=/scratch/kocevski/46943/ft2_4FGL_J0910.8+3859_daily_bin299.fits sctable="SC_DATA" expcube=/scratch/kocevski/46943/ltcube_316828801_317088001_4FGL_J0910.8+3859_daily_bin299.fits outfile=/scratch/kocevski/46943/expmap_316828801_317088001_4FGL_J0910.8+3859_daily_bin299.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/46943/ltcube_316828801_317088001_4FGL_J0910.8+3859_daily_bin299.fits
.....................!
real 191.78
user 185.73
sys 5.56

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/46943/ft1_filtered_4FGL_J0910.8+3859_daily_bin299.fits scfile=/scratch/kocevski/46943/ft2_4FGL_J0910.8+3859_daily_bin299.fits outfile=/scratch/kocevski/46943/cmap_316828801_317088001_4FGL_J0910.8+3859_daily_bin299.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 1.12
user 0.38
sys 0.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46943/ft1_filtered_4FGL_J0910.8+3859_daily_bin299.fits scfile=/scratch/kocevski/46943/ft2_4FGL_J0910.8+3859_daily_bin299.fits outfile=/scratch/kocevski/46943/cmap_HighResolution_316828801_317088001_4FGL_J0910.8+3859_daily_bin299.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 1.09
user 0.38
sys 0.63

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5806       1.0000         .10000E-03   10000.    
     2 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2857       1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.764       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10728E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.1464       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    102.57       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2811       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.1500       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1370       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .35073E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5368       1.0000         .10000E-03   10000.    
    22 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.3817       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .70037       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3246       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=   5903.257     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3429 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5801        6.3879       -.84457E-06   -.20950E-04
   2  norm          .10000E-03    .19688       -.33730E-06** at limit **
   3  Prefactor     .10000E-03    8.9713       -.10258E-05** at limit **
   4  Prefactor     3.2877        3.9251       -.13740E-05   -.71669E-03
   5  Prefactor     36.802        36.458        .50081E-04    .12575E-03
   6  Prefactor     .10002E-03    10.597       -.61760E-05** at limit **
   7  norm          8.1469        7.6554        .76155E-06   -.12269E-03
   8  Prefactor     .10000E-03    1.1628        .38049E-07** at limit **
   9  Prefactor     .10000E-03    11.240       -.28438E-05** at limit **
  10  Prefactor     102.56        89.366       -.79608E-05   -.13644E-04
  11  Prefactor     4.2819        5.0323        .68344E-06   -.53592E-03
  12  Prefactor     .10000E-03    13.356        .36403E-05** at limit **
  13  Prefactor     .10000E-03    .72987        .33815E-08** at limit **
  14  norm          4.1503        2.0810        .22144E-06   -.57974E-04
  15  Prefactor     .10000E-03    6.5380        .10880E-05** at limit **
  16  norm          1.1370        .53987        .15283E-06   -.10672E-02
  17  Prefactor     .10000E-03    2.1093        .13302E-06** at limit **
  18  norm          .10001E-03    5.0491        .18181E-05** at limit **
  19  Prefactor     .10000E-03    .95293        .51376E-07** at limit **
  20  Prefactor     .10000E-03    3.6876       -.24264E-06** at limit **
  21  Prefactor     6.5431        9.4824        .79092E-06   -.68989E-04
  22  norm          .10000E-03    3.8643        .65956E-06** at limit **
  23  Prefactor     .10000E-03    6.2169       -.21361E-05** at limit **
  24  Prefactor     .10000E-03    7.9177        .37153E-05** at limit **
  25  Prefactor     7.3896        13.974        .58509E-05   -.10340E-03
  26  Normalizat    .70017        .17586       -.62765E-05   -.12055E-03
  27  Prefactor     1.3246        .18060       -.27216E-05   -.13140E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.58008
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.28774
  Prefactor  = 36.8022
  Prefactor  = 0.000100018
  norm       = 8.14686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 102.565
  Prefactor  = 4.28187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.15032
  Prefactor  = 0.0001
  norm       = 1.13697
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.54306
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.38965
  Normalizat = 0.700172
  Prefactor  = 1.32459
 **********
 **   18 **HESSE 
 **********

 FCN=   5903.257     FROM HESSE     STATUS=OK           482 CALLS     3911 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5801        6.3574        .17006E-03   -1.5235    
   2  norm          .10000E-03    .22867        .66229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.9898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2877        3.9028        .15180E-03   -1.5345    
   5  Prefactor     36.802        36.498        .66098E-04   -1.4494    
   6  Prefactor     .10002E-03    10.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.1469        7.6425        .14047E-03   -1.5137    
   8  Prefactor     .10000E-03    1.1812        .80813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     102.56        89.310        .39700E-04   -1.3679    
  11  Prefactor     4.2819        5.0247        .17603E-03   -1.5294    
  12  Prefactor     .10000E-03    13.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .73279        .64085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.1503        2.0786        .76086E-04   -1.5300    
  15  Prefactor     .10000E-03    6.5436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1370        .53234        .36793E-04   -1.5495    
  17  Prefactor     .10000E-03    2.1496        .21615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    22.457        .33193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .98452        .14633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.8112        .28776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.5431        9.4736        .15697E-03   -1.5196    
  22  norm          .10000E-03    3.8648        .14751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.2194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.9218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.3896        13.974        .14762E-03   -1.5164    
  26  Normalizat    .70017        .20099        .28914E-03   -1.0389    
  27  Prefactor     1.3246        .20914        .23126E-03   -.82579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99108e-09
Minuit parameter uncertainties:
  1  6.35812
  2  1.5538e-05
  3  0.000210595
  4  3.90307
  5  36.5201
  6  0.00087817
  7  7.64342
  8  5.08129e-06
  9  5.07063e-05
  10  89.4274
  11  5.02523
  12  1.05324e-05
  13  7.92771e-08
  14  2.07865
  15  7.69522e-06
  16  0.532337
  17  1.71378e-05
  18  0.00083546
  19  6.9585e-06
  20  5.2854e-05
  21  9.47575
  22  3.81133e-06
  23  1.39039e-05
  24  1.29296e-05
  25  13.9802
  26  0.201202
  27  0.209271
Done.

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

Extracting fit parameters...

4FGL J0910.8+3859
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  1.053e-05  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.325e+00  2.093e-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:  7.002e-01  2.012e-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.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/46943/likelihoodResults_316828801_317088001_4FGL_J0910.8+3859_daily_bin299.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) = 5903.25691281
delta logL = -0.000355054318788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5903.25655772
delta logL = 3.06354195345e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9726       1.0000          .0000       10.000    
     3 'Normalizat'    .70019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3246       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=   5903.257     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      248 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10116E-03    102.74        .18142E-02** at limit **
   2  Index         1.9221        8.7768        .50000        .11845E-04
   3  Normalizat    .70017        .11775E-01    .28914E-03    .70381E-05
   4  Prefactor     1.3246        .12619E-01    .23126E-03    .63907E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101156
  Index      = 1.9221
  Normalizat = 0.700174
  Prefactor  = 1.32459
 **********
 **   18 **HESSE 
 **********

 FCN=   5903.257     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10116E-03    445.84        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9221        7.5016        .50000       -.66312    
   3  Normalizat    .70017        .25348E-01    .11566E-04   -1.0389    
   4  Prefactor     1.3246        .27165E-01    .92505E-05   -.82579    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09125e-08
Minuit parameter uncertainties:
  1  0.045751
  2  556.002
  3  0.0253482
  4  0.0271654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46943': 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) = 5903.25655755
delta logL = 2.04696334549e-07

Extracting fit parameters...

4FGL J0910.8+3859
   Spectrum: PowerLaw
318    Prefactor:  1.012e-04  4.575e-02  1.000e-04  1.000e+04 ( 1.000e-14)
319        Index:  1.922e+00  5.560e+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.325e+00  2.717e-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:  7.002e-01  2.535e-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/46943/cmap_HighResolution_316828801_317088001_4FGL_J0910.8+3859_daily_bin299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-03', job_status='DONE', photon_flux_upper_limit='3.99e-08', time_completed='2021-08-31 02:49:41.367258', job_id='46943', GAL2='1.32', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630403381.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='2.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='299' AND source_name='4FGL J0910.8+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 02:49:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 46943: <4FGL_J0910.8+3859_daily_bin299> in cluster <slac> Done

Job <4FGL_J0910.8+3859_daily_bin299> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 02:35:51 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 02:35:52 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:35:52 2021
Terminated at Tue Aug 31 02:49:42 2021
Results reported at Tue Aug 31 02:49:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0910.8+3859_daily_bin299 137.709 38.9999 316828801 317088001 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 :                                   807.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

