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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin1029
RA = 147.262, Dec = 40.6367
tmin = 506044801, tmax = 506304001
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='525157', job_status='RUN', time_executed='2021-09-01 03:11:12.643092', time_epoch_executed='1630491072.64' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/525157

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/525157/ft1_4FGL_J0949.0+4038_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/525157/ft2_4FGL_J0949.0+4038_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/525157/ft1_4FGL_J0949.0+4038_daily_bin1029.fits outfile=/scratch/kocevski/525157/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1029.fits ra=147.262 dec=40.6367 rad=12.0 tmin=506044801.0 tmax=506304001.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.29
user 4.02
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/525157/ft1_filtered_4FGL_J0949.0+4038_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/525157/ft2_4FGL_J0949.0+4038_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/525157/ltcube_506044801_506304001_4FGL_J0949.0+4038_daily_bin1029.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/525157/ft2_4FGL_J0949.0+4038_daily_bin1029.fits
.....................!
real 12.13
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/525157/ft1_filtered_4FGL_J0949.0+4038_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/525157/ft2_4FGL_J0949.0+4038_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/525157/ltcube_506044801_506304001_4FGL_J0949.0+4038_daily_bin1029.fits outfile=/scratch/kocevski/525157/expmap_506044801_506304001_4FGL_J0949.0+4038_daily_bin1029.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/525157/ltcube_506044801_506304001_4FGL_J0949.0+4038_daily_bin1029.fits
.....................!
real 190.43
user 185.36
sys 4.40

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/525157/ft1_filtered_4FGL_J0949.0+4038_daily_bin1029.fits scfile=/scratch/kocevski/525157/ft2_4FGL_J0949.0+4038_daily_bin1029.fits outfile=/scratch/kocevski/525157/cmap_506044801_506304001_4FGL_J0949.0+4038_daily_bin1029.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/525157/ft1_filtered_4FGL_J0949.0+4038_daily_bin1029.fits scfile=/scratch/kocevski/525157/ft2_4FGL_J0949.0+4038_daily_bin1029.fits outfile=/scratch/kocevski/525157/cmap_HighResolution_506044801_506304001_4FGL_J0949.0+4038_daily_bin1029.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0712       1.0000         .10000E-03   10000.    
     2 'Prefactor '    82.075       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2192       1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.281       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6342       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1340       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1953       1.0000         .10000E-03   10000.    
     9 'norm      '    .10212E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .68883       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30798E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    61.741       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.010       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4666       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18446E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12703E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .31807       1.0000         .10000E-03   10000.    
    25 'norm      '    14.931       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.3368       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.3000       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .92403       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .89034       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=   5225.143     FROM MIGRAD    STATUS=CONVERGED    824 CALLS     4241 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0726        1.8263       -.61947E-06   -.21000E-02
   2  Prefactor     82.068        70.738        .16146E-05   -.24428E-05
   3  Prefactor     2.2198        2.7455        .23008E-05    .55697E-03
   4  Prefactor     51.273        53.998        .19231E-05    .60615E-05
   5  Prefactor     .10000E-03    1.7836        .13426E-06** at limit **
   6  Prefactor     6.6327        17.129       -.13050E-05   -.56133E-04
   7  norm          1.1339        .65524        .50243E-07    .29973E-02
   8  Prefactor     2.1955        3.6865        .17839E-06    .30408E-03
   9  norm          .10000E-03    8.7377        .19226E-06** at limit **
  10  Prefactor     .68946        1.8250        .13985E-06    .10169E-03
  11  Prefactor     .10000E-03    3.7619       -.12072E-06** at limit **
  12  Prefactor     .10000E-03    24.162        .96268E-06** at limit **
  13  norm          .10000E-03    4.6875       -.13715E-06** at limit **
  14  Prefactor     .10000E-03    6.8434       -.17350E-06** at limit **
  15  Prefactor     .10006E-03    27.978        .13189E-04** at limit **
  16  Prefactor     61.741        32.329        .14915E-07    .22327E-05
  17  Prefactor     .10000E-03    2.9923       -.96849E-08** at limit **
  18  norm          15.011        12.026        .46031E-07    .78072E-04
  19  Prefactor     5.4611        6.2497        .12979E-05    .65497E-03
  20  Prefactor     .10000E-03    1.1231       -.48310E-08** at limit **
  21  Prefactor     .10000E-03    2.4766       -.72767E-06** at limit **
  22  Prefactor     .10000E-03    56.826        .22346E-06** at limit **
  23  norm          .10000E-03    1.3213       -.30984E-06** at limit **
  24  Prefactor     .30163        2.4542        .81950E-08   -.21519E-04
  25  norm          14.924        9.6698       -.10264E-06   -.19156E-03
  26  Prefactor     .10000E-03    14.702        .93123E-07** at limit **
  27  Prefactor     3.3369        3.2291        .73128E-08   -.60225E-04
  28  Prefactor     3.3023        4.5128        .79222E-07    .20795E-04
  29  Prefactor     .10000E-03    10.346       -.54948E-06** at limit **
  30  Normalizat    .92368        .17434        .33495E-06    .25933E-03
  31  Prefactor     .89062        .20403       -.52664E-06    .18929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.07257
  Prefactor  = 82.0685
  Prefactor  = 2.21985
  Prefactor  = 51.2732
  Prefactor  = 0.0001
  Prefactor  = 6.6327
  norm       = 1.13392
  Prefactor  = 2.19545
  norm       = 0.000100001
  Prefactor  = 0.689458
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100055
  Prefactor  = 61.7408
  Prefactor  = 0.0001
  norm       = 15.011
  Prefactor  = 5.46107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.301634
  norm       = 14.9245
  Prefactor  = 0.0001
  Prefactor  = 3.33691
  Prefactor  = 3.30226
  Prefactor  = 0.0001
  Normalizat = 0.923677
  Prefactor  = 0.890623
 **********
 **   18 **HESSE 
 **********

 FCN=   5225.143     FROM HESSE     STATUS=OK           634 CALLS     4875 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0726        1.6188        .12627E-02   -1.5501    
   2  Prefactor     82.068        70.713        .22168E-03   -1.3894    
   3  Prefactor     2.2198        3.6203        .84843E-03   -1.5410    
   4  Prefactor     51.273        53.727        .56004E-04   -1.4275    
   5  Prefactor     .10000E-03    6.7945        .17699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6327        17.043        .15580E-03   -1.5193    
   7  norm          1.1339        .68708        .32797E-04   -1.5495    
   8  Prefactor     2.1955        3.8482        .12822E-03   -1.5412    
   9  norm          .10000E-03    8.9586        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .68946        1.7183        .14573E-03   -1.5542    
  11  Prefactor     .10000E-03    3.7812        .13692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.6893        .15284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10006E-03    40.407        .36874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     61.741        32.443        .51066E-04   -1.4135    
  17  Prefactor     .10000E-03    2.9996        .12211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.011        12.023        .10338E-03   -1.4933    
  19  Prefactor     5.4611        6.0485        .17186E-03   -1.5241    
  20  Prefactor     .10000E-03    1.1380        .74794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3153        .20306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    57.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.1960        .16144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .30163        7.7737        .19814E-02   -1.5598    
  25  norm          14.924        9.6611        .10365E-03   -1.4935    
  26  Prefactor     .10000E-03    14.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.3369        3.2275        .12216E-03   -1.5343    
  28  Prefactor     3.3023        4.4857        .17073E-03   -1.5345    
  29  Prefactor     .10000E-03    10.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .92368        .20617        .21707E-03   -.95633    
  31  Prefactor     .89062        .24171        .27461E-03   -.96470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93488e-08
Minuit parameter uncertainties:
  1  1.61891
  2  70.7854
  3  3.62069
  4  53.778
  5  2.15113e-05
  6  17.0554
  7  0.68708
  8  3.84866
  9  0.000199455
  10  1.71844
  11  1.97308e-05
  12  0.000499934
  13  6.70309e-06
  14  2.71066e-06
  15  0.00299083
  16  32.4524
  17  4.77703e-06
  18  12.0253
  19  6.04914
  20  3.09799e-06
  21  8.53622e-05
  22  0.000981619
  23  4.1846e-05
  24  3.06249
  25  9.66206
  26  2.70632e-05
  27  3.2277
  28  4.48619
  29  5.1947e-05
  30  0.206349
  31  0.241996
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  6.174e+01  3.245e+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.906e-01  2.420e-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.237e-01  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.36
Ra Dec: 147.262 40.637
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 6.48e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 8.87e-06

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) = 5225.1411549
delta logL = 0.00152296771284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5225.13991721
delta logL = 0.00276065974413

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.658       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5618       1.0000          .0000       10.000    
     3 'Normalizat'    .92673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88787       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=   5225.140     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      258 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.684        43.715        .50296E-04    .59990E-04
   2  Index         2.5617        .64036        .60181E-02    .28717E-03
   3  Normalizat    .92671        .19527        .21677E-03   -.21031E-04
   4  Prefactor     .88798        .23901        .27496E-03   -.56397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.6839
  Index      = 2.56165
  Normalizat = 0.92671
  Prefactor  = 0.887977
 **********
 **   18 **HESSE 
 **********

 FCN=   5225.140     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.684        42.368        .10059E-04   -1.4110    
   2  Index         2.5617        .62033        .12036E-02   -.50942    
   3  Normalizat    .92671        .19526        .86708E-05   -.95528    
   4  Prefactor     .88798        .23909        .10998E-04   -.96562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40472e-11
Minuit parameter uncertainties:
  1  42.3883
  2  0.622435
  3  0.195414
  4  0.239369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/525157': 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) = 5225.13991665
delta logL = 0.00276121724801

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  6.368e+01  4.239e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.562e+00  6.224e-01  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.880e-01  2.394e-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.267e-01  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.33
Ra Dec: 147.262 40.637
Photon Index (Free Index): 2.56 +/- 0.62
Photon Flux (Free Index): 6.28e-08 +/- 4.25e-08
Energy Flux (Free Index): 1.71e-05 +/- 9.66e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/525157/cmap_HighResolution_506044801_506304001_4FGL_J0949.0+4038_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.48e-08', energy_flux2='1.71e-05', photon_flux_error='3.40e-08', dlogl='2.76e-03', energy_flux='1.69e-05', photon_flux2='6.28e-08', job_status='DONE', time_completed='2021-09-01 03:24:34.330827', photon_index_error2='0.62', photon_index2='2.56', ts='8.36', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='9.66e-06', EG='0.92', time_epoch_completed='1630491874.33', return_code='0', job_id='525157', GAL2='0.89', EG2='0.93', return_code2='0', energy_flux_error='8.87e-06', photon_flux_error2='4.25e-08', ts2='8.33', photon_index='2.61' WHERE bin_id='1029' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:24:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 525157: <4FGL_J0949.0+4038_daily_bin1029> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin1029 147.262 40.6367 506044801 506304001 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 :                                   784.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

