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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin1199
RA = 147.262, Dec = 40.6367
tmin = 550108801, tmax = 550368001
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='526603', job_status='RUN', time_executed='2021-09-01 03:15:53.077874', time_epoch_executed='1630491353.08' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/526603

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/526603/ft1_4FGL_J0949.0+4038_daily_bin1199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/526603/ft2_4FGL_J0949.0+4038_daily_bin1199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/526603/ft1_4FGL_J0949.0+4038_daily_bin1199.fits outfile=/scratch/kocevski/526603/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1199.fits ra=147.262 dec=40.6367 rad=12.0 tmin=550108801.0 tmax=550368001.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 2.96
user 2.68
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/526603/ft2_4FGL_J0949.0+4038_daily_bin1199.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/526603/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1199.fits evtable="EVENTS" outfile="/scratch/kocevski/526603/ft1_filtered_4FGL_J0949.0+4038_daily_bin1199.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/526603/ft1_filtered_4FGL_J0949.0+4038_daily_bin1199.fits" evtable="EVENTS" scfile=/scratch/kocevski/526603/ft2_4FGL_J0949.0+4038_daily_bin1199.fits sctable="SC_DATA" outfile=/scratch/kocevski/526603/ltcube_550108801_550368001_4FGL_J0949.0+4038_daily_bin1199.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/526603/ft2_4FGL_J0949.0+4038_daily_bin1199.fits
.....................!
real 13.20
user 12.74
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/526603/ft1_filtered_4FGL_J0949.0+4038_daily_bin1199.fits evtable="EVENTS" scfile=/scratch/kocevski/526603/ft2_4FGL_J0949.0+4038_daily_bin1199.fits sctable="SC_DATA" expcube=/scratch/kocevski/526603/ltcube_550108801_550368001_4FGL_J0949.0+4038_daily_bin1199.fits outfile=/scratch/kocevski/526603/expmap_550108801_550368001_4FGL_J0949.0+4038_daily_bin1199.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/526603/ltcube_550108801_550368001_4FGL_J0949.0+4038_daily_bin1199.fits
.....................!
real 190.61
user 184.76
sys 5.24

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/526603/ft1_filtered_4FGL_J0949.0+4038_daily_bin1199.fits scfile=/scratch/kocevski/526603/ft2_4FGL_J0949.0+4038_daily_bin1199.fits outfile=/scratch/kocevski/526603/cmap_550108801_550368001_4FGL_J0949.0+4038_daily_bin1199.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/526603/ft1_filtered_4FGL_J0949.0+4038_daily_bin1199.fits scfile=/scratch/kocevski/526603/ft2_4FGL_J0949.0+4038_daily_bin1199.fits outfile=/scratch/kocevski/526603/cmap_HighResolution_550108801_550368001_4FGL_J0949.0+4038_daily_bin1199.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.56
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/526603/ft1_filtered_4FGL_J0949.0+4038_daily_bin1199.fits', '/scratch/kocevski/526603/ft2_4FGL_J0949.0+4038_daily_bin1199.fits', expMap='/scratch/kocevski/526603/expmap_550108801_550368001_4FGL_J0949.0+4038_daily_bin1199.fits', expCube='/scratch/kocevski/526603/ltcube_550108801_550368001_4FGL_J0949.0+4038_daily_bin1199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/526603/Model_4FGL_J0949.0+4038_daily_bin1199.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/526603/ft1_filtered_4FGL_J0949.0+4038_daily_bin1199.fits
Spacecraft file(s): /scratch/kocevski/526603/ft2_4FGL_J0949.0+4038_daily_bin1199.fits
Exposure map: /scratch/kocevski/526603/expmap_550108801_550368001_4FGL_J0949.0+4038_daily_bin1199.fits
Exposure cube: /scratch/kocevski/526603/ltcube_550108801_550368001_4FGL_J0949.0+4038_daily_bin1199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/526603/Model_4FGL_J0949.0+4038_daily_bin1199.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) = 5349.13976722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2714       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.975       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2271       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.5237       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8214       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    16.327       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11470E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.164       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6034       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1748       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.965       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19441E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14472E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .72441       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.4593       1.0000         .10000E-03   10000.    
    25 'norm      '    .11666E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.0210       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99995       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1471       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=   5349.028     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     3587 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2720        3.7169        .58925E-09   -.28204E-04
   2  Prefactor     .10000E-03    48.818       -.44769E-05** at limit **
   3  Prefactor     11.975        5.9158       -.42518E-07   -.16628E-04
   4  Prefactor     .10000E-03    32.367        .59529E-05** at limit **
   5  Prefactor     4.2295        2.7451        .46706E-06   -.22664E-02
   6  Prefactor     .10000E-03    6.4163       -.10751E-05** at limit **
   7  norm          .10000E-03    .38191       -.24386E-07** at limit **
   8  Prefactor     .10000E-03    1.9811       -.42235E-07** at limit **
   9  norm          6.5268        8.2243       -.11390E-06   -.18031E-04
  10  Prefactor     .10000E-03    .73418       -.34163E-07** at limit **
  11  Prefactor     6.8239        13.753        .36892E-06   -.37686E-03
  12  Prefactor     .10000E-03    15.546        .42510E-05** at limit **
  13  norm          16.337        16.534        .69541E-06    .65150E-04
  14  Prefactor     .10000E-03    21.662       -.47407E-05** at limit **
  15  Prefactor     .10000E-03    6.5560        .90978E-06** at limit **
  16  Prefactor     24.162        27.130       -.13835E-05   -.20336E-05
  17  Prefactor     7.6051        10.724       -.11868E-07    .10707E-03
  18  norm          1.2667        46.500       -.38819E-05   -.67655E-04
  19  Prefactor     18.971        8.6774        .84302E-07    .22272E-05
  20  Prefactor     .10004E-03    1.3629       -.41797E-06** at limit **
  21  Prefactor     .10001E-03    3.2867       -.65920E-06** at limit **
  22  Prefactor     .10000E-03    13.948        .21478E-05** at limit **
  23  norm          .72397        1.6554        .13810E-06    .14147E-03
  24  Prefactor     5.4532        6.0504        .49333E-06    .63459E-03
  25  norm          .10001E-03    6.1007        .17267E-06** at limit **
  26  Prefactor     6.0227        23.227        .27544E-05    .29360E-04
  27  Prefactor     .10000E-03    2.2768       -.17195E-07** at limit **
  28  Prefactor     .10000E-03    2.6228       -.37131E-07** at limit **
  29  Prefactor     .10000E-03    28.265       -.35361E-06** at limit **
  30  Normalizat    .99950        .19772        .34977E-06    .22926E-03
  31  Prefactor     1.1474        .23114       -.52644E-06    .20463E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.27196
  Prefactor  = 0.0001
  Prefactor  = 11.9752
  Prefactor  = 0.0001
  Prefactor  = 4.22946
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.5268
  Prefactor  = 0.0001
  Prefactor  = 6.82392
  Prefactor  = 0.0001
  norm       = 16.337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.1622
  Prefactor  = 7.60512
  norm       = 1.26668
  Prefactor  = 18.971
  Prefactor  = 0.000100036
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.723969
  Prefactor  = 5.45322
  norm       = 0.000100006
  Prefactor  = 6.02269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.999503
  Prefactor  = 1.14744
 **********
 **   18 **HESSE 
 **********

 FCN=   5349.028     FROM HESSE     STATUS=OK           630 CALLS     4217 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2720        3.6769        .12491E-03   -1.5295    
   2  Prefactor     .10000E-03    48.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.975        5.9164        .11576E-03   -1.5016    
   4  Prefactor     .10000E-03    32.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2295        4.4667        .74439E-03   -1.5297    
   6  Prefactor     .10000E-03    6.4183        .18092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .90572        .82040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5144        .18237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.5268        8.2165        .15712E-03   -1.5197    
  10  Prefactor     .10000E-03    .73677        .61174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.8239        14.535        .76810E-03   -1.5185    
  12  Prefactor     .10000E-03    15.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.337        16.547        .99122E-04   -1.4899    
  14  Prefactor     .10000E-03    21.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.6498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.162        27.131        .81488E-04   -1.4724    
  17  Prefactor     7.6051        10.679        .14543E-03   -1.5156    
  18  norm          1.2667        48.368        .42270E-03   -1.5483    
  19  Prefactor     18.971        8.5973        .91970E-04   -1.4837    
  20  Prefactor     .10004E-03    12.541        .16323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    19.598        .21269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .72397        1.2874        .13885E-02   -1.5538    
  24  Prefactor     5.4532        5.2709        .15345E-03   -1.5241    
  25  norm          .10001E-03    38.890        .34891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.0227        23.106        .16363E-03   -1.5217    
  27  Prefactor     .10000E-03    2.3195        .10770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.6334        .11539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    28.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .99950        .23879        .24497E-03   -.93047    
  31  Prefactor     1.1474        .27924        .28274E-03   -.87964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70531e-09
Minuit parameter uncertainties:
  1  3.67708
  2  0.000230103
  3  5.9167
  4  0.0002382
  5  4.46702
  6  2.02178e-05
  7  1.36375e-06
  8  2.81386e-06
  9  8.2179
  10  3.14666e-07
  11  14.5424
  12  0.000124599
  13  16.552
  14  0.000151616
  15  1.36946e-05
  16  27.1451
  17  10.6814
  18  15.6677
  19  8.5979
  20  0.00134339
  21  0.000799059
  22  5.62977e-05
  23  1.28743
  24  5.27134
  25  0.000987387
  26  23.1405
  27  2.64117e-06
  28  1.35058e-05
  29  4.88581e-05
  30  0.239042
  31  0.279601
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  2.416e+01  2.715e+01  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.147e+00  2.796e-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:  9.995e-01  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.73
Ra Dec: 147.262 40.637
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.54e-08 +/- 2.85e-08
Energy Flux (Fixed Index): 6.60e-06 +/- 7.42e-06

TS (Fixed Index): 1.73
Ra Dec: 147.262 40.637
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/526603/likelihoodResults_550108801_550368001_4FGL_J0949.0+4038_daily_bin1199.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) = 5348.84043343
delta logL = 0.187686282023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5348.8310916
delta logL = 0.197028112933

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.079       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1052       1.0000          .0000       10.000    
     3 'Normalizat'    1.0092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1395       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5348.831     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      291 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.079        34.008        .71872E-04   -.81557E-04
   2  Index         2.1053        .76754        .10620E-01   -.37744E-04
   3  Normalizat    1.0090        .22431        .24392E-03    .18830E-04
   4  Prefactor     1.1396        .27543        .28352E-03    .14355E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.0789
  Index      = 2.10529
  Normalizat = 1.00899
  Prefactor  = 1.13963
 **********
 **   18 **HESSE 
 **********

 FCN=   5348.831     FROM HESSE     STATUS=OK            23 CALLS      314 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.079        34.012        .14374E-04   -1.4592    
   2  Index         2.1053        .76777        .42480E-03   -.61743    
   3  Normalizat    1.0090        .22457        .97568E-05   -.92730    
   4  Prefactor     1.1396        .27574        .11341E-04   -.88210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2153e-11
Minuit parameter uncertainties:
  1  34.0333
  2  0.772384
  3  0.224782
  4  0.276088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/526603': 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) = 5348.83109132
delta logL = 0.197028389939

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  3.108e+01  3.403e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.105e+00  7.724e-01  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.140e+00  2.761e-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:  1.009e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 147.262 40.637
Photon Index (Free Index): 2.11 +/- 0.77
Photon Flux (Free Index): 1.76e-08 +/- 2.44e-08
Energy Flux (Free Index): 9.57e-06 +/- 1.30e-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/526603/cmap_HighResolution_550108801_550368001_4FGL_J0949.0+4038_daily_bin1199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.02e-03', comment='SUCCESS', photon_flux='2.54e-08', energy_flux2='9.57e-06', photon_flux_error='2.85e-08', dlogl='1.97e-01', energy_flux='6.60e-06', photon_flux2='1.76e-08', job_status='DONE', time_completed='2021-09-01 03:29:59.567760', photon_index_error2='0.77', photon_index2='2.11', ts='1.73', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.30e-05', EG='1.00', time_epoch_completed='1630492199.57', return_code='0', job_id='526603', GAL2='1.14', EG2='1.01', return_code2='0', energy_flux_error='7.42e-06', photon_flux_error2='2.44e-08', ts2='2.13', photon_index='2.61' WHERE bin_id='1199' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:29:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 526603: <4FGL_J0949.0+4038_daily_bin1199> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin1199> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 03:15:38 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:15:39 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:15:39 2021
Terminated at Wed Sep  1 03:30:00 2021
Results reported at Wed Sep  1 03:30:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin1199 147.262 40.6367 550108801 550368001 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 :                                   837.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            862 sec.

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

