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


Performing analysis on: 4FGL_J0949.2+1749_daily_bin415
RA = 147.316, Dec = 17.83
tmin = 346896001, tmax = 347155201
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='530994', job_status='RUN', time_executed='2021-09-01 03:34:53.025667', time_epoch_executed='1630492493.03' WHERE source_name='4FGL J0949.2+1749' and cadence='daily' and bin_id='415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530994/ft1_4FGL_J0949.2+1749_daily_bin415.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530994/ft2_4FGL_J0949.2+1749_daily_bin415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530994/ft1_4FGL_J0949.2+1749_daily_bin415.fits outfile=/scratch/kocevski/530994/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin415.fits ra=147.316 dec=17.83 rad=12.0 tmin=346896001.0 tmax=347155201.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.85
user 3.23
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/530994/ft2_4FGL_J0949.2+1749_daily_bin415.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/530994/ft2_4FGL_J0949.2+1749_daily_bin415.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/530994/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin415.fits evtable="EVENTS" outfile="/scratch/kocevski/530994/ft1_filtered_4FGL_J0949.2+1749_daily_bin415.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.88
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530994/ft1_filtered_4FGL_J0949.2+1749_daily_bin415.fits" evtable="EVENTS" scfile=/scratch/kocevski/530994/ft2_4FGL_J0949.2+1749_daily_bin415.fits sctable="SC_DATA" outfile=/scratch/kocevski/530994/ltcube_346896001_347155201_4FGL_J0949.2+1749_daily_bin415.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/530994/ft2_4FGL_J0949.2+1749_daily_bin415.fits
.....................!
real 12.23
user 11.42
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530994/ft1_filtered_4FGL_J0949.2+1749_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/530994/ft2_4FGL_J0949.2+1749_daily_bin415.fits sctable="SC_DATA" expcube=/scratch/kocevski/530994/ltcube_346896001_347155201_4FGL_J0949.2+1749_daily_bin415.fits outfile=/scratch/kocevski/530994/expmap_346896001_347155201_4FGL_J0949.2+1749_daily_bin415.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/530994/ltcube_346896001_347155201_4FGL_J0949.2+1749_daily_bin415.fits
.....................!
real 190.12
user 185.89
sys 3.77

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J0949.2+1749 @ 147.316 17.83

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/530994/ft1_filtered_4FGL_J0949.2+1749_daily_bin415.fits scfile=/scratch/kocevski/530994/ft2_4FGL_J0949.2+1749_daily_bin415.fits outfile=/scratch/kocevski/530994/cmap_346896001_347155201_4FGL_J0949.2+1749_daily_bin415.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.316 yref=17.83 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/530994/ft1_filtered_4FGL_J0949.2+1749_daily_bin415.fits scfile=/scratch/kocevski/530994/ft2_4FGL_J0949.2+1749_daily_bin415.fits outfile=/scratch/kocevski/530994/cmap_HighResolution_346896001_347155201_4FGL_J0949.2+1749_daily_bin415.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.316 yref=17.83 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.66
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/530994/ft1_filtered_4FGL_J0949.2+1749_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/530994/ft2_4FGL_J0949.2+1749_daily_bin415.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/530994/Model_4FGL_J0949.2+1749_daily_bin415.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/530994/ft1_filtered_4FGL_J0949.2+1749_daily_bin415.fits.....................!
real 54.65
user 51.71
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/530994/ft1_filtered_4FGL_J0949.2+1749_daily_bin415.fits', '/scratch/kocevski/530994/ft2_4FGL_J0949.2+1749_daily_bin415.fits', expMap='/scratch/kocevski/530994/expmap_346896001_347155201_4FGL_J0949.2+1749_daily_bin415.fits', expCube='/scratch/kocevski/530994/ltcube_346896001_347155201_4FGL_J0949.2+1749_daily_bin415.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/530994/Model_4FGL_J0949.2+1749_daily_bin415.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0949.2+1749'

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  4.911e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  7.531e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/530994/ft1_filtered_4FGL_J0949.2+1749_daily_bin415.fits
Spacecraft file(s): /scratch/kocevski/530994/ft2_4FGL_J0949.2+1749_daily_bin415.fits
Exposure map: /scratch/kocevski/530994/expmap_346896001_347155201_4FGL_J0949.2+1749_daily_bin415.fits
Exposure cube: /scratch/kocevski/530994/ltcube_346896001_347155201_4FGL_J0949.2+1749_daily_bin415.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/530994/Model_4FGL_J0949.2+1749_daily_bin415.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) = 5584.93086939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.065       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3262       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.397       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7799       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .53761E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    7.1388       1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.706       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6343       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .90414       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1445       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5584.930     FROM MIGRAD    STATUS=CONVERGED    303 CALLS     1479 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.068        13.255        .24422E-05   -.27911E-04
   2  norm          .10000E-03    2.9425       -.33143E-07** at limit **
   3  norm          3.3284        34.829        .10226E-04   -.41877E-04
   4  Prefactor     .10000E-03    46.459        .21317E-06** at limit **
   5  Prefactor     .10000E-03    1.9490        .99269E-07** at limit **
   6  Prefactor     .10000E-03    6.6944        .10286E-06** at limit **
   7  norm          .10000E-03    .48062        .12576E-06** at limit **
   8  Prefactor     .10000E-03    44.870        .36377E-05** at limit **
   9  Prefactor     12.407        26.904        .26215E-04   -.16118E-04
  10  Prefactor     2.7771        4.2348       -.72683E-06   -.47412E-03
  11  Prefactor     .38965E-01    1.2697        .29841E-07    .42901E-04
  12  norm          7.1380        7.7539        .16278E-05   -.14792E-03
  13  Prefactor     43.717        36.182        .14491E-04   -.40838E-05
  14  Prefactor     4.6368        7.5309       -.64760E-05   -.24843E-03
  15  Normalizat    .90383        .17454       -.23139E-05   -.50357E-04
  16  Prefactor     1.1445        .16570       -.14711E-05   -.90838E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0678
  norm       = 0.0001
  norm       = 3.32843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4074
  Prefactor  = 2.77714
  Prefactor  = 0.0389645
  norm       = 7.13798
  Prefactor  = 43.7167
  Prefactor  = 4.63683
  Normalizat = 0.903831
  Prefactor  = 1.14454
 **********
 **   18 **HESSE 
 **********

 FCN=   5584.930     FROM HESSE     STATUS=OK           205 CALLS     1684 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.068        13.252        .96955E-04   -1.4881    
   2  norm          .10000E-03    2.9487        .12520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3284        34.691        .22195E-03   -1.5343    
   4  Prefactor     .10000E-03    46.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.9579        .10188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .49993        .10106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    45.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.407        26.855        .11377E-03   -1.5003    
  10  Prefactor     2.7771        4.2249        .18280E-03   -1.5375    
  11  Prefactor     .38965E-01    26.533        .16237E-02   -1.5669    
  12  norm          7.1380        7.7395        .15013E-03   -1.5174    
  13  Prefactor     43.717        36.173        .60641E-04   -1.4385    
  14  Prefactor     4.6368        7.5881        .18696E-03   -1.5277    
  15  Normalizat    .90383        .20148        .24647E-03   -.96326    
  16  Prefactor     1.1445        .19083        .21529E-03   -.88056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72274e-10
Minuit parameter uncertainties:
  1  13.2546
  2  2.94531e-06
  3  21.5068
  4  3.31883e-05
  5  4.57844e-06
  6  7.38493e-06
  7  2.99189e-06
  8  2.81713e-06
  9  26.8807
  10  4.22536
  11  2.03187
  12  7.7406
  13  36.1914
  14  7.58963
  15  0.20165
  16  0.190947
Done.

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

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  1.241e+01  2.688e+01  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  7.531e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.145e+00  1.909e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  9.038e-01  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 147.316 17.830
Photon Flux Upper Limit: 8.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/530994/likelihoodResults_346896001_347155201_4FGL_J0949.2+1749_daily_bin415.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) = 5584.65881736
delta logL = 0.271256067446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5584.63430999
delta logL = 0.295763437428

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7297       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9576       1.0000          .0000       10.000    
     3 'Normalizat'    .87002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1650       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5584.634     FROM MIGRAD    STATUS=FAILED        80 CALLS      283 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7314        257.53        .16397E-03    .23242E-02
   2  Index         3.9587        6.3352        .80807E-02    .47343E-03
   3  Normalizat    .87019        .18995        .25072E-03    .82358E-03
   4  Prefactor     1.1647        .18054        .21365E-03    .78476E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5584.634     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      377 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7314        257.53        .28762E-03    .23242E-02
   2  Index         3.9587        6.3352        .16481E-02    .47343E-03
   3  Normalizat    .87019        .18995        .14295E-03    .82358E-03
   4  Prefactor     1.1647        .18054        .50461E-04    .78476E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5584.634     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      404 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7321        14.034        .65586E-05    .25453E-02
   2  Index         3.9586        2.2257        .32323E-03    .38642E-03
   3  Normalizat    .87019        .20207        .50145E-04    .80435E-03
   4  Prefactor     1.1647        .19256        .42730E-04    .77472E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.73206
  Index      = 3.95861
  Normalizat = 0.870186
  Prefactor  = 1.16474
 **********
 **   18 **HESSE 
 **********

 FCN=   5584.634     FROM HESSE     STATUS=OK            23 CALLS      427 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7321        13.670        .13117E-05   -1.5322    
   2  Index         3.9586        2.1720        .64646E-04   -.20981    
   3  Normalizat    .87019        .20207        .10029E-04   -.97516    
   4  Prefactor     1.1647        .19256        .85459E-05   -.87423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47007e-09
Minuit parameter uncertainties:
  1  13.6816
  2  2.25065
  3  0.20225
  4  0.192679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530994': 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) = 5584.63430729
delta logL = 0.295766143227

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  3.732e+00  1.368e+01  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  3.959e+00  2.251e+00  0.000e+00  1.000e+01 (-1.000e+00)
223        Scale:  7.531e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.165e+00  1.927e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  8.702e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
Ra Dec: 147.316 17.830

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/530994/cmap_HighResolution_346896001_347155201_4FGL_J0949.2+1749_daily_bin415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2021-09-01 03:43:13.869296', job_id='530994', GAL2='1.16', fit_tolerance='1e-08', EG2='0.87', EG='0.90', time_epoch_completed='1630492993.87', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.96e-01', ts2='0.89', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='415' AND source_name='4FGL J0949.2+1749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:43:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 530994: <4FGL_J0949.2+1749_daily_bin415> in cluster <slac> Done

Job <4FGL_J0949.2+1749_daily_bin415> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 03:30:31 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:30:32 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:30:32 2021
Terminated at Wed Sep  1 03:43:14 2021
Results reported at Wed Sep  1 03:43:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.2+1749_daily_bin415 147.316 17.83 346896001 347155201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0949.2+1749 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   493.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            763 sec.

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

