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


Performing analysis on: 4FGL_J0910.8+3859_daily_bin1
RA = 137.709, Dec = 38.9999
tmin = 239587201, tmax = 239846401
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='45383', job_status='RUN', time_executed='2021-08-31 02:33:06.775402', time_epoch_executed='1630402386.78' WHERE source_name='4FGL J0910.8+3859' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45383

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45383/ft1_4FGL_J0910.8+3859_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45383/ft2_4FGL_J0910.8+3859_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45383/ft1_4FGL_J0910.8+3859_daily_bin1.fits outfile=/scratch/kocevski/45383/ft1_filteredMKT_4FGL_J0910.8+3859_daily_bin1.fits ra=137.709 dec=38.9999 rad=12.0 tmin=239587201.0 tmax=239846401.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.62
user 1.12
sys 0.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45383/ft1_filtered_4FGL_J0910.8+3859_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/45383/ft2_4FGL_J0910.8+3859_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/45383/ltcube_239587201_239846401_4FGL_J0910.8+3859_daily_bin1.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/45383/ft2_4FGL_J0910.8+3859_daily_bin1.fits
.....................!
real 12.67
user 12.02
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45383/ft1_filtered_4FGL_J0910.8+3859_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/45383/ft2_4FGL_J0910.8+3859_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/45383/ltcube_239587201_239846401_4FGL_J0910.8+3859_daily_bin1.fits outfile=/scratch/kocevski/45383/expmap_239587201_239846401_4FGL_J0910.8+3859_daily_bin1.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/45383/ltcube_239587201_239846401_4FGL_J0910.8+3859_daily_bin1.fits
.....................!
real 190.50
user 185.35
sys 4.54

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/45383/ft1_filtered_4FGL_J0910.8+3859_daily_bin1.fits scfile=/scratch/kocevski/45383/ft2_4FGL_J0910.8+3859_daily_bin1.fits outfile=/scratch/kocevski/45383/cmap_239587201_239846401_4FGL_J0910.8+3859_daily_bin1.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.88
user 0.37
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/45383/ft1_filtered_4FGL_J0910.8+3859_daily_bin1.fits scfile=/scratch/kocevski/45383/ft2_4FGL_J0910.8+3859_daily_bin1.fits outfile=/scratch/kocevski/45383/cmap_HighResolution_239587201_239846401_4FGL_J0910.8+3859_daily_bin1.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.88
user 0.37
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1721       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9961       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.089       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5312       1.0000         .10000E-03   10000.    
     7 'norm      '    4.1621       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3118       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.706       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.166       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15795E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.541       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24217E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2954       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12381E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5474       1.0000         .10000E-03   10000.    
    18 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .41263       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.0325       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.4753       1.0000         .10000E-03   10000.    
    22 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.818       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5828       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99834       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .59614       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=   4496.718     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3385 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6234       -.47922E-08** at limit **
   2  norm          1.1721        .51756       -.59399E-08    .20765E-04
   3  Prefactor     .10000E-03    3.7552       -.13584E-07** at limit **
   4  Prefactor     1.9958        2.3034        .70929E-07   -.66885E-04
   5  Prefactor     30.088        23.379       -.64063E-08    .15500E-04
   6  Prefactor     2.5310        5.6728        .21864E-06   -.61431E-04
   7  norm          4.1620        4.1882       -.58080E-06   -.25130E-03
   8  Prefactor     1.3115        2.6642        .22690E-06   -.35640E-04
   9  Prefactor     27.706        20.406        .41997E-08    .16659E-04
  10  Prefactor     25.166        53.079       -.17076E-06    .11960E-05
  11  Prefactor     .10000E-03    2.2296        .97616E-08** at limit **
  12  Prefactor     31.530        50.054        .13984E-05    .66456E-04
  13  Prefactor     .10000E-03    2.6500       -.53138E-06** at limit **
  14  norm          1.2953        1.2429       -.33269E-07    .89414E-05
  15  Prefactor     .10024E-03    30.717       -.25897E-05** at limit **
  16  norm          .10000E-03    .25179       -.16118E-06** at limit **
  17  Prefactor     1.5470        3.3312        .40237E-06    .19180E-03
  18  norm          .10000E-03    4.9787       -.37767E-07** at limit **
  19  Prefactor     .40905        2.8117        .82315E-06   -.15807E-03
  20  Prefactor     9.0323        5.1012        .33058E-06    .23935E-03
  21  Prefactor     7.4752        7.4139       -.46888E-07    .23153E-04
  22  norm          .10000E-03    23.074       -.53593E-06** at limit **
  23  Prefactor     .10000E-03    26.302        .48955E-06** at limit **
  24  Prefactor     21.824        30.487        .16948E-06    .17411E-04
  25  Prefactor     2.5819        11.520        .44490E-06   -.42821E-04
  26  Normalizat    .99836        .17285        .26262E-06    .21840E-03
  27  Prefactor     .59614        .16094       -.18793E-06    .12191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.17206
  Prefactor  = 0.0001
  Prefactor  = 1.99584
  Prefactor  = 30.0884
  Prefactor  = 2.53098
  norm       = 4.16202
  Prefactor  = 1.31147
  Prefactor  = 27.7064
  Prefactor  = 25.1661
  Prefactor  = 0.0001
  Prefactor  = 31.5297
  Prefactor  = 0.0001
  norm       = 1.2953
  Prefactor  = 0.00010024
  norm       = 0.0001
  Prefactor  = 1.54702
  norm       = 0.0001
  Prefactor  = 0.40905
  Prefactor  = 9.03232
  Prefactor  = 7.47518
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8245
  Prefactor  = 2.58194
  Normalizat = 0.998362
  Prefactor  = 0.596137
 **********
 **   18 **HESSE 
 **********

 FCN=   4496.718     FROM HESSE     STATUS=OK           504 CALLS     3889 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6390        .10603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1721        .51820        .31058E-04   -1.5491    
   3  Prefactor     .10000E-03    3.7584        .12685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9958        2.2823        .10431E-03   -1.5425    
   5  Prefactor     30.088        23.346        .73042E-04   -1.4610    
   6  Prefactor     2.5310        5.6386        .22936E-03   -1.5390    
   7  norm          4.1620        4.2293        .13473E-03   -1.5300    
   8  Prefactor     1.3115        2.6013        .14298E-03   -1.5479    
   9  Prefactor     27.706        20.406        .76110E-04   -1.4655    
  10  Prefactor     25.166        53.018        .79852E-04   -1.4704    
  11  Prefactor     .10000E-03    11.256        .19197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.530        49.062        .71345E-04   -1.4584    
  13  Prefactor     .10000E-03    7.6490        .19035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2953        1.2672        .70877E-04   -1.5480    
  15  Prefactor     .10024E-03    192.25        .58752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .30836        .61464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5470        3.0368        .14612E-03   -1.5459    
  18  norm          .10000E-03    4.9980        .14589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .40905        3.3529        .17676E-02   -1.5580    
  20  Prefactor     9.0323        5.0978        .10789E-03   -1.5107    
  21  Prefactor     7.4752        7.4184        .14669E-03   -1.5161    
  22  norm          .10000E-03    23.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.824        30.539        .85752E-04   -1.4773    
  25  Prefactor     2.5819        11.533        .25393E-03   -1.5387    
  26  Normalizat    .99836        .20072        .20274E-03   -.93085    
  27  Prefactor     .59614        .18601        .25910E-03   -1.0775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54828e-08
Minuit parameter uncertainties:
  1  5.09241e-07
  2  0.518203
  3  1.06555e-06
  4  2.28244
  5  23.3535
  6  5.63975
  7  4.22959
  8  2.6015
  9  20.4112
  10  53.1173
  11  7.04474e-05
  12  49.1246
  13  6.68506e-05
  14  1.26722
  15  0.01362
  16  4.14037e-06
  17  3.03713
  18  1.95998e-06
  19  2.34212
  20  5.09801
  21  7.41931
  22  7.25962e-05
  23  1.8767e-05
  24  30.5609
  25  10.9169
  26  0.200873
  27  0.186206
Done.

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

Extracting fit parameters...

4FGL J0910.8+3859
   Spectrum: PowerLaw
318    Prefactor:  3.153e+01  4.912e+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:  5.961e-01  1.862e-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.984e-01  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/45383/likelihoodResults_239587201_239846401_4FGL_J0910.8+3859_daily_bin1.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4494.9408671
delta logL = 1.77691925368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4494.89723509
delta logL = 1.82055126004

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1623       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6788       1.0000          .0000       10.000    
     3 'Normalizat'    .88612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66566       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=   4494.897     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      268 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1535        20.964        .70027E-02    .25346E-03
   2  Index         3.6803        1.9822        .59712E-01    .23823E-03
   3  Normalizat    .88608        .60025E-01    .44724E-01    .97391E-04
   4  Prefactor     .66581        .59202E-01    .41942E-01   -.15920E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.15352
  Index      = 3.68025
  Normalizat = 0.886084
  Prefactor  = 0.665809
 **********
 **   18 **HESSE 
 **********

 FCN=   4494.897     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      301 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     2.1535        32.868        .52863E-04   -1.5414    
   2  Index         3.6803        2.6572        .24401E-02   -.26711    
   3  Normalizat    .88608        .17885        .21345E-03   -.96951    
   4  Prefactor     .66581        .17798        .24598E-03   -1.0488    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.26492e-09
Minuit parameter uncertainties:
  1  16.837
  2  2.81422
  3  0.178967
  4  0.178127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45383': 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) = 4494.89723352
delta logL = 1.82055282852

Extracting fit parameters...

4FGL J0910.8+3859
   Spectrum: PowerLaw
318    Prefactor:  2.154e+00  1.684e+01  1.000e-04  1.000e+04 ( 1.000e-14)
319        Index:  3.680e+00  2.814e+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:  6.658e-01  1.781e-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.861e-01  1.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 137.709 39.000
Photon Index (Free Index): 3.68 +/- 2.81
Photon Flux (Free Index): 1.02e-07 +/- 6.02e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.22e-05

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/45383/cmap_HighResolution_239587201_239846401_4FGL_J0910.8+3859_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-03', comment='SUCCESS', energy_flux2='1.63e-05', dlogl='1.82e+00', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-08-31 02:44:34.398706', photon_index_error2='2.81', photon_index2='3.68', ts='0.59', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='8.87e-08', energy_flux_error2='1.22e-05', EG='1.00', time_epoch_completed='1630403074.4', return_code='0', job_id='45383', GAL2='0.67', EG2='0.89', return_code2='102', photon_flux_error2='6.02e-08', ts2='4.52', photon_index='2.00' WHERE bin_id='1' AND source_name='4FGL J0910.8+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 02:44:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 45383: <4FGL_J0910.8+3859_daily_bin1> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0910.8+3859_daily_bin1 137.709 38.9999 239587201 239846401 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 :                                   686.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

