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


Performing analysis on: 4FGL_J0949.2+1749_daily_bin457
RA = 147.316, Dec = 17.83
tmin = 357782401, tmax = 358041601
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='531054', job_status='RUN', time_executed='2021-09-01 03:31:09.091988', time_epoch_executed='1630492269.09' WHERE source_name='4FGL J0949.2+1749' and cadence='daily' and bin_id='457'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/531054

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/531054/ft1_4FGL_J0949.2+1749_daily_bin457.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/531054/ft2_4FGL_J0949.2+1749_daily_bin457.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/531054/ft1_4FGL_J0949.2+1749_daily_bin457.fits outfile=/scratch/kocevski/531054/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin457.fits ra=147.316 dec=17.83 rad=12.0 tmin=357782401.0 tmax=358041601.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.54
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/531054/ft2_4FGL_J0949.2+1749_daily_bin457.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/531054/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin457.fits evtable="EVENTS" outfile="/scratch/kocevski/531054/ft1_filtered_4FGL_J0949.2+1749_daily_bin457.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.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/531054/ft1_filtered_4FGL_J0949.2+1749_daily_bin457.fits" evtable="EVENTS" scfile=/scratch/kocevski/531054/ft2_4FGL_J0949.2+1749_daily_bin457.fits sctable="SC_DATA" outfile=/scratch/kocevski/531054/ltcube_357782401_358041601_4FGL_J0949.2+1749_daily_bin457.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/531054/ft2_4FGL_J0949.2+1749_daily_bin457.fits
.....................!
real 11.70
user 11.37
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/531054/ft1_filtered_4FGL_J0949.2+1749_daily_bin457.fits evtable="EVENTS" scfile=/scratch/kocevski/531054/ft2_4FGL_J0949.2+1749_daily_bin457.fits sctable="SC_DATA" expcube=/scratch/kocevski/531054/ltcube_357782401_358041601_4FGL_J0949.2+1749_daily_bin457.fits outfile=/scratch/kocevski/531054/expmap_357782401_358041601_4FGL_J0949.2+1749_daily_bin457.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/531054/ltcube_357782401_358041601_4FGL_J0949.2+1749_daily_bin457.fits
.....................!
real 189.64
user 185.29
sys 3.99

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/531054/ft1_filtered_4FGL_J0949.2+1749_daily_bin457.fits scfile=/scratch/kocevski/531054/ft2_4FGL_J0949.2+1749_daily_bin457.fits outfile=/scratch/kocevski/531054/cmap_357782401_358041601_4FGL_J0949.2+1749_daily_bin457.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/531054/ft1_filtered_4FGL_J0949.2+1749_daily_bin457.fits scfile=/scratch/kocevski/531054/ft2_4FGL_J0949.2+1749_daily_bin457.fits outfile=/scratch/kocevski/531054/cmap_HighResolution_357782401_358041601_4FGL_J0949.2+1749_daily_bin457.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.53
user 0.39
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/531054/ft1_filtered_4FGL_J0949.2+1749_daily_bin457.fits', '/scratch/kocevski/531054/ft2_4FGL_J0949.2+1749_daily_bin457.fits', expMap='/scratch/kocevski/531054/expmap_357782401_358041601_4FGL_J0949.2+1749_daily_bin457.fits', expCube='/scratch/kocevski/531054/ltcube_357782401_358041601_4FGL_J0949.2+1749_daily_bin457.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/531054/Model_4FGL_J0949.2+1749_daily_bin457.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/531054/ft1_filtered_4FGL_J0949.2+1749_daily_bin457.fits
Spacecraft file(s): /scratch/kocevski/531054/ft2_4FGL_J0949.2+1749_daily_bin457.fits
Exposure map: /scratch/kocevski/531054/expmap_357782401_358041601_4FGL_J0949.2+1749_daily_bin457.fits
Exposure cube: /scratch/kocevski/531054/ltcube_357782401_358041601_4FGL_J0949.2+1749_daily_bin457.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/531054/Model_4FGL_J0949.2+1749_daily_bin457.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) = 5819.85918078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.320       1.0000         .10000E-03   10000.    
     2 'norm      '    7.3289       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8401       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.523       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1967       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.199       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.391       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8392       1.0000         .10000E-03   10000.    
    12 'norm      '    5.2438       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.152       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.421       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .89027       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0939       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=   5819.854     FROM MIGRAD    STATUS=CONVERGED    289 CALLS     1425 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.319        14.856       -.78942E-06    .15478E-03
   2  norm          7.3286        7.7487        .32095E-06   -.83696E-04
   3  norm          .10000E-03    9.4729       -.43284E-07** at limit **
   4  Prefactor     9.8379        68.098       -.77351E-05    .34240E-04
   5  Prefactor     .10000E-03    4.5458        .11538E-07** at limit **
   6  Prefactor     27.526        29.047       -.16215E-05    .63275E-04
   7  norm          1.1966        1.0254       -.55917E-06   -.43051E-02
   8  Prefactor     27.202        59.064        .46352E-05   -.44984E-04
   9  Prefactor     20.384        43.979       -.97425E-05    .14902E-03
  10  Prefactor     .10000E-03    9.4470       -.52302E-07** at limit **
  11  Prefactor     2.8391        2.7205       -.72894E-07   -.42175E-04
  12  norm          5.2442        5.9693        .94792E-06   -.25836E-03
  13  Prefactor     13.082        26.897       -.12308E-05   -.16917E-03
  14  Prefactor     11.422        10.214        .74309E-06   -.18935E-03
  15  Normalizat    .89028        .18627        .14655E-05   -.29923E-04
  16  Prefactor     1.0939        .16555        .13794E-06    .38711E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.3194
  norm       = 7.32858
  norm       = 0.0001
  Prefactor  = 9.83786
  Prefactor  = 0.0001
  Prefactor  = 27.526
  norm       = 1.19659
  Prefactor  = 27.2025
  Prefactor  = 20.3838
  Prefactor  = 0.0001
  Prefactor  = 2.83912
  norm       = 5.24417
  Prefactor  = 13.0823
  Prefactor  = 11.4221
  Normalizat = 0.890279
  Prefactor  = 1.09392
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.854     FROM HESSE     STATUS=OK           205 CALLS     1630 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.319        14.815        .72764E-04   -1.4606    
   2  norm          7.3286        7.7450        .14816E-03   -1.5166    
   3  norm          .10000E-03    9.4743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8379        67.526        .12774E-03   -1.5081    
   5  Prefactor     .10000E-03    4.6535        .15875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.526        29.034        .76364E-04   -1.4658    
   7  norm          1.1966        1.1959        .20775E-03   -1.5489    
   8  Prefactor     27.202        58.506        .76816E-04   -1.4664    
   9  Prefactor     20.384        42.481        .88698E-04   -1.4805    
  10  Prefactor     .10000E-03    9.7710        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8391        2.7218        .11922E-03   -1.5371    
  12  norm          5.2442        5.9182        .17553E-03   -1.5250    
  13  Prefactor     13.082        27.220        .55226E-03   -1.4984    
  14  Prefactor     11.422        10.190        .11854E-03   -1.5032    
  15  Normalizat    .89028        .21462        .26381E-03   -.96803    
  16  Prefactor     1.0939        .19067        .22226E-03   -.89661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72929e-09
Minuit parameter uncertainties:
  1  14.8173
  2  7.74609
  3  6.34408e-06
  4  51.6321
  5  2.78238e-06
  6  29.0489
  7  1.19596
  8  58.6299
  9  42.544
  10  4.1377e-05
  11  2.72188
  12  5.91884
  13  27.2457
  14  10.1911
  15  0.214824
  16  0.190791
Done.

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

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  2.038e+01  4.254e+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.094e+00  1.908e-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.903e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 147.316 17.830
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/531054/likelihoodResults_357782401_358041601_4FGL_J0949.2+1749_daily_bin457.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) = 5819.52388524
delta logL = 0.329805543987

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5819.50770295
delta logL = 0.345987836447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5463       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0523       1.0000          .0000       10.000    
     3 'Normalizat'    .83216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1301       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=   5819.508     FROM MIGRAD    STATUS=FAILED        80 CALLS      289 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5495        275.01        .17060E-03    .32042E-02
   2  Index         4.0535        6.8853        .73310E-02    .76739E-03
   3  Normalizat    .83232        .18645        .27202E-03    .14026E-02
   4  Prefactor     1.1300        .17327        .21915E-03    .13597E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5819.508     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      374 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5495        275.01        .23558E-03    .32042E-02
   2  Index         4.0535        6.8853        .14017E-02    .76739E-03
   3  Normalizat    .83232        .18645        .18171E-03    .14026E-02
   4  Prefactor     1.1300        .17327        .14831E-03    .13597E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5819.508     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      405 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5507        26.503        .68238E-05    .17393E-03
   2  Index         4.0533        2.4868        .29324E-03    .32954E-04
   3  Normalizat    .83232        .21879        .54404E-04    .14962E-04
   4  Prefactor     1.1300        .19564        .43829E-04    .14214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55075
  Index      = 4.05328
  Normalizat = 0.832316
  Prefactor  = 1.13005
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.508     FROM HESSE     STATUS=OK            23 CALLS      428 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5507        23.787        .13648E-05   -1.5237    
   2  Index         4.0533        2.3671        .11730E-04   -.19049    
   3  Normalizat    .83232        .21877        .10881E-04   -.98881    
   4  Prefactor     1.1300        .19551        .87659E-05   -.88512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86969e-11
Minuit parameter uncertainties:
  1  22.9966
  2  2.47002
  3  0.218999
  4  0.195635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/531054': 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) = 5819.50769898
delta logL = 0.345991798514

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  5.551e+00  2.300e+01  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  4.053e+00  2.470e+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.130e+00  1.956e-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.323e-01  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 147.316 17.830
Photon Index (Free Index): 4.05 +/- 2.47
Photon Flux (Free Index): 6.54e-08 +/- 7.27e-08
Energy Flux (Free Index): 9.70e-06 +/- 1.09e-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/531054/cmap_HighResolution_357782401_358041601_4FGL_J0949.2+1749_daily_bin457.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.48e-03', comment='SUCCESS', energy_flux2='9.70e-06', dlogl='3.46e-01', photon_flux2='6.54e-08', job_status='DONE', time_completed='2021-09-01 03:39:26.162938', photon_index_error2='2.47', photon_index2='4.05', ts='0.27', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.09e-05', EG='0.89', time_epoch_completed='1630492766.16', return_code='0', job_id='531054', GAL2='1.13', EG2='0.83', return_code2='0', photon_flux_error2='7.27e-08', ts2='1.06', photon_index='2.52' WHERE bin_id='457' AND source_name='4FGL J0949.2+1749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:39:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 531054: <4FGL_J0949.2+1749_daily_bin457> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.2+1749_daily_bin457 147.316 17.83 357782401 358041601 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 :                                   482.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   530 sec.
    Turnaround time :                            531 sec.

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

