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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin280
RA = 147.262, Dec = 40.6367
tmin = 311904001, tmax = 312163201
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='521765', job_status='RUN', time_executed='2021-09-01 03:01:40.849824', time_epoch_executed='1630490500.85' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521765

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521765/ft1_4FGL_J0949.0+4038_daily_bin280.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521765/ft2_4FGL_J0949.0+4038_daily_bin280.fits


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

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/521765/ft2_4FGL_J0949.0+4038_daily_bin280.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/521765/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin280.fits evtable="EVENTS" outfile="/scratch/kocevski/521765/ft1_filtered_4FGL_J0949.0+4038_daily_bin280.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 6.78
user 0.36
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521765/ft1_filtered_4FGL_J0949.0+4038_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/521765/ft2_4FGL_J0949.0+4038_daily_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/521765/ltcube_311904001_312163201_4FGL_J0949.0+4038_daily_bin280.fits outfile=/scratch/kocevski/521765/expmap_311904001_312163201_4FGL_J0949.0+4038_daily_bin280.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/521765/ltcube_311904001_312163201_4FGL_J0949.0+4038_daily_bin280.fits
.....................!
real 193.87
user 185.41
sys 4.15

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/521765/ft1_filtered_4FGL_J0949.0+4038_daily_bin280.fits scfile=/scratch/kocevski/521765/ft2_4FGL_J0949.0+4038_daily_bin280.fits outfile=/scratch/kocevski/521765/cmap_311904001_312163201_4FGL_J0949.0+4038_daily_bin280.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.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5879       1.0000         .10000E-03   10000.    
     2 'Prefactor '    72.612       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6027       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.601       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .32509E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .67283       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6854       1.0000         .10000E-03   10000.    
     9 'norm      '    .23925E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4909       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.116       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37952E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15549E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .37842E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.695       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13442E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    22.752       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6686       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9485       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8821       1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.713       1.0000         .10000E-03   10000.    
    23 'norm      '    3.2267       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17318E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10468E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .35005E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.8527       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.055       1.0000         .10000E-03   10000.    
    29 'Prefactor '    20.842       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .88726       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .72585       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=   5262.203     FROM MIGRAD    STATUS=CONVERGED    912 CALLS     3691 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5980        2.9628       -.49293E-06   -.19360E-03
   2  Prefactor     70.617        62.186       -.68817E-06   -.17188E-04
   3  Prefactor     4.6029        4.2430        .27977E-06   -.20361E-02
   4  Prefactor     37.409        33.986        .93179E-06    .99778E-04
   5  Prefactor     .10000E-03    .63378       -.20397E-07** at limit **
   6  Prefactor     .10000E-03    5.8697        .83835E-08** at limit **
   7  norm          .67236        .92172       -.18642E-05    .16735E-02
   8  Prefactor     3.6903        5.6133        .59830E-05    .91037E-03
   9  norm          .10000E-03    4.4690        .24978E-07** at limit **
  10  Prefactor     2.4927        1.7124       -.10173E-06    .90371E-05
  11  Prefactor     12.125        9.8301        .15443E-06    .11378E-03
  12  Prefactor     .10000E-03    10.366        .19153E-05** at limit **
  13  norm          .10000E-03    8.0749       -.77833E-07** at limit **
  14  Prefactor     .10000E-03    10.632        .65791E-07** at limit **
  15  Prefactor     .10000E-03    8.3104        .67859E-07** at limit **
  16  Prefactor     35.132        35.827       -.27984E-05   -.20366E-03
  17  Prefactor     .10000E-03    9.5780       -.11659E-07** at limit **
  18  norm          22.725        13.059        .15738E-07    .54835E-04
  19  Prefactor     7.6620        5.7422        .26988E-06    .82557E-04
  20  Prefactor     2.9469        2.5095        .27986E-07   -.50485E-04
  21  Prefactor     3.8827        3.9753        .58631E-06   -.23360E-02
  22  Prefactor     37.432        36.530        .96651E-06    .20948E-04
  23  norm          3.2265        2.1423        .18600E-07    .33952E-04
  24  Prefactor     .10002E-03    3.1143       -.36573E-07** at limit **
  25  norm          .10000E-03    6.9943       -.25901E-06** at limit **
  26  Prefactor     .10000E-03    113.74       -.64976E-06** at limit **
  27  Prefactor     2.8284        3.2506        .38318E-06   -.27812E-02
  28  Prefactor     10.960        7.0282       -.12503E-06   -.30127E-03
  29  Prefactor     22.594        44.365       -.18613E-05   -.88196E-04
  30  Normalizat    .88788        .17822       -.24792E-05    .12051E-03
  31  Prefactor     .72550        .19724        .19925E-05   -.14087E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.59805
  Prefactor  = 70.6165
  Prefactor  = 4.60295
  Prefactor  = 37.409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.672363
  Prefactor  = 3.69025
  norm       = 0.0001
  Prefactor  = 2.49275
  Prefactor  = 12.125
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.1317
  Prefactor  = 0.0001
  norm       = 22.725
  Prefactor  = 7.66196
  Prefactor  = 2.94694
  Prefactor  = 3.88271
  Prefactor  = 37.4316
  norm       = 3.22645
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.82839
  Prefactor  = 10.9603
  Prefactor  = 22.5944
  Normalizat = 0.887882
  Prefactor  = 0.725504
 **********
 **   18 **HESSE 
 **********

 FCN=   5262.203     FROM HESSE     STATUS=OK           634 CALLS     4325 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5980        2.9584        .12460E-03   -1.5386    
   2  Prefactor     70.617        62.169        .47114E-04   -1.4025    
   3  Prefactor     4.6029        4.6696        .74779E-03   -1.5279    
   4  Prefactor     37.409        34.021        .65361E-04   -1.4484    
   5  Prefactor     .10000E-03    .63493        .56385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8784        .17161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .67236        .91238        .43417E-03   -1.5544    
   8  Prefactor     3.6903        5.6084        .10814E-03   -1.5324    
   9  norm          .10000E-03    4.5308        .14970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4927        1.7095        .75977E-04   -1.5392    
  11  Prefactor     12.125        9.8328        .11509E-03   -1.5011    
  12  Prefactor     .10000E-03    10.434        .21287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.0911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.5492        .40699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.132        36.174        .67077E-04   -1.4522    
  17  Prefactor     .10000E-03    9.6827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          22.725        13.072        .83975E-04   -1.4754    
  19  Prefactor     7.6620        5.7495        .14198E-03   -1.5154    
  20  Prefactor     2.9469        2.5033        .10277E-03   -1.5365    
  21  Prefactor     3.8827        4.7336        .73725E-03   -1.5314    
  22  Prefactor     37.432        36.784        .65264E-04   -1.4484    
  23  norm          3.2265        2.1422        .83955E-04   -1.5349    
  24  Prefactor     .10002E-03    8.6092        .37585E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7.0762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    114.49        .19655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.8284        3.9729        .80502E-03   -1.5372    
  28  Prefactor     10.960        7.0119        .12049E-03   -1.5046    
  29  Prefactor     22.594        44.391        .87734E-04   -1.4757    
  30  Normalizat    .88788        .21209        .22509E-03   -.96887    
  31  Prefactor     .72550        .23213        .29266E-03   -1.0254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06734e-08
Minuit parameter uncertainties:
  1  2.9586
  2  62.2259
  3  4.66995
  4  34.0385
  5  2.22762e-06
  6  2.49436e-06
  7  0.9124
  8  5.60924
  9  1.16259e-06
  10  1.70955
  11  9.83407
  12  0.000159657
  13  3.77772e-06
  14  7.50324e-06
  15  1.72305e-05
  16  36.1971
  17  6.93691e-06
  18  13.0739
  19  5.7499
  20  2.50342
  21  4.73405
  22  36.806
  23  2.14229
  24  0.000739624
  25  1.44977e-05
  26  0.000140833
  27  3.97332
  28  7.01241
  29  44.4554
  30  0.212293
  31  0.232444
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  3.513e+01  3.620e+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:  7.255e-01  2.324e-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.879e-01  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.25
Ra Dec: 147.262 40.637
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.69e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 9.60e-06 +/- 9.89e-06

TS (Fixed Index): 1.25
Ra Dec: 147.262 40.637
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/521765/likelihoodResults_311904001_312163201_4FGL_J0949.0+4038_daily_bin280.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) = 5262.19422162
delta logL = 0.00920882031278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5262.18538532
delta logL = 0.0180451224442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.578       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4126       1.0000          .0000       10.000    
     3 'Normalizat'    .89453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71802       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=   5262.185     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      242 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.567        52.001        .62168E-04    .44302E-03
   2  Index         2.4126        .97871        .88818E-02    .21342E-03
   3  Normalizat    .89460        .19224        .22432E-03   -.83076E-03
   4  Prefactor     .71799        .22655        .29402E-03   -.81797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.5667
  Index      = 2.41265
  Normalizat = 0.8946
  Prefactor  = 0.717987
 **********
 **   18 **HESSE 
 **********

 FCN=   5262.185     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.567        49.789        .12434E-04   -1.4418    
   2  Index         2.4126        .93692        .35527E-03   -.54389    
   3  Normalizat    .89460        .19212        .44864E-04   -.96650    
   4  Prefactor     .71799        .22631        .58804E-04   -1.0283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14681e-09
Minuit parameter uncertainties:
  1  49.8384
  2  0.94457
  3  0.192266
  4  0.226601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521765': 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) = 5262.18538517
delta logL = 0.0180452740324

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  4.157e+01  4.984e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.413e+00  9.446e-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:  7.180e-01  2.266e-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.946e-01  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 147.262 40.637
Photon Index (Free Index): 2.41 +/- 0.94
Photon Flux (Free Index): 3.38e-08 +/- 3.89e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.33e-05

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/521765/cmap_HighResolution_311904001_312163201_4FGL_J0949.0+4038_daily_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', comment='SUCCESS', photon_flux='3.69e-08', energy_flux2='1.09e-05', photon_flux_error='3.80e-08', dlogl='1.80e-02', energy_flux='9.60e-06', photon_flux2='3.38e-08', job_status='DONE', time_completed='2021-09-01 03:15:49.547660', photon_index_error2='0.94', photon_index2='2.41', ts='1.25', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.33e-05', EG='0.89', time_epoch_completed='1630491349.55', return_code='0', job_id='521765', GAL2='0.72', EG2='0.89', return_code2='0', energy_flux_error='9.89e-06', photon_flux_error2='3.89e-08', ts2='1.27', photon_index='2.61' WHERE bin_id='280' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:15:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 521765: <4FGL_J0949.0+4038_daily_bin280> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin280 147.262 40.6367 311904001 312163201 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 :                                   827.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             325.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

