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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin1454
RA = 147.262, Dec = 40.6367
tmin = 616204801, tmax = 616464001
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='528285', job_status='RUN', time_executed='2021-09-01 03:21:22.526828', time_epoch_executed='1630491682.53' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/528285

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/528285/ft1_4FGL_J0949.0+4038_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/528285/ft2_4FGL_J0949.0+4038_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/528285/ft1_4FGL_J0949.0+4038_daily_bin1454.fits outfile=/scratch/kocevski/528285/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1454.fits ra=147.262 dec=40.6367 rad=12.0 tmin=616204801.0 tmax=616464001.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 4.07
user 3.79
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/528285/ft1_filtered_4FGL_J0949.0+4038_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/528285/ft2_4FGL_J0949.0+4038_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/528285/ltcube_616204801_616464001_4FGL_J0949.0+4038_daily_bin1454.fits outfile=/scratch/kocevski/528285/expmap_616204801_616464001_4FGL_J0949.0+4038_daily_bin1454.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/528285/ltcube_616204801_616464001_4FGL_J0949.0+4038_daily_bin1454.fits
.....................!
real 190.24
user 185.32
sys 4.46

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/528285/ft1_filtered_4FGL_J0949.0+4038_daily_bin1454.fits scfile=/scratch/kocevski/528285/ft2_4FGL_J0949.0+4038_daily_bin1454.fits outfile=/scratch/kocevski/528285/cmap_616204801_616464001_4FGL_J0949.0+4038_daily_bin1454.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/528285/ft1_filtered_4FGL_J0949.0+4038_daily_bin1454.fits scfile=/scratch/kocevski/528285/ft2_4FGL_J0949.0+4038_daily_bin1454.fits outfile=/scratch/kocevski/528285/cmap_HighResolution_616204801_616464001_4FGL_J0949.0+4038_daily_bin1454.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.53
user 0.40
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0141       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13152E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .44689       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8052       1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0485       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4298       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.007       1.0000         .10000E-03   10000.    
    13 'norm      '    .87467E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6555       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.6807       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2635       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18247       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.9887       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.2447       1.0000         .10000E-03   10000.    
    25 'norm      '    18.829       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.949       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .90043       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2877       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=   4082.649     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     4141 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0144        4.0220        .34928E-06    .51054E-06
   2  Prefactor     .10000E-03    38.969        .28230E-05** at limit **
   3  Prefactor     .10000E-03    5.1111        .25133E-06** at limit **
   4  Prefactor     .10000E-03    18.384       -.22438E-05** at limit **
   5  Prefactor     .10000E-03    2.3113       -.17553E-06** at limit **
   6  Prefactor     .10000E-03    38.419        .25982E-05** at limit **
   7  norm          .44660        1.0076       -.35371E-07   -.31918E-03
   8  Prefactor     2.8073        5.9808       -.27662E-06   -.83242E-04
   9  norm          .10000E-03    7.3040        .18207E-06** at limit **
  10  Prefactor     5.0478        3.7866       -.19481E-06   -.14627E-04
  11  Prefactor     2.4369        17.300        .64137E-05   -.83985E-03
  12  Prefactor     29.991        31.509       -.12675E-04   -.69217E-04
  13  norm          .10001E-03    17.822        .67772E-06** at limit **
  14  Prefactor     .10000E-03    37.211       -.47129E-05** at limit **
  15  Prefactor     2.6572        10.321        .89268E-06   -.12116E-02
  16  Prefactor     .10000E-03    13.336       -.22621E-05** at limit **
  17  Prefactor     .10000E-03    3.1526       -.77178E-07** at limit **
  18  norm          1.6567        28.227       -.84983E-05   -.78182E-03
  19  Prefactor     7.2630        8.1514        .10525E-05    .70967E-04
  20  Prefactor     .10000E-03    1.0489       -.50071E-08** at limit **
  21  Prefactor     .20081        3.0990       -.49542E-06   -.39039E-03
  22  Prefactor     .10000E-03    15.937        .20522E-05** at limit **
  23  norm          8.9888        4.1998       -.61380E-06    .63572E-04
  24  Prefactor     6.2301        6.5024        .16989E-05    .20608E-03
  25  norm          18.831        13.689        .51430E-06    .22563E-04
  26  Prefactor     12.933        33.294       -.16909E-04   -.21103E-04
  27  Prefactor     .10000E-03    4.9876       -.14772E-06** at limit **
  28  Prefactor     .10000E-03    4.4602        .54547E-06** at limit **
  29  Prefactor     .10000E-03    15.846        .20843E-05** at limit **
  30  Normalizat    .90047        .21623        .24616E-05   -.43694E-05
  31  Prefactor     1.2874        .25981       -.90993E-06    .64828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.01441
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.446603
  Prefactor  = 2.8073
  norm       = 0.0001
  Prefactor  = 5.04782
  Prefactor  = 2.43687
  Prefactor  = 29.9906
  norm       = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 2.65722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.65674
  Prefactor  = 7.263
  Prefactor  = 0.0001
  Prefactor  = 0.200813
  Prefactor  = 0.0001
  norm       = 8.98879
  Prefactor  = 6.23009
  norm       = 18.8314
  Prefactor  = 12.933
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.900466
  Prefactor  = 1.28738
 **********
 **   18 **HESSE 
 **********

 FCN=   4082.649     FROM HESSE     STATUS=OK           630 CALLS     4771 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0144        4.0199        .92908E-04   -1.5178    
   2  Prefactor     .10000E-03    38.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.087        .27802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.3384        .94678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .44660        1.0603        .53026E-03   -1.5574    
   8  Prefactor     2.8073        6.6119        .12276E-03   -1.5373    
   9  norm          .10000E-03    7.3501        .16854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0478        3.7834        .98992E-04   -1.5259    
  11  Prefactor     2.4369        24.900        .13127E-02   -1.5396    
  12  Prefactor     29.991        35.936        .73141E-04   -1.4612    
  13  norm          .10001E-03    75.467        .52316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6572        14.710        .12507E-02   -1.5382    
  16  Prefactor     .10000E-03    13.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.1555        .11080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6567        45.522        .16247E-02   -1.5451    
  19  Prefactor     7.2630        8.2841        .14883E-03   -1.5169    
  20  Prefactor     .10000E-03    1.0521        .63903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .20081        20.630        .18811E-02   -1.5618    
  22  Prefactor     .10000E-03    15.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.9888        4.1974        .86427E-04   -1.5108    
  24  Prefactor     6.2301        6.8629        .13799E-03   -1.5209    
  25  norm          18.831        13.714        .92302E-04   -1.4840    
  26  Prefactor     12.933        33.262        .11131E-03   -1.4989    
  27  Prefactor     .10000E-03    5.0712        .13906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.5020        .13166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    15.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .90047        .25698        .25104E-03   -.96444    
  31  Prefactor     1.2874        .30766        .27296E-03   -.83683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94203e-08
Minuit parameter uncertainties:
  1  4.02009
  2  2.05277e-05
  3  0.000354182
  4  1.10911e-05
  5  4.89898e-07
  6  6.17184e-05
  7  1.0603
  8  6.61365
  9  9.6746e-06
  10  3.78362
  11  15.5871
  12  35.9615
  13  0.00187387
  14  4.17798e-06
  15  12.5087
  16  7.11317e-06
  17  3.41299e-06
  18  17.3829
  19  8.28538
  20  1.33864e-06
  21  4.07119
  22  6.14618e-06
  23  4.19753
  24  6.86375
  25  13.7159
  26  33.3097
  27  2.90539e-07
  28  9.58028e-05
  29  3.24891e-05
  30  0.257325
  31  0.308096
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  7.113e-06  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.287e+00  3.081e-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.005e-01  2.573e-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: 6.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/528285/likelihoodResults_616204801_616464001_4FGL_J0949.0+4038_daily_bin1454.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) = 4082.64907855
delta logL = -0.000356134268259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4082.64872238
delta logL = 3.53811628884e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5878       1.0000          .0000       10.000    
     3 'Normalizat'    .90046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2874       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=   4082.649     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      259 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    81.863        .18142E-01** at limit **
   2  Index         1.9464        5.9429        .50000        .28541E-06
   3  Normalizat    .90047        .10819E-01    .25104E-03    .13496E-04
   4  Prefactor     1.2874        .13838E-01    .27296E-03    .14494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94639
  Normalizat = 0.900468
  Prefactor  = 1.28738
 **********
 **   18 **HESSE 
 **********

 FCN=   4082.649     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    572.65        .26840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9464        7.2286        .50000       -.65697    
   3  Normalizat    .90047        .29715E-01    .10041E-04   -.96444    
   4  Prefactor     1.2874        .38007E-01    .10918E-04   -.83683    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.51905e-09
Minuit parameter uncertainties:
  1  0.000135286
  2  1404.05
  3  0.0297156
  4  0.0380082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/528285': 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) = 4082.64872137
delta logL = 1.04603623186e-06

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  1.353e-04  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  1.946e+00  1.404e+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.287e+00  3.801e-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:  9.005e-01  2.972e-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/528285/cmap_HighResolution_616204801_616464001_4FGL_J0949.0+4038_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-03', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-09-01 03:34:36.578362', job_id='528285', GAL2='1.29', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630492476.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='1.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1454' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:34:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 528285: <4FGL_J0949.0+4038_daily_bin1454> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin1454 147.262 40.6367 616204801 616464001 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 :                                   770.22 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             278.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            817 sec.

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

