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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin785
RA = 147.262, Dec = 40.6367
tmin = 442800001, tmax = 443059201
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='524785', job_status='RUN', time_executed='2021-09-01 03:10:41.621440', time_epoch_executed='1630491041.62' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524785

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524785/ft1_4FGL_J0949.0+4038_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524785/ft2_4FGL_J0949.0+4038_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524785/ft1_4FGL_J0949.0+4038_daily_bin785.fits outfile=/scratch/kocevski/524785/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin785.fits ra=147.262 dec=40.6367 rad=12.0 tmin=442800001.0 tmax=443059201.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.58
user 3.26
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/524785/ft2_4FGL_J0949.0+4038_daily_bin785.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524785/ft2_4FGL_J0949.0+4038_daily_bin785.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/524785/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin785.fits evtable="EVENTS" outfile="/scratch/kocevski/524785/ft1_filtered_4FGL_J0949.0+4038_daily_bin785.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.55
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524785/ft1_filtered_4FGL_J0949.0+4038_daily_bin785.fits" evtable="EVENTS" scfile=/scratch/kocevski/524785/ft2_4FGL_J0949.0+4038_daily_bin785.fits sctable="SC_DATA" outfile=/scratch/kocevski/524785/ltcube_442800001_443059201_4FGL_J0949.0+4038_daily_bin785.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/524785/ft2_4FGL_J0949.0+4038_daily_bin785.fits
.....................!
real 12.25
user 11.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524785/ft1_filtered_4FGL_J0949.0+4038_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/524785/ft2_4FGL_J0949.0+4038_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/524785/ltcube_442800001_443059201_4FGL_J0949.0+4038_daily_bin785.fits outfile=/scratch/kocevski/524785/expmap_442800001_443059201_4FGL_J0949.0+4038_daily_bin785.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/524785/ltcube_442800001_443059201_4FGL_J0949.0+4038_daily_bin785.fits
.....................!
real 190.79
user 185.67
sys 4.50

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 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J0949.0+4038 @ 147.262 40.6367

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/524785/ft1_filtered_4FGL_J0949.0+4038_daily_bin785.fits scfile=/scratch/kocevski/524785/ft2_4FGL_J0949.0+4038_daily_bin785.fits outfile=/scratch/kocevski/524785/cmap_442800001_443059201_4FGL_J0949.0+4038_daily_bin785.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=147.262 yref=40.6367 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.66
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524785/ft1_filtered_4FGL_J0949.0+4038_daily_bin785.fits scfile=/scratch/kocevski/524785/ft2_4FGL_J0949.0+4038_daily_bin785.fits outfile=/scratch/kocevski/524785/cmap_HighResolution_442800001_443059201_4FGL_J0949.0+4038_daily_bin785.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=147.262 yref=40.6367 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.82
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/524785/ft1_filtered_4FGL_J0949.0+4038_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/524785/ft2_4FGL_J0949.0+4038_daily_bin785.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/524785/Model_4FGL_J0949.0+4038_daily_bin785.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/524785/ft1_filtered_4FGL_J0949.0+4038_daily_bin785.fits.....................!
real 45.99
user 42.41
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524785/ft1_filtered_4FGL_J0949.0+4038_daily_bin785.fits', '/scratch/kocevski/524785/ft2_4FGL_J0949.0+4038_daily_bin785.fits', expMap='/scratch/kocevski/524785/expmap_442800001_443059201_4FGL_J0949.0+4038_daily_bin785.fits', expCube='/scratch/kocevski/524785/ltcube_442800001_443059201_4FGL_J0949.0+4038_daily_bin785.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524785/Model_4FGL_J0949.0+4038_daily_bin785.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0949.0+4038'

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  7.192e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.608e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/524785/ft1_filtered_4FGL_J0949.0+4038_daily_bin785.fits
Spacecraft file(s): /scratch/kocevski/524785/ft2_4FGL_J0949.0+4038_daily_bin785.fits
Exposure map: /scratch/kocevski/524785/expmap_442800001_443059201_4FGL_J0949.0+4038_daily_bin785.fits
Exposure cube: /scratch/kocevski/524785/ltcube_442800001_443059201_4FGL_J0949.0+4038_daily_bin785.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524785/Model_4FGL_J0949.0+4038_daily_bin785.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) = 4965.08681795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2871       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.771       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16278E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13590E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8982       1.0000         .10000E-03   10000.    
     9 'norm      '    7.4665       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6397       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9413       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .81436E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23151E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    23.822       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7629       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0324       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.2958       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.3737       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.003       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.8861       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .22375E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .67769       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1411       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4965.031     FROM MIGRAD    STATUS=CONVERGED    870 CALLS     4222 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0899       -.17643E-06** at limit **
   2  Prefactor     .10000E-03    22.381       -.72434E-06** at limit **
   3  Prefactor     3.2871        2.6936       -.22017E-07   -.47312E-05
   4  Prefactor     36.758        32.644       -.56983E-06   -.23710E-04
   5  Prefactor     .10000E-03    1.6636       -.45403E-07** at limit **
   6  Prefactor     .10000E-03    25.957        .71522E-06** at limit **
   7  norm          .10000E-03    .20997        .54012E-08** at limit **
   8  Prefactor     2.8984        2.7933        .54408E-07    .53860E-03
   9  norm          7.4633        10.007       -.17250E-06   -.59247E-05
  10  Prefactor     1.6371        2.8191        .95083E-07    .32286E-03
  11  Prefactor     9.9544        9.4285        .52761E-06    .59272E-03
  12  Prefactor     .10045E-03    26.653       -.66922E-05** at limit **
  13  norm          .10000E-03    7.0278       -.39474E-07** at limit **
  14  Prefactor     .10000E-03    70.451       -.23236E-05** at limit **
  15  Prefactor     .10010E-03    23.191        .81258E-05** at limit **
  16  Prefactor     .10000E-03    53.303        .30452E-05** at limit **
  17  Prefactor     .10000E-03    4.2132       -.67798E-07** at limit **
  18  norm          23.828        15.440       -.57336E-07    .16586E-03
  19  Prefactor     1.7660        6.3612        .11009E-05    .36695E-03
  20  Prefactor     .10000E-03    .86671       -.49784E-07** at limit **
  21  Prefactor     3.0329        5.2666       -.55846E-06    .65470E-04
  22  Prefactor     .10000E-03    17.903       -.13988E-06** at limit **
  23  norm          7.2959        2.9817       -.19045E-07    .38846E-04
  24  Prefactor     3.3727        5.3539        .10212E-05    .54196E-03
  25  norm          .10000E-03    5.1771       -.16860E-06** at limit **
  26  Prefactor     19.963        29.456        .19504E-05    .20429E-03
  27  Prefactor     2.8858        2.9350        .53411E-07    .87035E-04
  28  Prefactor     .10001E-03    7.8309        .38506E-05** at limit **
  29  Prefactor     .10000E-03    25.521        .51626E-06** at limit **
  30  Normalizat    .67762        .17506       -.63808E-06    .26879E-03
  31  Prefactor     1.1412        .19991        .12356E-05    .35307E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.2871
  Prefactor  = 36.7582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.89845
  norm       = 7.46329
  Prefactor  = 1.6371
  Prefactor  = 9.95435
  Prefactor  = 0.000100451
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 23.8276
  Prefactor  = 1.76596
  Prefactor  = 0.0001
  Prefactor  = 3.0329
  Prefactor  = 0.0001
  norm       = 7.29588
  Prefactor  = 3.37268
  norm       = 0.0001
  Prefactor  = 19.9633
  Prefactor  = 2.88582
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Normalizat = 0.677623
  Prefactor  = 1.14116
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.031     FROM HESSE     STATUS=OK           634 CALLS     4856 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6987        .14246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2871        2.6937        .10170E-03   -1.5345    
   4  Prefactor     36.758        32.542        .66092E-04   -1.4495    
   5  Prefactor     .10000E-03    10.275        .16427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .21003        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8984        2.7595        .10283E-03   -1.5367    
   9  norm          7.4633        9.8831        .14677E-03   -1.5162    
  10  Prefactor     1.6371        2.6665        .12931E-03   -1.5452    
  11  Prefactor     9.9544        9.6250        .12709E-03   -1.5077    
  12  Prefactor     .10045E-03    25.366        .76495E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.0409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    72.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10010E-03    41.176        .32879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    52.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2267        .14123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          23.828        15.354        .82069E-04   -1.4731    
  19  Prefactor     1.7660        6.1975        .29676E-03   -1.5442    
  20  Prefactor     .10000E-03    .87319        .64065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0329        5.1712        .16162E-03   -1.5360    
  22  Prefactor     .10000E-03    17.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.2959        2.9799        .75372E-04   -1.5168    
  24  Prefactor     3.3727        5.2999        .15863E-03   -1.5341    
  25  norm          .10000E-03    5.2176        .15663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.963        29.613        .89555E-04   -1.4814    
  27  Prefactor     2.8858        2.9285        .11772E-03   -1.5368    
  28  Prefactor     .10001E-03    10.158        .28629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    25.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .67762        .20653        .23888E-03   -1.0478    
  31  Prefactor     1.1412        .23843        .23950E-03   -.88162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10552e-09
Minuit parameter uncertainties:
  1  1.42412e-05
  2  2.33145e-05
  3  2.69377
  4  32.5573
  5  1.90873e-05
  6  0.000107043
  7  1.22646e-07
  8  2.75965
  9  9.8853
  10  2.66674
  11  9.62647
  12  0.00676995
  13  6.89265e-06
  14  0.000475722
  15  0.00405431
  16  0.000346227
  17  1.18413e-05
  18  15.357
  19  6.19975
  20  3.06514e-06
  21  5.17199
  22  7.60635e-05
  23  2.98
  24  5.30059
  25  2.8574e-05
  26  29.635
  27  2.92864
  28  0.000507532
  29  3.10721e-05
  30  0.206762
  31  0.238652
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  3.462e-04  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.608e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.141e+00  2.387e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  6.776e-01  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 147.262 40.637
Photon Flux Upper Limit: 7.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/524785/likelihoodResults_442800001_443059201_4FGL_J0949.0+4038_daily_bin785.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) = 4965.03140742
delta logL = -9.00314435057e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4965.03131739
delta logL = 6.98037183611e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5482       1.0000          .0000       10.000    
     3 'Normalizat'    .67763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1412       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4965.031     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7882.5        .90712E-02** at limit **
   2  Index         2.5408        6.5868        .50000        .12099E-05
   3  Normalizat    .67762        .58171E-01    .41991E-01    .22663E-04
   4  Prefactor     1.1412        .73893E-01    .54168E-01    .76387E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.54077
  Normalizat = 0.677624
  Prefactor  = 1.14115
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.031     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    114.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5408        6.0552        .50000       -.51421    
   3  Normalizat    .67762        .18222        .23888E-03   -1.0478    
   4  Prefactor     1.1412        .23286        .23950E-03   -.88162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81789e-12
Minuit parameter uncertainties:
  1  5.53662e-05
  2  6.41933
  3  0.182387
  4  0.233065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524785': 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): 0
logL (Free Index) = 4965.03131737
delta logL = 1.84681994142e-08

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  5.537e-05  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.541e+00  6.419e+00  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.141e+00  2.331e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  6.776e-01  1.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 147.262 40.637

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/524785/cmap_HighResolution_442800001_443059201_4FGL_J0949.0+4038_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', job_status='DONE', photon_flux_upper_limit='7.52e-08', time_completed='2021-09-01 03:25:02.155100', job_id='524785', GAL2='1.14', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630491902.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.85e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='785' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:25:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 524785: <4FGL_J0949.0+4038_daily_bin785> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin785> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 03:10:25 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:10:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 03:10:27 2021
Terminated at Wed Sep  1 03:25:02 2021
Results reported at Wed Sep  1 03:25:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin785 147.262 40.6367 442800001 443059201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0949.0+4038 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   854.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            877 sec.

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

