/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 165 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.2+1749_daily_bin280
RA = 147.316, Dec = 17.83
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='529874', job_status='RUN', time_executed='2021-09-01 03:28:51.445085', time_epoch_executed='1630492131.45' WHERE source_name='4FGL J0949.2+1749' and cadence='daily' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/529874

Creating custom pfile directory:
/scratch/kocevski/529874/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/529874/ft1_4FGL_J0949.2+1749_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/529874/ft2_4FGL_J0949.2+1749_daily_bin280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/529874/ft1_4FGL_J0949.2+1749_daily_bin280.fits outfile=/scratch/kocevski/529874/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin280.fits ra=147.316 dec=17.83 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 3.42
user 3.22
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/529874/ft1_filtered_4FGL_J0949.2+1749_daily_bin280.fits" evtable="EVENTS" scfile=/scratch/kocevski/529874/ft2_4FGL_J0949.2+1749_daily_bin280.fits sctable="SC_DATA" outfile=/scratch/kocevski/529874/ltcube_311904001_312163201_4FGL_J0949.2+1749_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/529874/ft2_4FGL_J0949.2+1749_daily_bin280.fits
.....................!
real 11.59
user 11.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/529874/ft1_filtered_4FGL_J0949.2+1749_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/529874/ft2_4FGL_J0949.2+1749_daily_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/529874/ltcube_311904001_312163201_4FGL_J0949.2+1749_daily_bin280.fits outfile=/scratch/kocevski/529874/expmap_311904001_312163201_4FGL_J0949.2+1749_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/529874/ltcube_311904001_312163201_4FGL_J0949.2+1749_daily_bin280.fits
.....................!
real 189.46
user 184.53
sys 4.56

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/529874/ft1_filtered_4FGL_J0949.2+1749_daily_bin280.fits scfile=/scratch/kocevski/529874/ft2_4FGL_J0949.2+1749_daily_bin280.fits outfile=/scratch/kocevski/529874/cmap_311904001_312163201_4FGL_J0949.2+1749_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.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/529874/ft1_filtered_4FGL_J0949.2+1749_daily_bin280.fits scfile=/scratch/kocevski/529874/ft2_4FGL_J0949.2+1749_daily_bin280.fits outfile=/scratch/kocevski/529874/cmap_HighResolution_311904001_312163201_4FGL_J0949.2+1749_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.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/529874/ft1_filtered_4FGL_J0949.2+1749_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/529874/ft2_4FGL_J0949.2+1749_daily_bin280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/529874/Model_4FGL_J0949.2+1749_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/529874/ft1_filtered_4FGL_J0949.2+1749_daily_bin280.fits.....................!
real 58.84
user 57.43
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .19451E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10732E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .13252E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13479E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.141       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4344       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1005       1.0000         .10000E-03   10000.    
    12 'norm      '    5.3693       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.157       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8169       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1932       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0385       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.

 FCN=   6175.724     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     1722 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.716        .18142E-02** at limit **
   2  norm          .10000E-03    2.7107        .12625E-02** at limit **
   3  norm          .10000E-03    45.747        .14570    ** at limit **
   4  Prefactor     .10000E-03    195.01        .18142E-02** at limit **
   5  Prefactor     .10000E-03    8.2161        .36285E-03** at limit **
   6  Prefactor     .10000E-03    10.421        .18142E-02** at limit **
   7  norm          .10000E-03    4.8497        .11731E-02** at limit **
   8  Prefactor     .10000E-03    121.77        .18142E-02** at limit **
   9  Prefactor     26.163        35.897        .78351E-04    .14075E-04
  10  Prefactor     5.4364        6.1107        .86186E-03    .45693E-04
  11  Prefactor     5.1001        3.0256        .51132E-03    .33973E-04
  12  norm          5.3678        7.2589        .17343E-03    .46541E-05
  13  Prefactor     21.139        37.751        .87079E-04    .53528E-05
  14  Prefactor     7.8217        11.437        .14342E-03   -.19817E-05
  15  Normalizat    1.1934        .22359        .24990E-03    .87621E-04
  16  Prefactor     1.0384        .19911        .24133E-03    .11283E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.163
  Prefactor  = 5.4364
  Prefactor  = 5.10014
  norm       = 5.36779
  Prefactor  = 21.1389
  Prefactor  = 7.82171
  Normalizat = 1.19337
  Prefactor  = 1.03844
 **********
 **   18 **HESSE 
 **********

 FCN=   6175.724     FROM HESSE     STATUS=OK           199 CALLS     1921 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.734        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.7108        .25249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    45.780        .14562       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    195.06        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.2164        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.8876        .23463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    121.79        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.163        35.893        .31340E-05   -1.4685    
  10  Prefactor     5.4364        6.1093        .34474E-04   -1.5242    
  11  Prefactor     5.1001        3.0255        .20453E-04   -1.5256    
  12  norm          5.3678        7.2586        .69373E-05   -1.5245    
  13  Prefactor     21.139        37.763        .34832E-05   -1.4788    
  14  Prefactor     7.8217        11.438        .57368E-05   -1.5149    
  15  Normalizat    1.1934        .22382        .99958E-05   -.86808    
  16  Prefactor     1.0384        .19934        .96531E-05   -.91459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10209e-11
Minuit parameter uncertainties:
  1  4.296e-05
  2  1.13258e-06
  3  3.51992e-06
  4  0.00042807
  5  2.73267e-05
  6  5.73169e-06
  7  3.36812e-05
  8  0.000142265
  9  35.9227
  10  6.10999
  11  3.02557
  12  7.25979
  13  37.8056
  14  11.4408
  15  0.223998
  16  0.199486
Done.

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

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  2.616e+01  3.592e+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.038e+00  1.995e-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:  1.193e+00  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/529874/likelihoodResults_311904001_312163201_4FGL_J0949.2+1749_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) = 6175.31141768
delta logL = 0.412340475244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6175.2945379
delta logL = 0.429220258992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4224       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7873       1.0000          .0000       10.000    
     3 'Normalizat'    1.1378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0726       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6175.295     FROM MIGRAD    STATUS=FAILED       104 CALLS      307 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3348        344.86        .65278E-03   -.91154E-04
   2  Index         3.7915        6.8204        .69217E-02    .52957E-03
   3  Normalizat    1.1379        .21303        .25506E-03    .45107E-04
   4  Prefactor     1.0726        .19607        .23797E-03    .95023E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6175.295     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      391 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3348        344.86        .32976E-03   -.91154E-04
   2  Index         3.7915        6.8204        .95599E-03    .52957E-03
   3  Normalizat    1.1379        .21303        .22985E-03    .45107E-04
   4  Prefactor     1.0726        .19607        .19839E-03    .95023E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6175.295     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      423 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3349        31.663        .26111E-04   -.72710E-04
   2  Index         3.7915        2.0558        .13843E-02   -.18158E-04
   3  Normalizat    1.1379        .22903        .10202E-04    .43235E-04
   4  Prefactor     1.0726        .20403        .95186E-05    .91727E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.33485
  Index      = 3.7915
  Normalizat = 1.13793
  Prefactor  = 1.07259
 **********
 **   18 **HESSE 
 **********

 FCN=   6175.295     FROM HESSE     STATUS=OK            23 CALLS      446 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3349        26.825        .10445E-05   -1.5097    
   2  Index         3.7915        1.7554        .55373E-04   -.24412    
   3  Normalizat    1.1379        .22870        .20405E-05   -.88543    
   4  Prefactor     1.0726        .20347        .19037E-05   -.90348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71302e-11
Minuit parameter uncertainties:
  1  26.8599
  2  1.79615
  3  0.228898
  4  0.203618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/529874': 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) = 6175.29452995
delta logL = 0.429228202883

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  9.335e+00  2.686e+01  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  3.791e+00  1.796e+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.073e+00  2.036e-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:  1.138e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 147.316 17.830
Photon Index (Free Index): 3.79 +/- 1.80
Photon Flux (Free Index): 7.08e-08 +/- 6.67e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.01e-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/529874/cmap_HighResolution_311904001_312163201_4FGL_J0949.2+1749_daily_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-03', comment='SUCCESS', energy_flux2='1.10e-05', dlogl='4.29e-01', photon_flux2='7.08e-08', job_status='DONE', time_completed='2021-09-01 03:37:30.068022', photon_index_error2='1.80', photon_index2='3.79', ts='0.70', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.01e-05', EG='1.19', time_epoch_completed='1630492650.07', return_code='0', job_id='529874', GAL2='1.07', EG2='1.14', return_code2='0', photon_flux_error2='6.67e-08', ts2='1.63', photon_index='2.52' WHERE bin_id='280' AND source_name='4FGL J0949.2+1749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:37:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 529874: <4FGL_J0949.2+1749_daily_bin280> in cluster <slac> Done

Job <4FGL_J0949.2+1749_daily_bin280> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 03:25:54 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:25:55 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:25:55 2021
Terminated at Wed Sep  1 03:37:30 2021
Results reported at Wed Sep  1 03:37:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.2+1749_daily_bin280 147.316 17.83 311904001 312163201 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 :                                   516.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            696 sec.

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

