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


Performing analysis on: 4FGL_J1949.5+0906_daily_bin1200
RA = 297.39, Dec = 9.1054
tmin = 550368001, tmax = 550627201
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='243226', job_status='RUN', time_executed='2021-09-23 15:51:39.175143', time_epoch_executed='1632437499.18' WHERE source_name='4FGL J1949.5+0906' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/243226

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/243226/ft1_4FGL_J1949.5+0906_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/243226/ft2_4FGL_J1949.5+0906_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/243226/ft1_4FGL_J1949.5+0906_daily_bin1200.fits outfile=/scratch/kocevski/243226/ft1_filteredMKT_4FGL_J1949.5+0906_daily_bin1200.fits ra=297.39 dec=9.1054 rad=12.0 tmin=550368001.0 tmax=550627201.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.00
user 3.79
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/243226/ft2_4FGL_J1949.5+0906_daily_bin1200.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/243226/ft1_filteredMKT_4FGL_J1949.5+0906_daily_bin1200.fits evtable="EVENTS" outfile="/scratch/kocevski/243226/ft1_filtered_4FGL_J1949.5+0906_daily_bin1200.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/243226/ft1_filtered_4FGL_J1949.5+0906_daily_bin1200.fits" evtable="EVENTS" scfile=/scratch/kocevski/243226/ft2_4FGL_J1949.5+0906_daily_bin1200.fits sctable="SC_DATA" outfile=/scratch/kocevski/243226/ltcube_550368001_550627201_4FGL_J1949.5+0906_daily_bin1200.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/243226/ft2_4FGL_J1949.5+0906_daily_bin1200.fits
.....................!
real 12.04
user 11.73
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/243226/ft1_filtered_4FGL_J1949.5+0906_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/243226/ft2_4FGL_J1949.5+0906_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/243226/ltcube_550368001_550627201_4FGL_J1949.5+0906_daily_bin1200.fits outfile=/scratch/kocevski/243226/expmap_550368001_550627201_4FGL_J1949.5+0906_daily_bin1200.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/243226/ltcube_550368001_550627201_4FGL_J1949.5+0906_daily_bin1200.fits
.....................!
real 190.48
user 185.38
sys 4.76

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/243226/ft1_filtered_4FGL_J1949.5+0906_daily_bin1200.fits scfile=/scratch/kocevski/243226/ft2_4FGL_J1949.5+0906_daily_bin1200.fits outfile=/scratch/kocevski/243226/cmap_550368001_550627201_4FGL_J1949.5+0906_daily_bin1200.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/243226/ft1_filtered_4FGL_J1949.5+0906_daily_bin1200.fits scfile=/scratch/kocevski/243226/ft2_4FGL_J1949.5+0906_daily_bin1200.fits outfile=/scratch/kocevski/243226/cmap_HighResolution_550368001_550627201_4FGL_J1949.5+0906_daily_bin1200.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/243226/ft1_filtered_4FGL_J1949.5+0906_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/243226/ft2_4FGL_J1949.5+0906_daily_bin1200.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/243226/Model_4FGL_J1949.5+0906_daily_bin1200.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/243226/ft1_filtered_4FGL_J1949.5+0906_daily_bin1200.fits......................!
real 59.45
user 58.19
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/243226/ft1_filtered_4FGL_J1949.5+0906_daily_bin1200.fits', '/scratch/kocevski/243226/ft2_4FGL_J1949.5+0906_daily_bin1200.fits', expMap='/scratch/kocevski/243226/expmap_550368001_550627201_4FGL_J1949.5+0906_daily_bin1200.fits', expCube='/scratch/kocevski/243226/ltcube_550368001_550627201_4FGL_J1949.5+0906_daily_bin1200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/243226/Model_4FGL_J1949.5+0906_daily_bin1200.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/243226/ft1_filtered_4FGL_J1949.5+0906_daily_bin1200.fits
Spacecraft file(s): /scratch/kocevski/243226/ft2_4FGL_J1949.5+0906_daily_bin1200.fits
Exposure map: /scratch/kocevski/243226/expmap_550368001_550627201_4FGL_J1949.5+0906_daily_bin1200.fits
Exposure cube: /scratch/kocevski/243226/ltcube_550368001_550627201_4FGL_J1949.5+0906_daily_bin1200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/243226/Model_4FGL_J1949.5+0906_daily_bin1200.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1689.04407409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1688.94061989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88672       1.0000         .10000E-03   10000.    
     2 'norm      '    6.3628       1.0000         .10000E-03   10000.    
     3 'norm      '    .40614E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3622       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20943       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8612       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7014       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0388       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36167       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .74904E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9045       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8070       1.0000         .10000E-03   10000.    
    13 'norm      '    .71254       1.0000         .10000E-03   10000.    
    14 'Normalizat'    .32876       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .83660       1.0000          .0000       10.000    
    16 'norm      '    10.799       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1013E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1688.929     FROM MIGRAD    STATUS=CONVERGED    126 CALLS      260 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    473.69       -.16615E-04** at limit **
   2  norm          .50634E-03    1448.2       -.59816E-04** at limit **
   3  norm          .10000E-03    37.515        .28268E-06** at limit **
   4  Prefactor     1.3622        1.0914         .0000         .0000    
   5  Prefactor     .10000E-03    52.179        .15161E-05** at limit **
   6  Prefactor     .17685E-02    717.26       -.42451E-04** at limit **
   7  Prefactor     .22173E-03    627.85       -.15817E-04** at limit **
   8  norm          .20506E-01    155.29       -.12257E-04   -.17844E-02
   9  Prefactor     .10000E-03    119.14       -.68897E-06** at limit **
  10  Prefactor     .10000E-03    90.987       -.26658E-06** at limit **
  11  Prefactor     2.9045        1.0156         .0000         .0000    
  12  Prefactor     5.8070        1.0038         .0000         .0000    
  13  norm          .10011E-03    1063.3        .34502E-05** at limit **
  14  Normalizat    .32672        1.0836       -.20610E-04    .54340E-05
  15  Prefactor     .83724        .11237        .12738E-05    .13306E-03
  16  norm          10.084        33.457        .37618E-04    .78420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  norm       = 0.00050634
  norm       = 0.0001
  Prefactor  = 1.36216
  Prefactor  = 0.0001
  Prefactor  = 0.00176851
  Prefactor  = 0.000221733
  norm       = 0.0205058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.90454
  Prefactor  = 5.80698
  norm       = 0.000100106
  Normalizat = 0.326719
  Prefactor  = 0.837242
  norm       = 10.0836
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1688.929     FROM HESSE     STATUS=FAILED        21 CALLS      281 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    477.83        .12759E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .50634E-03    1774.7        .39780E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    37.592        .92242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     580.50        578.92         .0000       -1.5475    
   5  Prefactor     .10000E-03    .25103        .15161E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .17685E-02    .90250E-01   -.42451E-04   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .22173E-03    .68849E-01   -.15817E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .20506E-01    .37896       -.12257E-04   -1.5737    
   9  Prefactor     .10000E-03    .28581       -.68897E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .22047       -.26658E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9045        1.0156         .0000       -1.5367    
  12  Prefactor     5.8070        1.0038         .0000       -1.5226    
  13  norm          .10011E-03    .36662        .34502E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .32672        .63436       -.20610E-04   -1.2128    
  15  Prefactor     .83724        1.1845        .12738E-05   -.98370    
  16  norm          10.084        .96739        .37618E-04   -1.5073    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.75198e-10
Minuit parameter uncertainties:
  1  0.00318644
  2  1.75313
  3  1.99114e-05
  4  1.09142
  5  8.15008e-06
  6  0.0245425
  7  0.00579005
  8  0.175877
  9  1.83264e-06
  10  7.10161e-06
  11  1.01564
  12  1.00375
  13  0.000393894
  14  0.649139
  15  1.224
  16  0.967393
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1688.92947384

Extracting fit parameters...

4FGL J1949.5+0906
   Spectrum: PowerLaw
631    Prefactor:  2.217e-04  5.790e-03  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:  8.372e-01  1.224e+00  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:  3.267e-01  6.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 297.390 9.105
Photon Flux Upper Limit: 2.66e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.00e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/243226/likelihoodResults_550368001_550627201_4FGL_J1949.5+0906_daily_bin1200.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) = 1688.92948091
delta logL = -7.06576884113e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1688.92948091
delta logL = -7.06572768649e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0056       1.0000          .0000       10.000    
     3 'Normalizat'    .32672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83724       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=   1688.929     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      215 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    549.69        .90712E-02** at limit **
   2  Index         2.0023        8.7762        .50000        .40370E-07
   3  Normalizat    .32672        .33484E-01    .37056        .15526E-04
   4  Prefactor     .83724        .33396E-02    .26711E-01   -.13838E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.00228
  Normalizat = 0.326722
  Prefactor  = 0.837241
 **********
 **   18 **HESSE 
 **********

 FCN=   1688.929     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      248 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6297.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0023        5.6332        .50000       -.64293    
   3  Normalizat    .32672        .78797E-01    .18729E-01   -1.2128    
   4  Prefactor     .83724        .75687E-02    .11804E-03   -.98370    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73767e-10
Minuit parameter uncertainties:
  1  0.00582197
  2  835.647
  3  0.0788233
  4  0.00756872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/243226': 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) = 1688.92947375
delta logL = 9.13873918762e-08

Extracting fit parameters...

4FGL J1949.5+0906
   Spectrum: PowerLaw
631    Prefactor:  1.000e-04  5.822e-03  1.000e-04  1.000e+04 ( 1.000e-14)
632        Index:  2.002e+00  8.356e+02  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:  8.372e-01  7.569e-03  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:  3.267e-01  7.882e-02  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/243226/cmap_HighResolution_550368001_550627201_4FGL_J1949.5+0906_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-01', job_status='DONE', photon_flux_upper_limit='2.66e-06', time_completed='2021-09-23 15:58:55.704201', job_id='243226', GAL2='0.84', fit_tolerance='1e-08', EG2='0.33', EG='0.33', time_epoch_completed='1632437935.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.84', dlogl='9.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1200' AND source_name='4FGL J1949.5+0906' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 15:58:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 243226: <4FGL_J1949.5+0906_daily_bin1200> in cluster <slac> Done

Job <4FGL_J1949.5+0906_daily_bin1200> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 23 15:48:20 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 15:48:25 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:48:25 2021
Terminated at Thu Sep 23 15:58:56 2021
Results reported at Thu Sep 23 15:58:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1949.5+0906_daily_bin1200 297.39 9.1054 550368001 550627201 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 :                                   416.42 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             300.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            636 sec.

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

