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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin299
RA = 147.262, Dec = 40.6367
tmin = 316828801, tmax = 317088001
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='521796', job_status='RUN', time_executed='2021-09-01 03:01:46.135948', time_epoch_executed='1630490506.14' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521796

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521796/ft1_4FGL_J0949.0+4038_daily_bin299.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521796/ft2_4FGL_J0949.0+4038_daily_bin299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521796/ft1_4FGL_J0949.0+4038_daily_bin299.fits outfile=/scratch/kocevski/521796/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin299.fits ra=147.262 dec=40.6367 rad=12.0 tmin=316828801.0 tmax=317088001.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 7.74
user 3.22
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/521796/ft1_filtered_4FGL_J0949.0+4038_daily_bin299.fits" evtable="EVENTS" scfile=/scratch/kocevski/521796/ft2_4FGL_J0949.0+4038_daily_bin299.fits sctable="SC_DATA" outfile=/scratch/kocevski/521796/ltcube_316828801_317088001_4FGL_J0949.0+4038_daily_bin299.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/521796/ft2_4FGL_J0949.0+4038_daily_bin299.fits
.....................!
real 14.07
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521796/ft1_filtered_4FGL_J0949.0+4038_daily_bin299.fits evtable="EVENTS" scfile=/scratch/kocevski/521796/ft2_4FGL_J0949.0+4038_daily_bin299.fits sctable="SC_DATA" expcube=/scratch/kocevski/521796/ltcube_316828801_317088001_4FGL_J0949.0+4038_daily_bin299.fits outfile=/scratch/kocevski/521796/expmap_316828801_317088001_4FGL_J0949.0+4038_daily_bin299.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/521796/ltcube_316828801_317088001_4FGL_J0949.0+4038_daily_bin299.fits
.....................!
real 192.63
user 185.51
sys 5.02

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/521796/ft1_filtered_4FGL_J0949.0+4038_daily_bin299.fits scfile=/scratch/kocevski/521796/ft2_4FGL_J0949.0+4038_daily_bin299.fits outfile=/scratch/kocevski/521796/cmap_316828801_317088001_4FGL_J0949.0+4038_daily_bin299.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.62
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/521796/ft1_filtered_4FGL_J0949.0+4038_daily_bin299.fits scfile=/scratch/kocevski/521796/ft2_4FGL_J0949.0+4038_daily_bin299.fits outfile=/scratch/kocevski/521796/cmap_HighResolution_316828801_317088001_4FGL_J0949.0+4038_daily_bin299.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.61
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5540       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2538       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .26519E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0245       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9571       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19350E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7963       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0044       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8956       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.0001       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14599E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    6.8869       1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.768       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.2780       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .86317       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0335       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5346.557     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     3497 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4303       -.25912E-06** at limit **
   2  Prefactor     .10320E-03    40.900        .35408E-05** at limit **
   3  Prefactor     6.5536        1.2851       -.25040E-07   -.12408E-02
   4  Prefactor     .10000E-03    5.6175       -.16302E-06** at limit **
   5  Prefactor     .10000E-03    .74384        .35679E-07** at limit **
   6  Prefactor     .10000E-03    6.2661       -.32519E-06** at limit **
   7  norm          1.2535        .54680        .62566E-07    .18531E-02
   8  Prefactor     .10000E-03    2.3908       -.24564E-06** at limit **
   9  norm          .10079E-03    359.05        .32677E-05** at limit **
  10  Prefactor     .10000E-03    1.0897       -.54253E-06** at limit **
  11  Prefactor     8.0220        1.3938        .59034E-07   -.12862E-02
  12  Prefactor     9.9475        1.5626       -.16308E-07    .17341E-02
  13  norm          .10000E-03    3.9430        .28285E-06** at limit **
  14  Prefactor     .10000E-03    6.2995        .52152E-06** at limit **
  15  Prefactor     .10284E-03    44.144        .28940E-05** at limit **
  16  Prefactor     .10002E-03    5.1342        .12386E-05** at limit **
  17  Prefactor     6.7933        1.8100        .14445E-06   -.16166E-02
  18  norm          .10002E-03    10.404        .81824E-07** at limit **
  19  Prefactor     .10001E-03    6.1363        .12977E-05** at limit **
  20  Prefactor     2.0034        2.9323       -.97890E-07    .29413E-04
  21  Prefactor     5.9025        3.1270       -.32245E-07    .60102E-02
  22  Prefactor     .10005E-03    8.0977        .67700E-06** at limit **
  23  norm          7.9997        3.2317        .38792E-07    .57224E-03
  24  Prefactor     .34945E-02    54.332        .10552E-05    .66565E-03
  25  norm          6.8863        1.0396        .48315E-08    .36527E-03
  26  Prefactor     28.771        1.0123       -.64065E-08    .16390E-03
  27  Prefactor     6.2779        3.5489       -.82743E-07    .47677E-02
  28  Prefactor     .10000E-03    2.4006        .92166E-06** at limit **
  29  Prefactor     .10002E-03    8.9646       -.62501E-06** at limit **
  30  Normalizat    .86319        .19572       -.77048E-06    .48365E-03
  31  Prefactor     1.0337        .23863        .25045E-05    .54802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000103197
  Prefactor  = 6.55359
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25351
  Prefactor  = 0.0001
  norm       = 0.000100787
  Prefactor  = 0.0001
  Prefactor  = 8.02196
  Prefactor  = 9.94748
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102835
  Prefactor  = 0.000100019
  Prefactor  = 6.79325
  norm       = 0.000100025
  Prefactor  = 0.000100012
  Prefactor  = 2.00339
  Prefactor  = 5.90252
  Prefactor  = 0.000100047
  norm       = 7.9997
  Prefactor  = 0.00349446
  norm       = 6.88632
  Prefactor  = 28.7706
  Prefactor  = 6.27793
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Normalizat = 0.863194
  Prefactor  = 1.03367
 **********
 **   18 **HESSE 
 **********

 FCN=   5346.557     FROM HESSE     STATUS=OK           704 CALLS     4201 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3965        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10320E-03    84.796        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5536        5.5064        .39189E-02   -1.5196    
   4  Prefactor     .10000E-03    14.306        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .74243        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8137        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2535        .55666        .77232E-02   -1.5484    
   8  Prefactor     .10000E-03    2.3458        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10079E-03    5.6080        .58650E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0471        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.0220        10.302        .35385E-02   -1.5141    
  12  Prefactor     9.9475        20.078        .31747E-02   -1.5077    
  13  norm          .10000E-03    3.9449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4317        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10284E-03    7.1357        .66030E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    7.8648        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.7933        13.443        .38477E-02   -1.5187    
  18  norm          .10002E-03    11.788        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    7.9576        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.0034        2.9620        .73121E-02   -1.5425    
  21  Prefactor     5.9025        4.7599        .41347E-02   -1.5222    
  22  Prefactor     .10005E-03    13.395        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.9997        3.2418        .35439E-02   -1.5142    
  24  Prefactor     .34945E-02    2.4502        .62217E-01   -1.5696    
  25  norm          6.8863        8.1748        .38220E-02   -1.5183    
  26  Prefactor     28.771        25.628        .18674E-02   -1.4635    
  27  Prefactor     6.2779        3.9907        .40052E-02   -1.5207    
  28  Prefactor     .10000E-03    2.3993        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10002E-03    14.569        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .86319        .17255        .44429E-01   -.97766    
  31  Prefactor     1.0337        .20324        .60365E-01   -.91615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.59928e-08
Minuit parameter uncertainties:
  1  1.20603e-05
  2  0.0329789
  3  5.5068
  4  0.000355723
  5  1.33536e-06
  6  5.51966e-06
  7  0.556658
  8  1.31237e-05
  9  0.00420303
  10  2.19471e-05
  11  10.3047
  12  20.0918
  13  2.94996e-05
  14  2.23953e-05
  15  0.00899685
  16  0.000777903
  17  13.4489
  18  0.00107962
  19  0.000613384
  20  2.96224
  21  4.76019
  22  0.0015893
  23  3.24191
  24  0.182404
  25  8.17615
  26  25.6373
  27  3.99085
  28  5.79705e-05
  29  0.000979259
  30  0.172663
  31  0.20339
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  7.779e-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.034e+00  2.034e-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:  8.632e-01  1.727e-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: 4.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/521796/likelihoodResults_316828801_317088001_4FGL_J0949.0+4038_daily_bin299.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) = 5346.55769411
delta logL = -0.000604092913818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5346.55709008
delta logL = -6.43740349915e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5919       1.0000          .0000       10.000    
     3 'Normalizat'    .86323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0336       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=   5346.557     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      255 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.433        .18142E-01** at limit **
   2  Index         1.9897        5.3951        .50000        .15423E-06
   3  Normalizat    .86319        .87546E-02    .23711E-03   -.15583E-04
   4  Prefactor     1.0337        .10743E-01    .26695E-03   -.14054E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98975
  Normalizat = 0.863195
  Prefactor  = 1.03367
 **********
 **   18 **HESSE 
 **********

 FCN=   5346.557     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    342.58        .22368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9897        5.7216        .50000       -.64607    
   3  Normalizat    .86319        .25567E-01    .94842E-05   -.97766    
   4  Prefactor     1.0337        .31375E-01    .10678E-04   -.91615    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28014e-09
Minuit parameter uncertainties:
  1  0.000212424
  2  1205.85
  3  0.0255675
  4  0.031376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521796': 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) = 5346.55708875
delta logL = 1.26045506477e-06

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.124e-04  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  1.990e+00  1.206e+03  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.034e+00  3.138e-02  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:  8.632e-01  2.557e-02  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/521796/cmap_HighResolution_316828801_317088001_4FGL_J0949.0+4038_daily_bin299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-03', job_status='DONE', photon_flux_upper_limit='4.37e-08', time_completed='2021-09-01 03:15:45.851382', job_id='521796', GAL2='1.03', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630491345.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='299' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:15:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 521796: <4FGL_J0949.0+4038_daily_bin299> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin299 147.262 40.6367 316828801 317088001 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 :                                   823.08 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             329.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            886 sec.

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

