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


Performing analysis on: 4FGL_J0949.2+1749_daily_bin585
RA = 147.316, Dec = 17.83
tmin = 390960001, tmax = 391219201
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='531243', job_status='RUN', time_executed='2021-09-01 03:31:29.347985', time_epoch_executed='1630492289.35' WHERE source_name='4FGL J0949.2+1749' and cadence='daily' and bin_id='585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/531243

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/531243/ft1_4FGL_J0949.2+1749_daily_bin585.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/531243/ft2_4FGL_J0949.2+1749_daily_bin585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/531243/ft1_4FGL_J0949.2+1749_daily_bin585.fits outfile=/scratch/kocevski/531243/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin585.fits ra=147.316 dec=17.83 rad=12.0 tmin=390960001.0 tmax=391219201.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.56
user 4.21
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/531243/ft1_filtered_4FGL_J0949.2+1749_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/531243/ft2_4FGL_J0949.2+1749_daily_bin585.fits sctable="SC_DATA" expcube=/scratch/kocevski/531243/ltcube_390960001_391219201_4FGL_J0949.2+1749_daily_bin585.fits outfile=/scratch/kocevski/531243/expmap_390960001_391219201_4FGL_J0949.2+1749_daily_bin585.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/531243/ltcube_390960001_391219201_4FGL_J0949.2+1749_daily_bin585.fits
.....................!
real 189.54
user 185.36
sys 3.86

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/531243/ft1_filtered_4FGL_J0949.2+1749_daily_bin585.fits scfile=/scratch/kocevski/531243/ft2_4FGL_J0949.2+1749_daily_bin585.fits outfile=/scratch/kocevski/531243/cmap_390960001_391219201_4FGL_J0949.2+1749_daily_bin585.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.66
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/531243/ft1_filtered_4FGL_J0949.2+1749_daily_bin585.fits scfile=/scratch/kocevski/531243/ft2_4FGL_J0949.2+1749_daily_bin585.fits outfile=/scratch/kocevski/531243/cmap_HighResolution_390960001_391219201_4FGL_J0949.2+1749_daily_bin585.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.624       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6914       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.734       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .55080       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7891       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.185       1.0000         .10000E-03   10000.    
    12 'norm      '    3.6085       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9972       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1119       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .95379       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=   6344.153     FROM MIGRAD    STATUS=CONVERGED    296 CALLS     1233 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.620        13.195        .25315E-08   -.20801E-04
   2  norm          .10000E-03    2.3902        .80748E-08** at limit **
   3  norm          .10000E-03    19.436       -.21100E-06** at limit **
   4  Prefactor     2.6746        82.301       -.15654E-04   -.15727E-03
   5  Prefactor     10.735        7.5421        .25147E-06    .51713E-04
   6  Prefactor     .10000E-03    8.1111        .19888E-07** at limit **
   7  norm          .55052        .85870        .18046E-06    .22174E-03
   8  Prefactor     .10000E-03    30.600       -.12280E-05** at limit **
   9  Prefactor     3.7882        60.749        .45178E-07   -.14723E-04
  10  Prefactor     .10000E-03    6.4619        .47944E-07** at limit **
  11  Prefactor     12.184        4.2722        .13898E-07   -.13054E-05
  12  norm          3.6096        5.9529        .12553E-06   -.90328E-04
  13  Prefactor     .10000E-03    29.431        .14679E-05** at limit **
  14  Prefactor     4.9979        6.9650        .30926E-05   -.83557E-03
  15  Normalizat    1.1119        .17701       -.77071E-06    .44648E-04
  16  Prefactor     .95383        .15633        .43619E-06   -.37149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.6205
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.67458
  Prefactor  = 10.7345
  Prefactor  = 0.0001
  norm       = 0.550522
  Prefactor  = 0.000100001
  Prefactor  = 3.78819
  Prefactor  = 0.0001
  Prefactor  = 12.1841
  norm       = 3.60956
  Prefactor  = 0.000100001
  Prefactor  = 4.99794
  Normalizat = 1.11188
  Prefactor  = 0.953832
 **********
 **   18 **HESSE 
 **********

 FCN=   6344.153     FROM HESSE     STATUS=OK           207 CALLS     1440 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.620        13.198        .92807E-04   -1.4845    
   2  norm          .10000E-03    2.3943        .12026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    19.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6746        98.638        .24834E-03   -1.5381    
   5  Prefactor     10.735        7.6030        .12229E-03   -1.5053    
   6  Prefactor     .10000E-03    8.1139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55052        .74917        .88868E-03   -1.5560    
   8  Prefactor     .10000E-03    30.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7882        61.064        .20738E-03   -1.5319    
  10  Prefactor     .10000E-03    6.5908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.184        4.2808        .93908E-04   -1.5010    
  12  norm          3.6096        5.9439        .21270E-03   -1.5328    
  13  Prefactor     .10000E-03    29.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9979        7.4640        .89947E-03   -1.5261    
  15  Normalizat    1.1119        .21245        .24131E-03   -.89371    
  16  Prefactor     .95383        .18742        .23621E-03   -.94285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87551e-09
Minuit parameter uncertainties:
  1  13.2002
  2  1.10542e-07
  3  1.85901e-06
  4  32.5422
  5  7.60371
  6  1.82732e-06
  7  0.749185
  8  0.000254345
  9  30.455
  10  1.34893e-06
  11  4.28094
  12  5.94483
  13  0.000284435
  14  7.46537
  15  0.212613
  16  0.187544
Done.

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

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  3.788e+00  3.046e+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:  9.538e-01  1.875e-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.112e+00  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/531243/likelihoodResults_390960001_391219201_4FGL_J0949.2+1749_daily_bin585.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) = 6344.14034796
delta logL = 0.0129982025219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6344.05378413
delta logL = 0.0995620353533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.3092       1.0000          .0000       10.000    
     3 'Normalizat'    1.0903       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96944       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=   6344.054     FROM MIGRAD    STATUS=FAILED       154 CALLS      601 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .27281E-01    .32577E-03** at limit **
   2  Index         9.3093        5.5213        .41516E-01    .44123E-03
   3  Normalizat    1.0903        .57122E-01    .24347E-03   -.18343E-03
   4  Prefactor     .96942        .52007E-01    .23457E-03   -.22581E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6344.054     FROM SIMPLEX   STATUS=UNCHANGED    168 CALLS      769 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .27281E-01    .12703E-04** at limit **
   2  Index         9.3093        5.5213        .62594E-04    .44123E-03
   3  Normalizat    1.0903        .57122E-01    .98793E-06   -.18343E-03
   4  Prefactor     .96942        .52007E-01    .91446E-06   -.22581E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6344.054     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      810 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .27286E-01    .33778E-03** at limit **
   2  Index         9.3093        5.2930        .83033E-02    .20168E-05
   3  Normalizat    1.0903        .59424E-01    .48693E-04   -.17856E-03
   4  Prefactor     .96942        .54236E-01    .46913E-04   -.22309E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.30933
  Normalizat = 1.09026
  Prefactor  = 0.969418
 **********
 **   18 **HESSE 
 **********

 FCN=   6344.054     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      845 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .28468E-01    .33432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.3093        5.1821        .33213E-03    1.0389    
   3  Normalizat    1.0903        .60754E-01    .97386E-05   -.90065    
   4  Prefactor     .96942        .55479E-01    .93827E-05   -.93756    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.52356e-11
Minuit parameter uncertainties:
  1  6.53179e-08
  2  12.906
  3  0.0607577
  4  0.0554823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/531243': 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): 102
logL (Free Index) = 6344.0537792
delta logL = 0.0995669589902

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  6.532e-08  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  9.309e+00  1.291e+01  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:  9.694e-01  5.548e-02  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.090e+00  6.076e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/531243/cmap_HighResolution_390960001_391219201_4FGL_J0949.2+1749_daily_bin585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', job_status='DONE', photon_flux_upper_limit='8.68e-08', time_completed='2021-09-01 03:40:32.694413', job_id='531243', GAL2='0.97', fit_tolerance='1e-08', EG2='1.09', EG='1.11', time_epoch_completed='1630492832.69', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.96e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='585' AND source_name='4FGL J0949.2+1749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:40:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 531243: <4FGL_J0949.2+1749_daily_bin585> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.2+1749_daily_bin585 147.316 17.83 390960001 391219201 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 :                                   526.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   583 sec.
    Turnaround time :                            585 sec.

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

