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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin1183
RA = 147.262, Dec = 40.6367
tmin = 545961601, tmax = 546220801
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='526578', job_status='RUN', time_executed='2021-09-01 03:18:49.175855', time_epoch_executed='1630491529.18' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1183'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/526578

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/526578/ft1_4FGL_J0949.0+4038_daily_bin1183.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/526578/ft2_4FGL_J0949.0+4038_daily_bin1183.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/526578/ft1_4FGL_J0949.0+4038_daily_bin1183.fits outfile=/scratch/kocevski/526578/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1183.fits ra=147.262 dec=40.6367 rad=12.0 tmin=545961601.0 tmax=546220801.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.43
user 3.85
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/526578/ft2_4FGL_J0949.0+4038_daily_bin1183.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/526578/ft2_4FGL_J0949.0+4038_daily_bin1183.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/526578/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1183.fits evtable="EVENTS" outfile="/scratch/kocevski/526578/ft1_filtered_4FGL_J0949.0+4038_daily_bin1183.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/526578/ft1_filtered_4FGL_J0949.0+4038_daily_bin1183.fits" evtable="EVENTS" scfile=/scratch/kocevski/526578/ft2_4FGL_J0949.0+4038_daily_bin1183.fits sctable="SC_DATA" outfile=/scratch/kocevski/526578/ltcube_545961601_546220801_4FGL_J0949.0+4038_daily_bin1183.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/526578/ft2_4FGL_J0949.0+4038_daily_bin1183.fits
.....................!
real 12.10
user 11.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/526578/ft1_filtered_4FGL_J0949.0+4038_daily_bin1183.fits evtable="EVENTS" scfile=/scratch/kocevski/526578/ft2_4FGL_J0949.0+4038_daily_bin1183.fits sctable="SC_DATA" expcube=/scratch/kocevski/526578/ltcube_545961601_546220801_4FGL_J0949.0+4038_daily_bin1183.fits outfile=/scratch/kocevski/526578/expmap_545961601_546220801_4FGL_J0949.0+4038_daily_bin1183.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/526578/ltcube_545961601_546220801_4FGL_J0949.0+4038_daily_bin1183.fits
.....................!
real 192.10
user 186.53
sys 5.04

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 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J0949.0+4038 @ 147.262 40.6367

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/526578/ft1_filtered_4FGL_J0949.0+4038_daily_bin1183.fits scfile=/scratch/kocevski/526578/ft2_4FGL_J0949.0+4038_daily_bin1183.fits outfile=/scratch/kocevski/526578/cmap_545961601_546220801_4FGL_J0949.0+4038_daily_bin1183.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.262 yref=40.6367 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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/526578/ft1_filtered_4FGL_J0949.0+4038_daily_bin1183.fits scfile=/scratch/kocevski/526578/ft2_4FGL_J0949.0+4038_daily_bin1183.fits outfile=/scratch/kocevski/526578/cmap_HighResolution_545961601_546220801_4FGL_J0949.0+4038_daily_bin1183.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.262 yref=40.6367 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/526578/ft1_filtered_4FGL_J0949.0+4038_daily_bin1183.fits evtable="EVENTS" scfile=/scratch/kocevski/526578/ft2_4FGL_J0949.0+4038_daily_bin1183.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/526578/Model_4FGL_J0949.0+4038_daily_bin1183.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/526578/ft1_filtered_4FGL_J0949.0+4038_daily_bin1183.fits.....................!
real 27.75
user 26.47
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/526578/ft1_filtered_4FGL_J0949.0+4038_daily_bin1183.fits', '/scratch/kocevski/526578/ft2_4FGL_J0949.0+4038_daily_bin1183.fits', expMap='/scratch/kocevski/526578/expmap_545961601_546220801_4FGL_J0949.0+4038_daily_bin1183.fits', expCube='/scratch/kocevski/526578/ltcube_545961601_546220801_4FGL_J0949.0+4038_daily_bin1183.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/526578/Model_4FGL_J0949.0+4038_daily_bin1183.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0949.0+4038'

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  7.192e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.608e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/526578/ft1_filtered_4FGL_J0949.0+4038_daily_bin1183.fits
Spacecraft file(s): /scratch/kocevski/526578/ft2_4FGL_J0949.0+4038_daily_bin1183.fits
Exposure map: /scratch/kocevski/526578/expmap_545961601_546220801_4FGL_J0949.0+4038_daily_bin1183.fits
Exposure cube: /scratch/kocevski/526578/ltcube_545961601_546220801_4FGL_J0949.0+4038_daily_bin1183.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/526578/Model_4FGL_J0949.0+4038_daily_bin1183.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) = 1982.10189395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4066       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .65920E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0623       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17959E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7350       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .66185E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.373       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    101.17       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2865       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.680       1.0000         .10000E-03   10000.    
    18 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .42166       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.8877       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.272       1.0000         .10000E-03   10000.    
    25 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10206       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.6688       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .53247       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2845       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1982.079     FROM MIGRAD    STATUS=CONVERGED   1482 CALLS     4921 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3990        13.006        .17282E-03    .28352E-04
   2  Prefactor     .10000E-03    771.55        .21013E-02** at limit **
   3  Prefactor     7.0607        6.7016        .52544E-03   -.46308E-03
   4  Prefactor     .10000E-03    77.519        .18142E-02** at limit **
   5  Prefactor     .10000E-03    9.5148        .13334E-02** at limit **
   6  Prefactor     .10000E-03    459.72        .36285E-03** at limit **
   7  norm          1.7375        2.0024        .62694E-04    .85527E-03
   8  Prefactor     .10070E-03    154.99        .33412E-02** at limit **
   9  norm          .10000E-03    26.976        .18142E-02** at limit **
  10  Prefactor     20.379        10.558        .88737E-04    .21315E-03
  11  Prefactor     .10000E-03    44.406        .18142E-02** at limit **
  12  Prefactor     .10000E-03    70.315        .18142E-02** at limit **
  13  norm          .10000E-03    133.21        .18142E-02** at limit **
  14  Prefactor     101.33        128.81        .19985E-03    .98395E-04
  15  Prefactor     .10000E-03    112.19        .18142E-02** at limit **
  16  Prefactor     1.9977        6098.7        .27149E-02   -.36139E-05
  17  Prefactor     17.675        14.513        .95252E-04    .86490E-04
  18  norm          .10000E-03    41.460        .18142E-02** at limit **
  19  Prefactor     .10000E-03    50.126        .18142E-02** at limit **
  20  Prefactor     .10000E-03    .80829        .39062E-03** at limit **
  21  Prefactor     .49249        68.756        .20797E-02    .93615E-04
  22  Prefactor     .10000E-03    46.477        .18142E-02** at limit **
  23  norm          7.8896        23.298        .14277E-03   -.36032E-05
  24  Prefactor     17.213        16.027        .96372E-04    .16931E-03
  25  norm          .10000E-03    20.310        .18142E-02** at limit **
  26  Prefactor     .53510        545.16        .12829        .49656E-04
  27  Prefactor     .10000E-03    50.917        .36285E-03** at limit **
  28  Prefactor     5.5711        30.324        .16871E-03    .13864E-03
  29  Prefactor     .10001E-03    180.53        .18142E-02** at limit **
  30  Normalizat    .53258        .40840        .33364E-03    .23997E-04
  31  Prefactor     1.2844        .45218        .25514E-03   -.85124E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.39901
  Prefactor  = 0.000100001
  Prefactor  = 7.06069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 1.73752
  Prefactor  = 0.000100695
  norm       = 0.0001
  Prefactor  = 20.3791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 101.334
  Prefactor  = 0.000100002
  Prefactor  = 1.99767
  Prefactor  = 17.6749
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.492488
  Prefactor  = 0.0001
  norm       = 7.88959
  Prefactor  = 17.2134
  norm       = 0.0001
  Prefactor  = 0.535102
  Prefactor  = 0.0001
  Prefactor  = 5.57114
  Prefactor  = 0.000100007
  Normalizat = 0.532579
  Prefactor  = 1.28444
 **********
 **   18 **HESSE 
 **********

 FCN=   1982.079     FROM HESSE     STATUS=OK           604 CALLS     5525 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3990        13.005        .69129E-05   -1.5243    
   2  Prefactor     .10000E-03    771.55        .42026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0607        6.6980        .21018E-04   -1.5176    
   4  Prefactor     .10000E-03    77.521        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.5162        .26667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    459.74        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7375        1.9944        .25078E-05   -1.5444    
   8  Prefactor     .10070E-03    155.56        .66823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    26.982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.379        10.555        .35495E-05   -1.4805    
  11  Prefactor     .10000E-03    44.406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    70.315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    133.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     101.33        126.40        .39970E-04   -1.3691    
  15  Prefactor     .10000E-03    112.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9977        2209.9        .10859E-03   -1.5425    
  17  Prefactor     17.675        14.498        .19050E-04   -1.4867    
  18  norm          .10000E-03    41.461        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    50.126        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .80829        .78123E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .49249        58.858        .83190E-04   -1.5568    
  22  Prefactor     .10000E-03    46.478        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.8896        23.297        .57108E-05   -1.5146    
  24  Prefactor     17.213        14.923        .38549E-05   -1.4878    
  25  norm          .10000E-03    20.313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .53510        570.44        .12702       -1.5562    
  27  Prefactor     .10000E-03    50.919        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.5711        31.258        .67485E-05   -1.5236    
  29  Prefactor     .10001E-03    180.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .53258        .40796        .13345E-04   -1.1093    
  31  Prefactor     1.2844        .45254        .51027E-04   -.83771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41377e-09
Minuit parameter uncertainties:
  1  13.0118
  2  0.00190974
  3  6.69867
  4  4.3762e-05
  5  0.00010912
  6  0.00299463
  7  1.99448
  8  0.0208572
  9  0.00021921
  10  10.5558
  11  6.17395e-05
  12  0.000282794
  13  0.000436302
  14  126.74
  15  0.000846048
  16  138.356
  17  14.5012
  18  0.000104861
  19  4.12051e-05
  20  1.42724e-06
  21  10.7777
  22  0.000153683
  23  23.3235
  24  14.9263
  25  1.8243e-05
  26  35.281
  27  0.000185756
  28  26.4136
  29  0.0022177
  30  0.410287
  31  0.453935
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.998e+00  1.384e+02  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.608e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.284e+00  4.539e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  5.326e-01  4.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 147.262 40.637
Photon Flux Upper Limit: 3.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/526578/likelihoodResults_545961601_546220801_4FGL_J0949.0+4038_daily_bin1183.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) = 1982.06014258
delta logL = 0.0189181386452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1982.01870771
delta logL = 0.0603530134451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.003       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5055       1.0000          .0000       10.000    
     3 'Normalizat'    .48066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3178       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1982.019     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      295 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.011        94.690        .97130E-04    .74178E-04
   2  Index         3.5061        2.4174        .87926E-02    .42576E-04
   3  Normalizat    .48092        .41411        .34976E-03    .38685E-03
   4  Prefactor     1.3175        .45825        .25216E-03    .40231E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0106
  Index      = 3.50608
  Normalizat = 0.480924
  Prefactor  = 1.31749
 **********
 **   18 **HESSE 
 **********

 FCN=   1982.019     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.011        70.269        .38852E-05   -1.4883    
   2  Index         3.5061        2.1013        .35171E-03   -.30342    
   3  Normalizat    .48092        .41514        .69952E-04   -1.1331    
   4  Prefactor     1.3175        .45882        .50432E-04   -.82788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17263e-09
Minuit parameter uncertainties:
  1  69.2871
  2  2.17591
  3  0.417843
  4  0.460238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/526578': 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) = 1982.01870723
delta logL = 0.0603534964112

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.701e+01  6.929e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  3.506e+00  2.176e+00  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.317e+00  4.602e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  4.809e-01  4.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 147.262 40.637

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/526578/cmap_HighResolution_545961601_546220801_4FGL_J0949.0+4038_daily_bin1183.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-02', job_status='DONE', photon_flux_upper_limit='3.06e-07', time_completed='2021-09-01 03:30:13.817837', job_id='526578', GAL2='1.32', fit_tolerance='1e-08', EG2='0.48', EG='0.53', time_epoch_completed='1630492213.82', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='6.04e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1183' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:30:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 526578: <4FGL_J0949.0+4038_daily_bin1183> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin1183> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 03:15:36 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:15:37 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:15:37 2021
Terminated at Wed Sep  1 03:30:14 2021
Results reported at Wed Sep  1 03:30:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin1183 147.262 40.6367 545961601 546220801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0949.0+4038 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   545.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             194.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            878 sec.

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

