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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin414
RA = 147.262, Dec = 40.6367
tmin = 346636801, tmax = 346896001
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='523135', job_status='RUN', time_executed='2021-09-01 03:05:51.193691', time_epoch_executed='1630490751.19' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/523135

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/523135/ft1_4FGL_J0949.0+4038_daily_bin414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/523135/ft2_4FGL_J0949.0+4038_daily_bin414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/523135/ft1_4FGL_J0949.0+4038_daily_bin414.fits outfile=/scratch/kocevski/523135/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin414.fits ra=147.262 dec=40.6367 rad=12.0 tmin=346636801.0 tmax=346896001.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.53
user 3.19
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/523135/ft1_filtered_4FGL_J0949.0+4038_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/523135/ft2_4FGL_J0949.0+4038_daily_bin414.fits sctable="SC_DATA" expcube=/scratch/kocevski/523135/ltcube_346636801_346896001_4FGL_J0949.0+4038_daily_bin414.fits outfile=/scratch/kocevski/523135/expmap_346636801_346896001_4FGL_J0949.0+4038_daily_bin414.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/523135/ltcube_346636801_346896001_4FGL_J0949.0+4038_daily_bin414.fits
.....................!
real 195.90
user 185.37
sys 4.67

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/523135/ft1_filtered_4FGL_J0949.0+4038_daily_bin414.fits scfile=/scratch/kocevski/523135/ft2_4FGL_J0949.0+4038_daily_bin414.fits outfile=/scratch/kocevski/523135/cmap_346636801_346896001_4FGL_J0949.0+4038_daily_bin414.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/523135/ft1_filtered_4FGL_J0949.0+4038_daily_bin414.fits scfile=/scratch/kocevski/523135/ft2_4FGL_J0949.0+4038_daily_bin414.fits outfile=/scratch/kocevski/523135/cmap_HighResolution_346636801_346896001_4FGL_J0949.0+4038_daily_bin414.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.85
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    104.98       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1517       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .47556       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.961       1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .41960       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3124       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.000       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33565E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.351       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2818       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.990       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4422       1.0000         .10000E-03   10000.    
    18 'norm      '    11.775       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .87376E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    7.9235       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.4656       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.8524       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .91948       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99135       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=   5118.827     FROM MIGRAD    STATUS=CONVERGED    846 CALLS     4221 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3267        .60501E-06** at limit **
   2  Prefactor     104.86        113.98       -.97279E-04   -.32304E-04
   3  Prefactor     9.1514        4.3076       -.33674E-06    .94900E-04
   4  Prefactor     .10000E-03    15.825       -.11261E-04** at limit **
   5  Prefactor     .47626        2.7471       -.31786E-05    .15015E-02
   6  Prefactor     34.959        22.208       -.24713E-06    .60664E-03
   7  norm          .10000E-03    .22654       -.42260E-07** at limit **
   8  Prefactor     .41771        2.8035        .20321E-05   -.21413E-03
   9  norm          .10000E-03    7.5555       -.56683E-07** at limit **
  10  Prefactor     1.3129        2.0428        .34852E-06    .75525E-03
  11  Prefactor     12.010        11.439        .62248E-05   -.94114E-04
  12  Prefactor     .10026E-03    23.912        .82536E-06** at limit **
  13  norm          .10000E-03    5.7896        .92973E-07** at limit **
  14  Prefactor     22.356        27.369       -.42588E-05    .12344E-04
  15  Prefactor     2.2824        9.1524       -.49746E-05   -.47283E-03
  16  Prefactor     15.985        24.393        .83217E-06    .36023E-04
  17  Prefactor     6.4414        6.1953       -.45611E-07    .98431E-04
  18  norm          11.778        13.867        .70286E-05   -.30704E-04
  19  Prefactor     .10000E-03    4.3484       -.12425E-06** at limit **
  20  Prefactor     .10000E-03    .85718       -.36529E-07** at limit **
  21  Prefactor     .10000E-03    .97343       -.42450E-07** at limit **
  22  Prefactor     .10019E-03    29.941       -.36546E-05** at limit **
  23  norm          7.9234        3.2869       -.31239E-06    .72195E-04
  24  Prefactor     .10000E-03    1.0067       -.23379E-07** at limit **
  25  norm          .10000E-03    14.121        .45399E-05** at limit **
  26  Prefactor     .10000E-03    20.221       -.35210E-05** at limit **
  27  Prefactor     7.4606        5.3539       -.86544E-06    .11249E-04
  28  Prefactor     5.8516        5.2786       -.24392E-05   -.13791E-03
  29  Prefactor     .10000E-03    18.373        .10820E-04** at limit **
  30  Normalizat    .91957        .18724        .33637E-05    .32577E-03
  31  Prefactor     .99129        .21517        .28376E-05    .29324E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 104.858
  Prefactor  = 9.15138
  Prefactor  = 0.0001
  Prefactor  = 0.476265
  Prefactor  = 34.9587
  norm       = 0.0001
  Prefactor  = 0.417706
  norm       = 0.0001
  Prefactor  = 1.31287
  Prefactor  = 12.0105
  Prefactor  = 0.000100259
  norm       = 0.0001
  Prefactor  = 22.3563
  Prefactor  = 2.28236
  Prefactor  = 15.9847
  Prefactor  = 6.44136
  norm       = 11.7778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100193
  norm       = 7.92344
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.46055
  Prefactor  = 5.85165
  Prefactor  = 0.0001
  Normalizat = 0.919571
  Prefactor  = 0.991293
 **********
 **   18 **HESSE 
 **********

 FCN=   5118.827     FROM HESSE     STATUS=OK           636 CALLS     4857 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3572        .80447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     104.86        113.77        .19623E-03   -1.3656    
   3  Prefactor     9.1514        4.3081        .98678E-04   -1.5103    
   4  Prefactor     .10000E-03    15.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .47626        8.0344        .19247E-02   -1.5570    
   6  Prefactor     34.959        21.987        .67776E-04   -1.4525    
   7  norm          .10000E-03    .24495        .59900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .41771        4.0814        .18998E-02   -1.5579    
   9  norm          .10000E-03    7.6545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3129        1.9734        .11371E-03   -1.5479    
  11  Prefactor     12.010        10.915        .11564E-03   -1.5015    
  12  Prefactor     .10026E-03    139.16        .58754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.7913        .16812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.356        27.319        .84724E-04   -1.4762    
  15  Prefactor     2.2824        8.5841        .27180E-03   -1.5406    
  16  Prefactor     15.985        24.370        .10016E-03   -1.4908    
  17  Prefactor     6.4414        6.2062        .15813E-03   -1.5200    
  18  norm          11.778        13.851        .11674E-03   -1.5021    
  19  Prefactor     .10000E-03    4.4103        .14531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .86077        .64679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .97759        .68916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10019E-03    35.007        .10736       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.9234        3.2871        .81114E-04   -1.5145    
  24  Prefactor     .10000E-03    1.0087        .70091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    14.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.4606        5.3523        .13136E-03   -1.5162    
  28  Prefactor     5.8516        5.2799        .14876E-03   -1.5224    
  29  Prefactor     .10000E-03    18.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .91957        .22091        .22723E-03   -.95776    
  31  Prefactor     .99129        .25341        .27512E-03   -.93020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57996e-08
Minuit parameter uncertainties:
  1  7.37795e-05
  2  114.01
  3  4.30821
  4  1.67799e-05
  5  3.9125
  6  21.9924
  7  2.13728e-06
  8  2.6113
  9  3.15556e-06
  10  1.97347
  11  10.9169
  12  0.0120248
  13  4.81831e-06
  14  27.3341
  15  8.58868
  16  24.3849
  17  6.20678
  18  13.8546
  19  1.91228e-05
  20  4.1919e-06
  21  4.02261e-06
  22  0.00520078
  23  3.28722
  24  1.44197e-06
  25  3.46761e-05
  26  0.000119866
  27  5.35264
  28  5.2803
  29  9.74856e-06
  30  0.221126
  31  0.253719
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.598e+01  2.438e+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:  9.913e-01  2.537e-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.196e-01  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/523135/likelihoodResults_346636801_346896001_4FGL_J0949.0+4038_daily_bin414.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) = 5118.82353439
delta logL = 0.00381932008258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5118.82192709
delta logL = 0.0054266247098

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.380       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4436       1.0000          .0000       10.000    
     3 'Normalizat'    .92268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98852       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=   5118.822     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      264 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.389        28.442        .96071E-04   -.24309E-03
   2  Index         2.4473        1.4834        .10818E-01   -.89081E-04
   3  Normalizat    .92262        .20102        .22690E-03    .99887E-03
   4  Prefactor     .98859        .25085        .27544E-03    .83769E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3889
  Index      = 2.44731
  Normalizat = 0.922622
  Prefactor  = 0.988591
 **********
 **   18 **HESSE 
 **********

 FCN=   5118.822     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.389        27.844        .19214E-04   -1.4874    
   2  Index         2.4473        1.4525        .43272E-03   -.53581    
   3  Normalizat    .92262        .20103        .45380E-04   -.95670    
   4  Prefactor     .98859        .25094        .55088E-04   -.93111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26989e-09
Minuit parameter uncertainties:
  1  27.8643
  2  1.48164
  3  0.201189
  4  0.251239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/523135': 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) = 5118.82192286
delta logL = 0.00543085117988

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.739e+01  2.786e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.447e+00  1.482e+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:  9.886e-01  2.512e-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.226e-01  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.77
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/523135/cmap_HighResolution_346636801_346896001_4FGL_J0949.0+4038_daily_bin414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', job_status='DONE', photon_flux_upper_limit='8.65e-08', time_completed='2021-09-01 03:20:41.990317', job_id='523135', GAL2='0.99', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630491641.99', return_code2='0', ts='0.77', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.43e-03', ts2='0.78', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='414' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:20:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 523135: <4FGL_J0949.0+4038_daily_bin414> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin414> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 03:05:21 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:05:23 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:05:23 2021
Terminated at Wed Sep  1 03:20:43 2021
Results reported at Wed Sep  1 03:20:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin414 147.262 40.6367 346636801 346896001 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 :                                   880.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            922 sec.

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

