/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 4 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7369
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0949.0+4038_daily_bin925
RA = 147.262, Dec = 40.6367
tmin = 479088001, tmax = 479347201
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='525011', job_status='RUN', time_executed='2021-09-01 03:11:12.260856', time_epoch_executed='1630491072.26' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='925'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/525011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/525011/ft1_4FGL_J0949.0+4038_daily_bin925.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/525011/ft2_4FGL_J0949.0+4038_daily_bin925.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/525011/ft1_4FGL_J0949.0+4038_daily_bin925.fits outfile=/scratch/kocevski/525011/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin925.fits ra=147.262 dec=40.6367 rad=12.0 tmin=479088001.0 tmax=479347201.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.47
user 3.23
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/525011/ft1_filtered_4FGL_J0949.0+4038_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/525011/ft2_4FGL_J0949.0+4038_daily_bin925.fits sctable="SC_DATA" expcube=/scratch/kocevski/525011/ltcube_479088001_479347201_4FGL_J0949.0+4038_daily_bin925.fits outfile=/scratch/kocevski/525011/expmap_479088001_479347201_4FGL_J0949.0+4038_daily_bin925.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/525011/ltcube_479088001_479347201_4FGL_J0949.0+4038_daily_bin925.fits
.....................!
real 190.42
user 185.31
sys 4.18

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/525011/ft1_filtered_4FGL_J0949.0+4038_daily_bin925.fits scfile=/scratch/kocevski/525011/ft2_4FGL_J0949.0+4038_daily_bin925.fits outfile=/scratch/kocevski/525011/cmap_479088001_479347201_4FGL_J0949.0+4038_daily_bin925.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.61
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27748E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .58169       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9490       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .40306       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .38770E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4082       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.829       1.0000         .10000E-03   10000.    
    13 'norm      '    7.5472       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6256       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2780       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.5856       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .80137       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5403       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.9189       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.858       1.0000         .10000E-03   10000.    
    25 'norm      '    7.4774       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.8193       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.9590       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .85080       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .87745       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=   5627.898     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     3627 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10037E-03    .99326        .35471E-06** at limit **
   2  Prefactor     .10000E-03    54.446       -.15814E-06** at limit **
   3  Prefactor     .57374        2.7066        .40979E-06   -.86823E-04
   4  Prefactor     .10000E-03    12.336       -.15188E-06** at limit **
   5  Prefactor     4.9486        2.9478        .52351E-07   -.24019E-04
   6  Prefactor     .10000E-03    7.1586        .28854E-06** at limit **
   7  norm          .40308        .28825        .11941E-07   -.15466E-03
   8  Prefactor     .10000E-03    .56259       -.32835E-09** at limit **
   9  norm          .10000E-03    3.4863       -.13125E-06** at limit **
  10  Prefactor     .10000E-03    1.3157       -.85426E-08** at limit **
  11  Prefactor     8.4080        7.7590        .41573E-07   -.16957E-04
  12  Prefactor     23.828        17.881       -.51701E-07   -.26206E-04
  13  norm          7.5462        11.285        .26071E-07    .64152E-05
  14  Prefactor     .10000E-03    19.441       -.28847E-06** at limit **
  15  Prefactor     7.6244        6.9499       -.34334E-07   -.48511E-04
  16  Prefactor     9.2785        20.987        .66872E-06    .88243E-05
  17  Prefactor     .10000E-03    15.200        .51052E-06** at limit **
  18  norm          3.5812        11.071        .27600E-05    .32994E-04
  19  Prefactor     .10000E-03    5.4779        .30886E-06** at limit **
  20  Prefactor     .80136        1.4273       -.96772E-07   -.35270E-03
  21  Prefactor     1.5401        2.6707        .46163E-07   -.10247E-04
  22  Prefactor     .10000E-03    6.1310       -.45811E-06** at limit **
  23  norm          4.9189        2.4358       -.17839E-07   -.23559E-04
  24  Prefactor     10.857        4.8563        .17727E-07   -.85116E-05
  25  norm          7.4764        9.9609       -.10058E-06   -.47174E-05
  26  Prefactor     .10000E-03    11.181       -.54417E-06** at limit **
  27  Prefactor     4.8190        4.4064       -.23779E-06   -.40647E-04
  28  Prefactor     .10000E-03    1.7355       -.20283E-06** at limit **
  29  Prefactor     8.9264        31.396        .55210E-05    .13700E-04
  30  Normalizat    .85085        .15424       -.65617E-06   -.60696E-04
  31  Prefactor     .87742        .18171        .82336E-07   -.83376E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010037
  Prefactor  = 0.0001
  Prefactor  = 0.573739
  Prefactor  = 0.0001
  Prefactor  = 4.94857
  Prefactor  = 0.0001
  norm       = 0.403075
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.408
  Prefactor  = 23.8284
  norm       = 7.54624
  Prefactor  = 0.0001
  Prefactor  = 7.62444
  Prefactor  = 9.27849
  Prefactor  = 0.0001
  norm       = 3.58115
  Prefactor  = 0.0001
  Prefactor  = 0.801361
  Prefactor  = 1.54008
  Prefactor  = 0.0001
  norm       = 4.91891
  Prefactor  = 10.8574
  norm       = 7.4764
  Prefactor  = 0.0001
  Prefactor  = 4.81897
  Prefactor  = 0.0001
  Prefactor  = 8.92636
  Normalizat = 0.850849
  Prefactor  = 0.877424
 **********
 **   18 **HESSE 
 **********

 FCN=   5627.898     FROM HESSE     STATUS=OK           642 CALLS     4269 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10037E-03    2.2814        .25230E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    54.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57374        4.7137        .23078E-02   -1.5556    
   4  Prefactor     .10000E-03    12.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9486        2.9261        .93620E-04   -1.5263    
   6  Prefactor     .10000E-03    7.1730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .40308        .28486        .32765E-04   -1.5581    
   8  Prefactor     .10000E-03    .56572        .54876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.673        .26679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.3662        .16725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.4080        7.7504        .13825E-03   -1.5128    
  12  Prefactor     23.828        17.859        .82058E-04   -1.4731    
  13  norm          7.5462        11.271        .14598E-03   -1.5158    
  14  Prefactor     .10000E-03    19.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.6244        6.9363        .14522E-03   -1.5156    
  16  Prefactor     9.2785        20.976        .65787E-03   -1.5099    
  17  Prefactor     .10000E-03    15.890        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.5812        11.112        .10671E-02   -1.5329    
  19  Prefactor     .10000E-03    5.7035        .34165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .80136        1.1468        .11731E-02   -1.5529    
  21  Prefactor     1.5401        2.6135        .14736E-03   -1.5460    
  22  Prefactor     .10000E-03    6.1286        .18136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.9189        2.4365        .79974E-04   -1.5264    
  24  Prefactor     10.857        4.8203        .99679E-04   -1.5049    
  25  norm          7.4764        9.9266        .14666E-03   -1.5161    
  26  Prefactor     .10000E-03    11.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.8190        4.3939        .13698E-03   -1.5269    
  28  Prefactor     .10000E-03    1.7475        .96611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.9264        31.336        .13391E-03   -1.5110    
  30  Normalizat    .85085        .17824        .21375E-03   -.98209    
  31  Prefactor     .87742        .21145        .26306E-03   -.96934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23131e-08
Minuit parameter uncertainties:
  1  0.0018368
  2  8.98434e-06
  3  3.2891
  4  1.0064e-06
  5  2.92616
  6  2.43819e-06
  7  0.284859
  8  2.65917e-07
  9  0.000106154
  10  1.26832e-07
  11  7.75133
  12  17.8631
  13  11.2741
  14  9.97586e-07
  15  6.93703
  16  20.9929
  17  1.08679e-05
  18  11.1187
  19  4.55713e-06
  20  1.14687
  21  2.6137
  22  1.46787e-06
  23  2.43651
  24  4.82048
  25  9.92876
  26  2.93561e-05
  27  4.39415
  28  9.204e-06
  29  31.394
  30  0.178365
  31  0.211648
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  9.278e+00  2.099e+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:  8.774e-01  2.116e-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.508e-01  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/525011/likelihoodResults_479088001_479347201_4FGL_J0949.0+4038_daily_bin925.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) = 5627.8285639
delta logL = 0.0689822046597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5627.82300913
delta logL = 0.0745369750784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.453       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1279       1.0000          .0000       10.000    
     3 'Normalizat'    .85506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87274       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=   5627.823     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      297 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.452        25.422        .10921E-03   -.10754E-03
   2  Index         2.1280        1.1205        .15762E-01   -.33989E-04
   3  Normalizat    .85496        .16642        .21326E-03   -.35184E-04
   4  Prefactor     .87308        .20829        .26358E-03   -.31228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4522
  Index      = 2.12801
  Normalizat = 0.854963
  Prefactor  = 0.873084
 **********
 **   18 **HESSE 
 **********

 FCN=   5627.823     FROM HESSE     STATUS=OK            23 CALLS      320 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.452        25.346        .43683E-05   -1.4974    
   2  Index         2.1280        1.1178        .63050E-03   -.61187    
   3  Normalizat    .85496        .16656        .85303E-05   -.98061    
   4  Prefactor     .87308        .20846        .10543E-04   -.97088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40966e-10
Minuit parameter uncertainties:
  1  25.3659
  2  1.13215
  3  0.166656
  4  0.208649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/525011': 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) = 5627.82300634
delta logL = 0.0745397727578

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.345e+01  2.537e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.128e+00  1.132e+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:  8.731e-01  2.086e-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.550e-01  1.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/525011/cmap_HighResolution_479088001_479347201_4FGL_J0949.0+4038_daily_bin925.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-09-01 03:25:58.184058', job_id='525011', GAL2='0.87', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630491958.18', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='7.45e-02', ts2='0.41', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='925' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:25:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 525011: <4FGL_J0949.0+4038_daily_bin925> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin925 147.262 40.6367 479088001 479347201 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 :                                   879.36 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             329.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

