/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 5 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 = 7418
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0949.0+4038_daily_bin341
RA = 147.262, Dec = 40.6367
tmin = 327715201, tmax = 327974401
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='521880', job_status='RUN', time_executed='2021-09-01 03:01:55.830429', time_epoch_executed='1630490515.83' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521880

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521880/ft1_4FGL_J0949.0+4038_daily_bin341.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521880/ft2_4FGL_J0949.0+4038_daily_bin341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521880/ft1_4FGL_J0949.0+4038_daily_bin341.fits outfile=/scratch/kocevski/521880/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin341.fits ra=147.262 dec=40.6367 rad=12.0 tmin=327715201.0 tmax=327974401.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 5.41
user 3.07
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/521880/ft2_4FGL_J0949.0+4038_daily_bin341.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/521880/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin341.fits evtable="EVENTS" outfile="/scratch/kocevski/521880/ft1_filtered_4FGL_J0949.0+4038_daily_bin341.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 2.31
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/521880/ft1_filtered_4FGL_J0949.0+4038_daily_bin341.fits" evtable="EVENTS" scfile=/scratch/kocevski/521880/ft2_4FGL_J0949.0+4038_daily_bin341.fits sctable="SC_DATA" outfile=/scratch/kocevski/521880/ltcube_327715201_327974401_4FGL_J0949.0+4038_daily_bin341.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/521880/ft2_4FGL_J0949.0+4038_daily_bin341.fits
.....................!
real 12.98
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521880/ft1_filtered_4FGL_J0949.0+4038_daily_bin341.fits evtable="EVENTS" scfile=/scratch/kocevski/521880/ft2_4FGL_J0949.0+4038_daily_bin341.fits sctable="SC_DATA" expcube=/scratch/kocevski/521880/ltcube_327715201_327974401_4FGL_J0949.0+4038_daily_bin341.fits outfile=/scratch/kocevski/521880/expmap_327715201_327974401_4FGL_J0949.0+4038_daily_bin341.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/521880/ltcube_327715201_327974401_4FGL_J0949.0+4038_daily_bin341.fits
.....................!
real 192.31
user 184.88
sys 4.35

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/521880/ft1_filtered_4FGL_J0949.0+4038_daily_bin341.fits scfile=/scratch/kocevski/521880/ft2_4FGL_J0949.0+4038_daily_bin341.fits outfile=/scratch/kocevski/521880/cmap_327715201_327974401_4FGL_J0949.0+4038_daily_bin341.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/521880/ft1_filtered_4FGL_J0949.0+4038_daily_bin341.fits scfile=/scratch/kocevski/521880/ft2_4FGL_J0949.0+4038_daily_bin341.fits outfile=/scratch/kocevski/521880/cmap_HighResolution_327715201_327974401_4FGL_J0949.0+4038_daily_bin341.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6018       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6428       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8930       1.0000         .10000E-03   10000.    
     7 'norm      '    .74556       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3546       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9252       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.739       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.075       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4955       1.0000         .10000E-03   10000.    
    18 'norm      '    .11346E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .29677E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13204E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.5725       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.2865       1.0000         .10000E-03   10000.    
    25 'norm      '    17.692       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.1032       1.0000         .10000E-03   10000.    
    29 'Prefactor '    31.560       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0462       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .68289       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=   5611.798     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     4180 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6016        2.5629        .64409E-07    .53604E-04
   2  Prefactor     .10000E-03    24.055        .16511E-07** at limit **
   3  Prefactor     5.6426        3.0918        .26597E-07   -.59985E-04
   4  Prefactor     .10000E-03    14.439        .25162E-06** at limit **
   5  Prefactor     .10000E-03    1.3192       -.37018E-07** at limit **
   6  Prefactor     2.8903        10.150        .73843E-06    .11779E-04
   7  norm          .74554        .35725       -.39291E-08   -.17564E-03
   8  Prefactor     .10000E-03    .96055        .23580E-07** at limit **
   9  norm          .10000E-03    2.2793       -.53604E-07** at limit **
  10  Prefactor     3.3545        2.0348        .58325E-06    .41144E-03
  11  Prefactor     9.9215        11.674        .22509E-06    .10060E-06
  12  Prefactor     16.742        20.008        .89951E-07   -.37710E-04
  13  norm          .10000E-03    4.1970        .16818E-07** at limit **
  14  Prefactor     .10000E-03    9.3679        .85201E-07** at limit **
  15  Prefactor     .10000E-03    3.4352       -.50169E-07** at limit **
  16  Prefactor     22.084        31.120       -.58539E-06   -.46620E-04
  17  Prefactor     3.5079        10.183        .92443E-06   -.14782E-03
  18  norm          .10000E-03    17.149       -.16655E-06** at limit **
  19  Prefactor     .10000E-03    1.3423        .13589E-08** at limit **
  20  Prefactor     .10000E-03    1.4352        .42731E-07** at limit **
  21  Prefactor     .12415E-03    2.4096        .11148E-05** at limit **
  22  Prefactor     .10001E-03    167.02       -.50099E-05** at limit **
  23  norm          6.5723        2.8339        .14339E-07   -.37376E-04
  24  Prefactor     4.3145        4.5079        .29093E-07   -.96636E-03
  25  norm          17.696        11.582       -.13132E-05   -.32518E-03
  26  Prefactor     .10000E-03    12.127       -.18672E-06** at limit **
  27  Prefactor     .10000E-03    2.3570        .86324E-07** at limit **
  28  Prefactor     1.1032        3.3795        .11937E-05    .99544E-04
  29  Prefactor     31.559        26.047       -.88087E-07   -.52280E-04
  30  Normalizat    1.0462        .16132       -.12568E-05   -.42527E-03
  31  Prefactor     .68297        .18611       -.10353E-06   -.27500E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.6016
  Prefactor  = 0.0001
  Prefactor  = 5.64257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.89026
  norm       = 0.74554
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.35446
  Prefactor  = 9.92146
  Prefactor  = 16.7417
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0836
  Prefactor  = 3.50792
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000124149
  Prefactor  = 0.000100014
  norm       = 6.57232
  Prefactor  = 4.31447
  norm       = 17.6963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.10324
  Prefactor  = 31.5586
  Normalizat = 1.04619
  Prefactor  = 0.682971
 **********
 **   18 **HESSE 
 **********

 FCN=   5611.798     FROM HESSE     STATUS=OK           628 CALLS     4808 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6016        2.5612        .78106E-04   -1.5235    
   2  Prefactor     .10000E-03    24.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6426        3.0929        .94706E-04   -1.5233    
   4  Prefactor     .10000E-03    14.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3399        .83901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8903        10.108        .23892E-03   -1.5368    
   7  norm          .74554        .35395        .29754E-04   -1.5535    
   8  Prefactor     .10000E-03    .97775        .14263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.2831        .11031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3545        2.0299        .39691E-03   -1.5342    
  11  Prefactor     9.9215        11.642        .12719E-03   -1.5078    
  12  Prefactor     16.742        19.978        .97895E-04   -1.4889    
  13  norm          .10000E-03    4.2000        .14988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.3815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4594        .13545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.084        31.332        .85252E-04   -1.4768    
  17  Prefactor     3.5079        10.161        .21626E-03   -1.5333    
  18  norm          .10000E-03    17.682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3482        .84745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.4724        .17524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .12415E-03    5.5626        .32400E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    168.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.5723        2.8351        .80459E-04   -1.5195    
  24  Prefactor     4.3145        4.7034        .13979E-03   -1.5293    
  25  norm          17.696        11.582        .95222E-04   -1.4866    
  26  Prefactor     .10000E-03    12.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.4006        .11233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.1032        3.3546        .23300E-03   -1.5498    
  29  Prefactor     31.559        26.023        .71324E-04   -1.4584    
  30  Normalizat    1.0462        .18928        .20222E-03   -.91499    
  31  Prefactor     .68297        .21750        .30159E-03   -1.0420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99464e-09
Minuit parameter uncertainties:
  1  2.5613
  2  1.03103e-06
  3  3.09303
  4  9.54854e-05
  5  2.99971e-06
  6  10.1144
  7  0.353949
  8  1.06779e-06
  9  4.39617e-06
  10  2.02989
  11  11.6446
  12  19.986
  13  5.89154e-07
  14  1.53996e-05
  15  3.21097e-06
  16  31.3556
  17  10.1658
  18  9.72592e-06
  19  1.3828e-06
  20  2.3291e-06
  21  0.0231824
  22  0.00303746
  23  2.83518
  24  4.70383
  25  11.583
  26  5.4364e-05
  27  1.53395e-05
  28  3.35517
  29  26.0328
  30  0.1894
  31  0.217766
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  2.208e+01  3.136e+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:  6.830e-01  2.178e-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.046e+00  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/521880/likelihoodResults_327715201_327974401_4FGL_J0949.0+4038_daily_bin341.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) = 5611.27239848
delta logL = 0.525298090675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5611.24664946
delta logL = 0.551047110098

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6145       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9920       1.0000          .0000       10.000    
     3 'Normalizat'    .99634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72454       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=   5611.247     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      292 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6090        215.56        .15096E-03   -.20258E-03
   2  Index         3.9924        6.9870        .62146E-02   -.74873E-04
   3  Normalizat    .99635        .18208        .20654E-03    .69223E-03
   4  Prefactor     .72454        .22113        .29362E-03    .50644E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.60904
  Index      = 3.99241
  Normalizat = 0.996352
  Prefactor  = 0.724542
 **********
 **   18 **HESSE 
 **********

 FCN=   5611.247     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6090        16.674        .60384E-05   -1.5194    
   2  Index         3.9924        1.5389        .24859E-03   -.20291    
   3  Normalizat    .99635        .18497        .41309E-04   -.93153    
   4  Prefactor     .72454        .22102        .58723E-04   -1.0257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.42596e-10
Minuit parameter uncertainties:
  1  16.6859
  2  1.56538
  3  0.185094
  4  0.221284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521880': 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) = 5611.24664938
delta logL = 0.551047186415

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  6.609e+00  1.669e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  3.992e+00  1.565e+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:  7.245e-01  2.213e-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.964e-01  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.86
Ra Dec: 147.262 40.637
Photon Index (Free Index): 3.99 +/- 1.57
Photon Flux (Free Index): 5.69e-08 +/- 4.97e-08
Energy Flux (Free Index): 8.52e-06 +/- 7.33e-06

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/521880/cmap_HighResolution_327715201_327974401_4FGL_J0949.0+4038_daily_bin341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', comment='SUCCESS', energy_flux2='8.52e-06', dlogl='5.51e-01', photon_flux2='5.69e-08', job_status='DONE', time_completed='2021-09-01 03:17:36.811017', photon_index_error2='1.57', photon_index2='3.99', ts='0.66', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='9.65e-08', energy_flux_error2='7.33e-06', EG='1.05', time_epoch_completed='1630491456.81', return_code='0', job_id='521880', GAL2='0.72', EG2='1.00', return_code2='0', photon_flux_error2='4.97e-08', ts2='1.86', photon_index='2.61' WHERE bin_id='341' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:17:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 521880: <4FGL_J0949.0+4038_daily_bin341> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin341> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 03:01:06 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:01:08 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:01:08 2021
Terminated at Wed Sep  1 03:17:37 2021
Results reported at Wed Sep  1 03:17:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin341 147.262 40.6367 327715201 327974401 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 :                                   927.29 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             306.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

