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


Performing analysis on: 4FGL_J1949.5+0906_daily_bin974
RA = 297.39, Dec = 9.1054
tmin = 491788801, tmax = 492048001
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='237215', job_status='RUN', time_executed='2021-09-23 15:45:40.185874', time_epoch_executed='1632437140.19' WHERE source_name='4FGL J1949.5+0906' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237215

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237215/ft1_4FGL_J1949.5+0906_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237215/ft2_4FGL_J1949.5+0906_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237215/ft1_4FGL_J1949.5+0906_daily_bin974.fits outfile=/scratch/kocevski/237215/ft1_filteredMKT_4FGL_J1949.5+0906_daily_bin974.fits ra=297.39 dec=9.1054 rad=12.0 tmin=491788801.0 tmax=492048001.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.21
user 3.97
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/237215/ft2_4FGL_J1949.5+0906_daily_bin974.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/237215/ft2_4FGL_J1949.5+0906_daily_bin974.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/237215/ft1_filteredMKT_4FGL_J1949.5+0906_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/237215/ft1_filtered_4FGL_J1949.5+0906_daily_bin974.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/237215/ft1_filtered_4FGL_J1949.5+0906_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/237215/ft2_4FGL_J1949.5+0906_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/237215/ltcube_491788801_492048001_4FGL_J1949.5+0906_daily_bin974.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/237215/ft2_4FGL_J1949.5+0906_daily_bin974.fits
.....................!
real 11.74
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237215/ft1_filtered_4FGL_J1949.5+0906_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/237215/ft2_4FGL_J1949.5+0906_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/237215/ltcube_491788801_492048001_4FGL_J1949.5+0906_daily_bin974.fits outfile=/scratch/kocevski/237215/expmap_491788801_492048001_4FGL_J1949.5+0906_daily_bin974.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/237215/ltcube_491788801_492048001_4FGL_J1949.5+0906_daily_bin974.fits
.....................!
real 190.71
user 185.40
sys 4.84

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
Extended source W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Added 277 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1949.5+0906 @ 297.39 9.1054

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/237215/ft1_filtered_4FGL_J1949.5+0906_daily_bin974.fits scfile=/scratch/kocevski/237215/ft2_4FGL_J1949.5+0906_daily_bin974.fits outfile=/scratch/kocevski/237215/cmap_491788801_492048001_4FGL_J1949.5+0906_daily_bin974.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=297.39 yref=9.1054 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237215/ft1_filtered_4FGL_J1949.5+0906_daily_bin974.fits scfile=/scratch/kocevski/237215/ft2_4FGL_J1949.5+0906_daily_bin974.fits outfile=/scratch/kocevski/237215/cmap_HighResolution_491788801_492048001_4FGL_J1949.5+0906_daily_bin974.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=297.39 yref=9.1054 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/237215/ft1_filtered_4FGL_J1949.5+0906_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/237215/ft2_4FGL_J1949.5+0906_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/237215/Model_4FGL_J1949.5+0906_daily_bin974.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 G42.8+0.6
adding source GAL_V02
adding source HESS J1857+026
adding source Kes 79
adding source W 44
adding source W 51C
Working on...
/scratch/kocevski/237215/ft1_filtered_4FGL_J1949.5+0906_daily_bin974.fits.......................!
real 71.96
user 70.28
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/237215/ft1_filtered_4FGL_J1949.5+0906_daily_bin974.fits', '/scratch/kocevski/237215/ft2_4FGL_J1949.5+0906_daily_bin974.fits', expMap='/scratch/kocevski/237215/expmap_491788801_492048001_4FGL_J1949.5+0906_daily_bin974.fits', expCube='/scratch/kocevski/237215/ltcube_491788801_492048001_4FGL_J1949.5+0906_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/237215/Model_4FGL_J1949.5+0906_daily_bin974.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1949.5+0906'

4FGL J1949.5+0906
   Spectrum: PowerLaw
631    Prefactor:  4.878e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
632        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
633        Scale:  3.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/237215/ft1_filtered_4FGL_J1949.5+0906_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/237215/ft2_4FGL_J1949.5+0906_daily_bin974.fits
Exposure map: /scratch/kocevski/237215/expmap_491788801_492048001_4FGL_J1949.5+0906_daily_bin974.fits
Exposure cube: /scratch/kocevski/237215/ltcube_491788801_492048001_4FGL_J1949.5+0906_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/237215/Model_4FGL_J1949.5+0906_daily_bin974.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) = 1862.83020498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .20008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    36.272       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.094       1.0000         .10000E-03   10000.    
    10 'Prefactor '    98.156       1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.701       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19607E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.9081       1.0000         .10000E-03   10000.    
    14 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    15 'Prefactor '    .93452       1.0000          .0000       10.000    
    16 'norm      '    41.045       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1013E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1862.796     FROM MIGRAD    STATUS=CONVERGED    302 CALLS     1638 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.985        .62935E-05** at limit **
   2  norm          .10000E-03    425.32       -.20037E-03** at limit **
   3  norm          .10000E-03    25.662       -.16709E-06** at limit **
   4  Prefactor     .10000E-03    7.4669       -.46509E-07** at limit **
   5  Prefactor     .10000E-03    13.825       -.15199E-07** at limit **
   6  Prefactor     .10000E-03    111.45       -.79618E-04** at limit **
   7  Prefactor     .10000E-03    197.84        .28794E-03** at limit **
   8  norm          36.269        28.144        .87050E-06   -.11597E-04
   9  Prefactor     12.128        671.97        .89153E-04   -.92453E-05
  10  Prefactor     98.123        97.020       -.24198E-04   -.21310E-04
  11  Prefactor     47.626        101.00       -.78130E-04    .40137E-03
  12  Prefactor     .10035E-03    583.40       -.49626E-03** at limit **
  13  norm          7.9037        9.4258        .90448E-05    .10510E-02
  14  Normalizat    .10000E-01    .76119        .15718E-04** at limit **
  15  Prefactor     .93444        .98875E-01    .11980E-05   -.17237E-03
  16  norm          41.055        16.379       -.20926E-05    .18199E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 36.2693
  Prefactor  = 12.1276
  Prefactor  = 98.1229
  Prefactor  = 47.6255
  Prefactor  = 0.000100352
  norm       = 7.90366
  Normalizat = 0.01
  Prefactor  = 0.934436
  norm       = 41.0552
 **********
 **   18 **HESSE 
 **********

 FCN=   1862.796     FROM HESSE     STATUS=OK           191 CALLS     1829 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    426.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    25.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4768        .11520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.828        .15677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    111.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    198.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          36.269        28.105        .66543E-04   -1.4503    
   9  Prefactor     12.128        659.59        .11519E-03   -1.5011    
  10  Prefactor     98.123        96.655        .20287E-03   -1.3724    
  11  Prefactor     47.626        100.33        .29029E-03   -1.4327    
  12  Prefactor     .10035E-03    578.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.9037        9.4206        .12853E-03   -1.5146    
  14  Normalizat    .10000E-01    1.0196        .20949E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .93444        .92380E-01    .12271E-03   -.94948    
  16  norm          41.055        16.442        .62569E-04   -1.4426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29156e-09
Minuit parameter uncertainties:
  1  2.31078e-05
  2  0.00114609
  3  2.27119e-06
  4  4.53398e-06
  5  2.33971e-06
  6  1.65472e-05
  7  8.15822e-05
  8  28.1148
  9  181.018
  10  96.8109
  11  100.689
  12  0.0288354
  13  9.42238
  14  5.16794e-05
  15  0.0923954
  16  16.4441
Done.

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

Extracting fit parameters...

4FGL J1949.5+0906
   Spectrum: PowerLaw
631    Prefactor:  1.000e-04  8.158e-05  1.000e-04  1.000e+04 ( 1.000e-14)
632        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
633        Scale:  3.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
995    Prefactor:  9.344e-01  9.240e-02  0.000e+00  1.000e+01 ( 1.000e+00)
996        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
997        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
991   Normalization:  1.000e-02  5.168e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 297.390 9.105
Photon Flux Upper Limit: 9.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/237215/likelihoodResults_491788801_492048001_4FGL_J1949.5+0906_daily_bin974.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): 102
logL (Free Index) = 1862.79580409
delta logL = -2.75912054803e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1862.79577974
delta logL = -3.24499069393e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11317E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9759       1.0000          .0000       10.000    
     3 'Normalizat'    .10007E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93444       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1013E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1862.796     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      250 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9233.7        .90712E-02** at limit **
   2  Index         1.9501        5.5189        .50000        .94597E-06
   3  Normalizat    .10000E-01    .80176E-01    .50000    ** at limit **
   4  Prefactor     .93444        .34141E-01    .27766E-01    .28553E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95007
  Normalizat = 0.01
  Prefactor  = 0.934437
 **********
 **   18 **HESSE 
 **********

 FCN=   1862.796     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      283 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9567.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9501        5.9581        .50000       -.65604    
   3  Normalizat    .10000E-01    .40559        .20949E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .93444        .63046E-01    .12271E-03   -.94948    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.1797e-10
Minuit parameter uncertainties:
  1  0.00601076
  2  52.9511
  3  1.82294e-07
  4  0.0630505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237215': 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) = 1862.79577648
delta logL = 1.44063960761e-08

Extracting fit parameters...

4FGL J1949.5+0906
   Spectrum: PowerLaw
631    Prefactor:  1.000e-04  6.011e-03  1.000e-04  1.000e+04 ( 1.000e-14)
632        Index:  1.950e+00  5.295e+01  0.000e+00  1.000e+01 (-1.000e+00)
633        Scale:  3.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
995    Prefactor:  9.344e-01  6.305e-02  0.000e+00  1.000e+01 ( 1.000e+00)
996        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
997        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
991   Normalization:  1.000e-02  1.823e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 297.390 9.105

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/237215/cmap_HighResolution_491788801_492048001_4FGL_J1949.5+0906_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.03e-02', job_status='DONE', photon_flux_upper_limit='9.37e-07', time_completed='2021-09-23 15:54:21.810639', job_id='237215', GAL2='0.93', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632437661.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='974' AND source_name='4FGL J1949.5+0906' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 15:54:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 237215: <4FGL_J1949.5+0906_daily_bin974> in cluster <slac> Done

Job <4FGL_J1949.5+0906_daily_bin974> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 23 15:41:50 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 15:41:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 15:41:51 2021
Terminated at Thu Sep 23 15:54:22 2021
Results reported at Thu Sep 23 15:54:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1949.5+0906_daily_bin974 297.39 9.1054 491788801 492048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1949.5+0906 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   520.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             263.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            752 sec.

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

