/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 121 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 = 7680
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0949.2+1749_daily_bin256
RA = 147.316, Dec = 17.83
tmin = 305683201, tmax = 305942401
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='529839', job_status='RUN', time_executed='2021-09-01 03:28:29.042730', time_epoch_executed='1630492109.04' WHERE source_name='4FGL J0949.2+1749' and cadence='daily' and bin_id='256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/529839

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/529839/ft1_4FGL_J0949.2+1749_daily_bin256.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/529839/ft2_4FGL_J0949.2+1749_daily_bin256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/529839/ft1_4FGL_J0949.2+1749_daily_bin256.fits outfile=/scratch/kocevski/529839/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin256.fits ra=147.316 dec=17.83 rad=12.0 tmin=305683201.0 tmax=305942401.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.98
user 4.50
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/529839/ft2_4FGL_J0949.2+1749_daily_bin256.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/529839/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin256.fits evtable="EVENTS" outfile="/scratch/kocevski/529839/ft1_filtered_4FGL_J0949.2+1749_daily_bin256.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.86
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/529839/ft1_filtered_4FGL_J0949.2+1749_daily_bin256.fits" evtable="EVENTS" scfile=/scratch/kocevski/529839/ft2_4FGL_J0949.2+1749_daily_bin256.fits sctable="SC_DATA" outfile=/scratch/kocevski/529839/ltcube_305683201_305942401_4FGL_J0949.2+1749_daily_bin256.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/529839/ft2_4FGL_J0949.2+1749_daily_bin256.fits
.....................!
real 14.11
user 13.42
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/529839/ft1_filtered_4FGL_J0949.2+1749_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/529839/ft2_4FGL_J0949.2+1749_daily_bin256.fits sctable="SC_DATA" expcube=/scratch/kocevski/529839/ltcube_305683201_305942401_4FGL_J0949.2+1749_daily_bin256.fits outfile=/scratch/kocevski/529839/expmap_305683201_305942401_4FGL_J0949.2+1749_daily_bin256.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/529839/ltcube_305683201_305942401_4FGL_J0949.2+1749_daily_bin256.fits
.....................!
real 190.97
user 185.31
sys 4.68

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/529839/ft1_filtered_4FGL_J0949.2+1749_daily_bin256.fits scfile=/scratch/kocevski/529839/ft2_4FGL_J0949.2+1749_daily_bin256.fits outfile=/scratch/kocevski/529839/cmap_305683201_305942401_4FGL_J0949.2+1749_daily_bin256.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/529839/ft1_filtered_4FGL_J0949.2+1749_daily_bin256.fits scfile=/scratch/kocevski/529839/ft2_4FGL_J0949.2+1749_daily_bin256.fits outfile=/scratch/kocevski/529839/cmap_HighResolution_305683201_305942401_4FGL_J0949.2+1749_daily_bin256.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    23.688       1.0000         .10000E-03   10000.    
     4 'Prefactor '    74.180       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .43730       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.682       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.149       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8053       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    29.507       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5585       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .65902       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.4656       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=   5604.820     FROM MIGRAD    STATUS=CONVERGED    289 CALLS     1469 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1153        .18179E-07** at limit **
   2  norm          .10000E-03    2.4141       -.56972E-07** at limit **
   3  norm          23.688        27.580       -.34783E-06   -.23658E-06
   4  Prefactor     74.173        51.481       -.83630E-05    .30596E-05
   5  Prefactor     .10000E-03    2.2927        .52982E-08** at limit **
   6  Prefactor     .10000E-03    8.1495       -.10690E-06** at limit **
   7  norm          .43695        1.2866       -.60619E-06   -.15219E-02
   8  Prefactor     24.716        80.008        .66617E-04    .21355E-04
   9  Prefactor     12.130        42.370       -.49609E-04   -.11865E-04
  10  Prefactor     7.8042        7.5071       -.21173E-05   -.20469E-03
  11  Prefactor     .10000E-03    1.6258       -.29848E-07** at limit **
  12  norm          29.507        10.506       -.23457E-06    .22063E-04
  13  Prefactor     .10000E-03    12.064        .13974E-06** at limit **
  14  Prefactor     2.5569        8.2159       -.14716E-05   -.31495E-03
  15  Normalizat    .65925        .19438        .30348E-05    .25640E-04
  16  Prefactor     1.4655        .17898        .88700E-08    .15475E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 23.6876
  Prefactor  = 74.1726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.436951
  Prefactor  = 24.7161
  Prefactor  = 12.1305
  Prefactor  = 7.80422
  Prefactor  = 0.0001
  norm       = 29.507
  Prefactor  = 0.0001
  Prefactor  = 2.55693
  Normalizat = 0.659246
  Prefactor  = 1.46546
 **********
 **   18 **HESSE 
 **********

 FCN=   5604.820     FROM HESSE     STATUS=OK           201 CALLS     1670 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1163        .12905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.4148        .11360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          23.688        27.580        .82302E-04   -1.4734    
   4  Prefactor     74.173        51.496        .46617E-04   -1.3983    
   5  Prefactor     .10000E-03    2.3471        .11068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.1574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .43695        1.2903        .13614E-03   -1.5576    
   8  Prefactor     24.716        79.809        .80629E-04   -1.4713    
   9  Prefactor     12.130        42.585        .11493E-03   -1.5011    
  10  Prefactor     7.8042        7.5236        .14353E-03   -1.5149    
  11  Prefactor     .10000E-03    1.6936        .18630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          29.507        10.505        .73756E-04   -1.4621    
  13  Prefactor     .10000E-03    12.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5569        8.2294        .25524E-03   -1.5388    
  15  Normalizat    .65925        .22522        .30357E-03   -1.0552    
  16  Prefactor     1.4655        .20933        .21155E-03   -.78512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3144e-09
Minuit parameter uncertainties:
  1  3.31523e-07
  2  8.03696e-07
  3  27.5944
  4  51.5271
  5  4.87613e-06
  6  1.39516e-05
  7  1.29037
  8  80.1567
  9  42.6922
  10  7.52455
  11  3.70742e-06
  12  10.5053
  13  1.64769e-06
  14  8.23306
  15  0.225532
  16  0.209455
Done.

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

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  1.213e+01  4.269e+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.465e+00  2.095e-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:  6.592e-01  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/529839/likelihoodResults_305683201_305942401_4FGL_J0949.2+1749_daily_bin256.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) = 5603.63167526
delta logL = 1.18792986177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5603.02572565
delta logL = 1.79387947172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12626E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .54401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5471       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.

 FCN=   5603.026     FROM MIGRAD    STATUS=CONVERGED    132 CALLS      543 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12621E-03    .91257E-04    .93094E-05** at limit **
   2  Index        10.0000        .49243        .50000    ** at limit **
   3  Normalizat    .54397        .22261        .33200E-03   -.18971E-04
   4  Prefactor     1.5471        .21623        .20674E-03   -.31014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000126207
  Index      = 10
  Normalizat = 0.543974
  Prefactor  = 1.54709
 **********
 **   18 **HESSE 
 **********

 FCN=   5603.026     FROM HESSE     STATUS=OK            33 CALLS      576 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12621E-03    .89760E-04    .18619E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .47919        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .54397        .22272        .13280E-04   -1.1042    
   4  Prefactor     1.5471        .21638        .82697E-05   -.76229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04195e-12
Minuit parameter uncertainties:
  1  8.97604e-05
  2  5.87209e-06
  3  0.223081
  4  0.216505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/529839': 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) = 5603.02572463
delta logL = 1.79388049445

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  1.262e-04  8.976e-05  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  1.000e+01  5.872e-06  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.547e+00  2.165e-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:  5.440e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.02
Ra Dec: 147.316 17.830
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 8.50e-08 +/- 5.86e-08
Energy Flux (Free Index): 9.50e-06 +/- 6.59e-06

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/529839/cmap_HighResolution_305683201_305942401_4FGL_J0949.2+1749_daily_bin256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', comment='SUCCESS', energy_flux2='9.50e-06', dlogl='1.79e+00', photon_flux2='8.50e-08', job_status='DONE', time_completed='2021-09-01 03:37:10.720707', photon_index_error2='0.00', photon_index2='10.00', ts='0.09', fit_tolerance='1e-08', GAL='1.47', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='6.59e-06', EG='0.66', time_epoch_completed='1630492630.72', return_code='0', job_id='529839', GAL2='1.55', EG2='0.54', return_code2='0', photon_flux_error2='5.86e-08', ts2='4.02', photon_index='2.52' WHERE bin_id='256' AND source_name='4FGL J0949.2+1749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:37:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 529839: <4FGL_J0949.2+1749_daily_bin256> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.2+1749_daily_bin256 147.316 17.83 305683201 305942401 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 :                                   508.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            680 sec.

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

