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


Performing analysis on: 4FGL_J0910.8+3859_daily_bin919
RA = 137.709, Dec = 38.9999
tmin = 477532801, tmax = 477792001
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='50125', job_status='RUN', time_executed='2021-08-31 02:46:07.462526', time_epoch_executed='1630403167.46' WHERE source_name='4FGL J0910.8+3859' and cadence='daily' and bin_id='919'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/50125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/50125/ft1_4FGL_J0910.8+3859_daily_bin919.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/50125/ft2_4FGL_J0910.8+3859_daily_bin919.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/50125/ft1_4FGL_J0910.8+3859_daily_bin919.fits outfile=/scratch/kocevski/50125/ft1_filteredMKT_4FGL_J0910.8+3859_daily_bin919.fits ra=137.709 dec=38.9999 rad=12.0 tmin=477532801.0 tmax=477792001.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 4.04
user 3.35
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/50125/ft1_filtered_4FGL_J0910.8+3859_daily_bin919.fits" evtable="EVENTS" scfile=/scratch/kocevski/50125/ft2_4FGL_J0910.8+3859_daily_bin919.fits sctable="SC_DATA" outfile=/scratch/kocevski/50125/ltcube_477532801_477792001_4FGL_J0910.8+3859_daily_bin919.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/50125/ft2_4FGL_J0910.8+3859_daily_bin919.fits
.....................!
real 12.42
user 11.47
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/50125/ft1_filtered_4FGL_J0910.8+3859_daily_bin919.fits evtable="EVENTS" scfile=/scratch/kocevski/50125/ft2_4FGL_J0910.8+3859_daily_bin919.fits sctable="SC_DATA" expcube=/scratch/kocevski/50125/ltcube_477532801_477792001_4FGL_J0910.8+3859_daily_bin919.fits outfile=/scratch/kocevski/50125/expmap_477532801_477792001_4FGL_J0910.8+3859_daily_bin919.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/50125/ltcube_477532801_477792001_4FGL_J0910.8+3859_daily_bin919.fits
.....................!
real 193.96
user 185.22
sys 4.43

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/50125/ft1_filtered_4FGL_J0910.8+3859_daily_bin919.fits scfile=/scratch/kocevski/50125/ft2_4FGL_J0910.8+3859_daily_bin919.fits outfile=/scratch/kocevski/50125/cmap_477532801_477792001_4FGL_J0910.8+3859_daily_bin919.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.78
user 0.38
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/50125/ft1_filtered_4FGL_J0910.8+3859_daily_bin919.fits scfile=/scratch/kocevski/50125/ft2_4FGL_J0910.8+3859_daily_bin919.fits outfile=/scratch/kocevski/50125/cmap_HighResolution_477532801_477792001_4FGL_J0910.8+3859_daily_bin919.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.78
user 0.38
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4326       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3252       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.918       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9534       1.0000         .10000E-03   10000.    
     7 'norm      '    6.9837       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14271E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0108       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .67903E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5480       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5088       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0044       1.0000         .10000E-03   10000.    
    18 'norm      '    6.9487       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4429       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4841       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.219       1.0000         .10000E-03   10000.    
    22 'norm      '    18.944       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .91698       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2455       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .66207       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=   5864.037     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     2876 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9468       -.40052E-07** at limit **
   2  norm          1.4326        .64331       -.19183E-07    .59631E-03
   3  Prefactor     .10000E-03    9.0415       -.26999E-06** at limit **
   4  Prefactor     3.3256        2.7116       -.65308E-07    .46883E-03
   5  Prefactor     19.923        20.169       -.16917E-06    .46956E-04
   6  Prefactor     5.9504        12.389       -.12082E-06    .20084E-03
   7  norm          6.9824        6.1657       -.36224E-06    .19045E-03
   8  Prefactor     .10000E-03    1.4830        .14409E-05** at limit **
   9  Prefactor     .95666        133.26       -.27443E-04   -.70806E-05
  10  Prefactor     .10000E-03    21.038        .30328E-05** at limit **
  11  Prefactor     .10014E-03    8.7920        .61428E-05** at limit **
  12  Prefactor     .10000E-03    23.535       -.23914E-05** at limit **
  13  Prefactor     3.5481        3.2662        .23457E-06    .13196E-02
  14  norm          .10000E-03    .52316       -.44109E-07** at limit **
  15  Prefactor     .10000E-03    11.288       -.64931E-06** at limit **
  16  norm          1.5095        .87126        .91514E-07    .47846E-02
  17  Prefactor     .99917        4.9525        .61872E-06    .12502E-02
  18  norm          6.9466        6.3192       -.23516E-07    .39207E-03
  19  Prefactor     1.4432        1.7936        .10984E-06    .79135E-03
  20  Prefactor     1.4846        2.9039        .25376E-06    .72392E-03
  21  Prefactor     14.221        11.220        .12573E-06    .16294E-03
  22  norm          18.947        15.258        .38460E-07   -.27080E-04
  23  Prefactor     .10000E-03    10.197        .89197E-06** at limit **
  24  Prefactor     .91584        14.205        .62158E-06    .48881E-05
  25  Prefactor     .10000E-03    3.9171       -.75891E-07** at limit **
  26  Normalizat    1.2457        .18120        .11936E-05    .58116E-03
  27  Prefactor     .66203        .17199        .89350E-06    .47860E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.43258
  Prefactor  = 0.0001
  Prefactor  = 3.32561
  Prefactor  = 19.9233
  Prefactor  = 5.95039
  norm       = 6.98239
  Prefactor  = 0.000100003
  Prefactor  = 0.956658
  Prefactor  = 0.0001
  Prefactor  = 0.000100138
  Prefactor  = 0.0001
  Prefactor  = 3.54806
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50948
  Prefactor  = 0.999172
  norm       = 6.94658
  Prefactor  = 1.44322
  Prefactor  = 1.48458
  Prefactor  = 14.221
  norm       = 18.9467
  Prefactor  = 0.0001
  Prefactor  = 0.915839
  Prefactor  = 0.0001
  Normalizat = 1.24567
  Prefactor  = 0.662032
 **********
 **   18 **HESSE 
 **********

 FCN=   5864.037     FROM HESSE     STATUS=OK           500 CALLS     3376 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9555        .12834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4326        .64180        .39338E-04   -1.5469    
   3  Prefactor     .10000E-03    9.0921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3256        2.7060        .10900E-03   -1.5343    
   5  Prefactor     19.923        20.135        .89744E-04   -1.4815    
   6  Prefactor     5.9504        12.382        .16457E-03   -1.5220    
   7  norm          6.9824        6.1334        .15181E-03   -1.5179    
   8  Prefactor     .10000E-03    12.404        .15251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .95666        190.99        .65931E-02   -1.5512    
  10  Prefactor     .10000E-03    21.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10014E-03    36.824        .21170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5481        3.2480        .12332E-03   -1.5331    
  14  norm          .10000E-03    .52522        .54066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5095        .95630        .33183E-04   -1.5462    
  17  Prefactor     .99917        7.8744        .19018E-02   -1.5508    
  18  norm          6.9466        6.3101        .15219E-03   -1.5181    
  19  Prefactor     1.4432        1.7646        .10715E-03   -1.5468    
  20  Prefactor     1.4846        2.8734        .17627E-03   -1.5464    
  21  Prefactor     14.221        11.219        .10622E-03   -1.4954    
  22  norm          18.947        15.326        .92021E-04   -1.4837    
  23  Prefactor     .10000E-03    10.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .91584        67.398        .55340E-02   -1.5517    
  25  Prefactor     .10000E-03    3.9276        .14803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2457        .21461        .22144E-03   -.85203    
  27  Prefactor     .66203        .20321        .29296E-03   -1.0503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68315e-08
Minuit parameter uncertainties:
  1  4.72546e-06
  2  0.641806
  3  1.14312e-05
  4  2.70611
  5  20.1418
  6  12.387
  7  6.13393
  8  0.000389349
  9  27.121
  10  0.000189734
  11  0.00450352
  12  0.000172433
  13  3.24812
  14  1.64064e-06
  15  3.90905e-05
  16  0.956314
  17  5.61069
  18  6.31069
  19  1.76464
  20  2.87365
  21  11.2208
  22  15.3291
  23  3.10053e-06
  24  15.7308
  25  1.11226e-05
  26  0.214766
  27  0.203442
Done.

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

Extracting fit parameters...

4FGL J0910.8+3859
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  1.724e-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:  6.620e-01  2.034e-01  0.000e+00  1.000e+01 ( 1.000e+00)
637        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
638        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
635   Normalization:  1.246e+00  2.148e-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: 5.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/50125/likelihoodResults_477532801_477792001_4FGL_J0910.8+3859_daily_bin919.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) = 5864.03726712
delta logL = -0.000199736795366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5864.03706771
delta logL = -3.27818270307e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10784E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1789       1.0000          .0000       10.000    
     3 'Normalizat'    1.2457       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66203       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=   5864.037     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      245 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.262        .90712E-02** at limit **
   2  Index         2.1645        7.2764        .50000        .51268E-05
   3  Normalizat    1.2457        .32240E-02    .50088E-01    .26389E-05
   4  Prefactor     .66203        .32245E-02    .66208E-01    .22661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1645
  Normalizat = 1.24567
  Prefactor  = 0.662031
 **********
 **   18 **HESSE 
 **********

 FCN=   5864.037     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      278 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    80.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1645        8.6523        .50000       -.60298    
   3  Normalizat    1.2457        .82674E-02    .22144E-03   -.85203    
   4  Prefactor     .66203        .82572E-02    .29296E-03   -1.0503    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.36665e-08
Minuit parameter uncertainties:
  1  6.89949e-05
  2  122.341
  3  0.0082674
  4  0.00825721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/50125': 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) = 5864.03706752
delta logL = -1.33419234771e-07

Extracting fit parameters...

4FGL J0910.8+3859
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  6.899e-05  1.000e-04  1.000e+04 ( 1.000e-14)
319        Index:  2.165e+00  1.223e+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:  6.620e-01  8.257e-03  0.000e+00  1.000e+01 ( 1.000e+00)
637        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
638        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
635   Normalization:  1.246e+00  8.267e-03  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/50125/cmap_HighResolution_477532801_477792001_4FGL_J0910.8+3859_daily_bin919.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='5.17e-08', time_completed='2021-08-31 02:58:44.094994', job_id='50125', GAL2='0.66', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630403924.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='-1.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='919' AND source_name='4FGL J0910.8+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 02:58:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 50125: <4FGL_J0910.8+3859_daily_bin919> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0910.8+3859_daily_bin919 137.709 38.9999 477532801 477792001 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 :                                   754.10 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             325.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

