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


Performing analysis on: 4FGL_J0910.8+3859_daily_bin58
RA = 137.709, Dec = 38.9999
tmin = 254361601, tmax = 254620801
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='45474', job_status='RUN', time_executed='2021-08-31 02:31:46.415136', time_epoch_executed='1630402306.42' WHERE source_name='4FGL J0910.8+3859' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45474

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45474/ft1_4FGL_J0910.8+3859_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45474/ft2_4FGL_J0910.8+3859_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45474/ft1_4FGL_J0910.8+3859_daily_bin58.fits outfile=/scratch/kocevski/45474/ft1_filteredMKT_4FGL_J0910.8+3859_daily_bin58.fits ra=137.709 dec=38.9999 rad=12.0 tmin=254361601.0 tmax=254620801.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.90
user 1.23
sys 0.59

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/45474/ft2_4FGL_J0910.8+3859_daily_bin58.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/45474/ft1_filteredMKT_4FGL_J0910.8+3859_daily_bin58.fits evtable="EVENTS" outfile="/scratch/kocevski/45474/ft1_filtered_4FGL_J0910.8+3859_daily_bin58.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.93
user 0.32
sys 0.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45474/ft1_filtered_4FGL_J0910.8+3859_daily_bin58.fits" evtable="EVENTS" scfile=/scratch/kocevski/45474/ft2_4FGL_J0910.8+3859_daily_bin58.fits sctable="SC_DATA" outfile=/scratch/kocevski/45474/ltcube_254361601_254620801_4FGL_J0910.8+3859_daily_bin58.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/45474/ft2_4FGL_J0910.8+3859_daily_bin58.fits
.....................!
real 12.99
user 12.14
sys 0.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45474/ft1_filtered_4FGL_J0910.8+3859_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/45474/ft2_4FGL_J0910.8+3859_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/45474/ltcube_254361601_254620801_4FGL_J0910.8+3859_daily_bin58.fits outfile=/scratch/kocevski/45474/expmap_254361601_254620801_4FGL_J0910.8+3859_daily_bin58.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/45474/ltcube_254361601_254620801_4FGL_J0910.8+3859_daily_bin58.fits
.....................!
real 191.81
user 185.62
sys 5.80

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/45474/ft1_filtered_4FGL_J0910.8+3859_daily_bin58.fits scfile=/scratch/kocevski/45474/ft2_4FGL_J0910.8+3859_daily_bin58.fits outfile=/scratch/kocevski/45474/cmap_254361601_254620801_4FGL_J0910.8+3859_daily_bin58.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.28
user 0.36
sys 0.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/45474/ft1_filtered_4FGL_J0910.8+3859_daily_bin58.fits scfile=/scratch/kocevski/45474/ft2_4FGL_J0910.8+3859_daily_bin58.fits outfile=/scratch/kocevski/45474/cmap_HighResolution_254361601_254620801_4FGL_J0910.8+3859_daily_bin58.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.19
user 0.38
sys 0.55

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0976       1.0000         .10000E-03   10000.    
     2 'norm      '    .82672       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.503       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3566       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.058       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0724       1.0000         .10000E-03   10000.    
     7 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16139E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12665E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7340       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .94559       1.0000         .10000E-03   10000.    
    18 'norm      '    19.567       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.373       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4313       1.0000         .10000E-03   10000.    
    22 'norm      '    .24952E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93491       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83629       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=   4618.268     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     2854 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0962        3.6648        .43073E-05    .40956E-02
   2  norm          .82682        .73961       -.19820E-07    .21344E-02
   3  Prefactor     32.498        3.2354        .27228E-05   -.38406E-04
   4  Prefactor     2.3569        2.5522       -.54010E-06   -.38277E-03
   5  Prefactor     23.070        5.7424       -.60932E-05    .14290E-02
   6  Prefactor     9.0736        7.0350       -.11573E-04   -.37395E-02
   7  norm          .10000E-03    4.5014        .63322E-06** at limit **
   8  Prefactor     .10000E-03    2.1876       -.30999E-06** at limit **
   9  Prefactor     .10001E-03    3.1324       -.35096E-06** at limit **
  10  Prefactor     .14220E-03    30.642        .21425E-04** at limit **
  11  Prefactor     .10000E-03    10.066        .27427E-05** at limit **
  12  Prefactor     .13415E-02    78.204       -.71425E-04** at limit **
  13  Prefactor     .10013E-03    4.6886       -.10157E-04** at limit **
  14  norm          .10000E-03    .91268        .19033E-06** at limit **
  15  Prefactor     .10007E-03    3.4701        .46980E-05** at limit **
  16  norm          2.7326        1.1945       -.23251E-06    .23380E-03
  17  Prefactor     .95179        12.352        .33210E-05    .26144E-04
  18  norm          19.555        7.7258        .69162E-05    .11320E-01
  19  Prefactor     .10000E-03    3.2804       -.71866E-08** at limit **
  20  Prefactor     13.373        5.6539        .50819E-05    .43781E-02
  21  Prefactor     5.4317        1.0387        .22304E-06    .11824E-03
  22  norm          .13186E-03    313.06       -.13411E-04** at limit **
  23  Prefactor     .10005E-03    16.768       -.11593E-04** at limit **
  24  Prefactor     .10005E-03    12.313        .15668E-04** at limit **
  25  Prefactor     .10002E-03    3.5512       -.53336E-05** at limit **
  26  Normalizat    .93470        .21913       -.80675E-05   -.12738E-03
  27  Prefactor     .83636        .21621        .49817E-05   -.30549E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.0962
  norm       = 0.826824
  Prefactor  = 32.4982
  Prefactor  = 2.35685
  Prefactor  = 23.07
  Prefactor  = 9.07363
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000142197
  Prefactor  = 0.000100002
  Prefactor  = 0.00134149
  Prefactor  = 0.000100134
  norm       = 0.0001
  Prefactor  = 0.000100069
  norm       = 2.73263
  Prefactor  = 0.951788
  norm       = 19.5554
  Prefactor  = 0.0001
  Prefactor  = 13.3735
  Prefactor  = 5.43173
  norm       = 0.000131859
  Prefactor  = 0.000100053
  Prefactor  = 0.000100051
  Prefactor  = 0.000100019
  Normalizat = 0.934699
  Prefactor  = 0.836363
 **********
 **   18 **HESSE 
 **********

 FCN=   4618.268     FROM HESSE     STATUS=OK           574 CALLS     3428 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0962        11.659        .33220E-02   -1.5105    
   2  norm          .82682        .82638        .11959E-01   -1.5526    
   3  Prefactor     32.498        20.901        .17571E-02   -1.4567    
   4  Prefactor     2.3569        2.6866        .66746E-02   -1.5401    
   5  Prefactor     23.070        25.956        .20854E-02   -1.4747    
   6  Prefactor     9.0736        15.012        .33266E-02   -1.5105    
   7  norm          .10000E-03    4.4741        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1547        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    12.198        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .14220E-03    340.27        .10206E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3307        .56573E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13415E-02    36.739        .13773       -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10013E-03    2.3509        .60107E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .88437        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10007E-03    12.479        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7326        1.4856        .61564E-02   -1.5377    
  17  Prefactor     .95179        12.434        .41122E-01   -1.5513    
  18  norm          19.555        11.493        .22636E-02   -1.4823    
  19  Prefactor     .10000E-03    3.1793        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.373        5.7208        .27383E-02   -1.4976    
  21  Prefactor     5.4317        7.7972        .43106E-02   -1.5242    
  22  norm          .13186E-03    15.507        .91471E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10005E-03    17.072        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10005E-03    14.353        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10002E-03    11.606        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .93470        .21118        .45346E-01   -.95251    
  27  Prefactor     .83636        .19158        .44188E-01   -.98402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96042e-07
Minuit parameter uncertainties:
  1  11.662
  2  0.82639
  3  20.9058
  4  2.68671
  5  25.9682
  6  15.0186
  7  8.36585e-05
  8  3.45491e-05
  9  0.000510788
  10  0.241033
  11  0.000143673
  12  0.4274
  13  0.00112132
  14  1.03504e-06
  15  0.00186091
  16  1.48559
  17  6.88167
  18  11.4941
  19  2.09363e-05
  20  5.72099
  21  7.79868
  22  0.0444647
  23  0.00190275
  24  0.00170691
  25  0.000949201
  26  0.211367
  27  0.191731
Done.

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

Extracting fit parameters...

4FGL J0910.8+3859
   Spectrum: PowerLaw
318    Prefactor:  1.341e-03  4.274e-01  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.364e-01  1.917e-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:  9.347e-01  2.114e-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: 6.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/45474/likelihoodResults_254361601_254620801_4FGL_J0910.8+3859_daily_bin58.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) = 4618.26849066
delta logL = 3.27418092638e-11

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4618.26849066
delta logL = 6.27551344223e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13415E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9965       1.0000          .0000       10.000    
     3 'Normalizat'    .93470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83636       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.

 FCN=   4617.964     FROM MIGRAD    STATUS=CONVERGED    134 CALLS      319 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62416        46.305        .10278E-01   -.23454E-03
   2  Index         3.7937        3.6207        .12647        .53714E-04
   3  Normalizat    .88704        .13778        .45343E-01    .27902E-03
   4  Prefactor     .86252        .84020E-01    .44189E-01    .32960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.624158
  Index      = 3.79373
  Normalizat = 0.887043
  Prefactor  = 0.862515
 **********
 **   18 **HESSE 
 **********

 FCN=   4617.964     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      348 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62416        58.426        .72852E-04   -1.5866    
   2  Index         3.7937        6.8490        .44416E-02   -.24366    
   3  Normalizat    .88704        .21595        .24511E-03   -.96917    
   4  Prefactor     .86252        .20559        .25454E-03   -.97463    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.32837e-09
Minuit parameter uncertainties:
  1  12.0888
  2  7.39043
  3  0.216157
  4  0.205771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45474': 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) = 4617.96429934
delta logL = 0.304191314705

Extracting fit parameters...

4FGL J0910.8+3859
   Spectrum: PowerLaw
318    Prefactor:  6.242e-01  1.209e+01  1.000e-04  1.000e+04 ( 1.000e-14)
319        Index:  3.794e+00  7.390e+00  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.625e-01  2.058e-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.870e-01  2.162e-01  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/45474/cmap_HighResolution_254361601_254620801_4FGL_J0910.8+3859_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.36e-08', time_completed='2021-08-31 02:42:59.505378', job_id='45474', GAL2='0.86', fit_tolerance='1e-08', EG2='0.89', EG='0.93', time_epoch_completed='1630402979.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.04e-01', ts2='0.64', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='58' AND source_name='4FGL J0910.8+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 02:42:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 45474: <4FGL_J0910.8+3859_daily_bin58> in cluster <slac> Done

Job <4FGL_J0910.8+3859_daily_bin58> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 02:31:25 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 02:31:26 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:31:26 2021
Terminated at Tue Aug 31 02:43:00 2021
Results reported at Tue Aug 31 02:43:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0910.8+3859_daily_bin58 137.709 38.9999 254361601 254620801 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 :                                   675.36 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             301.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            695 sec.

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

