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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin1161
RA = 147.262, Dec = 40.6367
tmin = 540259201, tmax = 540518401
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='526543', job_status='RUN', time_executed='2021-09-01 03:15:55.390928', time_epoch_executed='1630491355.39' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/526543

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/526543/ft1_4FGL_J0949.0+4038_daily_bin1161.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/526543/ft2_4FGL_J0949.0+4038_daily_bin1161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/526543/ft1_4FGL_J0949.0+4038_daily_bin1161.fits outfile=/scratch/kocevski/526543/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1161.fits ra=147.262 dec=40.6367 rad=12.0 tmin=540259201.0 tmax=540518401.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 3.52
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/526543/ft2_4FGL_J0949.0+4038_daily_bin1161.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/526543/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1161.fits evtable="EVENTS" outfile="/scratch/kocevski/526543/ft1_filtered_4FGL_J0949.0+4038_daily_bin1161.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/526543/ft1_filtered_4FGL_J0949.0+4038_daily_bin1161.fits" evtable="EVENTS" scfile=/scratch/kocevski/526543/ft2_4FGL_J0949.0+4038_daily_bin1161.fits sctable="SC_DATA" outfile=/scratch/kocevski/526543/ltcube_540259201_540518401_4FGL_J0949.0+4038_daily_bin1161.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/526543/ft2_4FGL_J0949.0+4038_daily_bin1161.fits
.....................!
real 12.03
user 11.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/526543/ft1_filtered_4FGL_J0949.0+4038_daily_bin1161.fits evtable="EVENTS" scfile=/scratch/kocevski/526543/ft2_4FGL_J0949.0+4038_daily_bin1161.fits sctable="SC_DATA" expcube=/scratch/kocevski/526543/ltcube_540259201_540518401_4FGL_J0949.0+4038_daily_bin1161.fits outfile=/scratch/kocevski/526543/expmap_540259201_540518401_4FGL_J0949.0+4038_daily_bin1161.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/526543/ltcube_540259201_540518401_4FGL_J0949.0+4038_daily_bin1161.fits
.....................!
real 190.11
user 184.93
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
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/526543/ft1_filtered_4FGL_J0949.0+4038_daily_bin1161.fits scfile=/scratch/kocevski/526543/ft2_4FGL_J0949.0+4038_daily_bin1161.fits outfile=/scratch/kocevski/526543/cmap_540259201_540518401_4FGL_J0949.0+4038_daily_bin1161.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.58
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/526543/ft1_filtered_4FGL_J0949.0+4038_daily_bin1161.fits scfile=/scratch/kocevski/526543/ft2_4FGL_J0949.0+4038_daily_bin1161.fits outfile=/scratch/kocevski/526543/cmap_HighResolution_540259201_540518401_4FGL_J0949.0+4038_daily_bin1161.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.60
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/526543/ft1_filtered_4FGL_J0949.0+4038_daily_bin1161.fits evtable="EVENTS" scfile=/scratch/kocevski/526543/ft2_4FGL_J0949.0+4038_daily_bin1161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/526543/Model_4FGL_J0949.0+4038_daily_bin1161.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/526543/ft1_filtered_4FGL_J0949.0+4038_daily_bin1161.fits.....................!
real 53.25
user 48.97
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/526543/ft1_filtered_4FGL_J0949.0+4038_daily_bin1161.fits', '/scratch/kocevski/526543/ft2_4FGL_J0949.0+4038_daily_bin1161.fits', expMap='/scratch/kocevski/526543/expmap_540259201_540518401_4FGL_J0949.0+4038_daily_bin1161.fits', expCube='/scratch/kocevski/526543/ltcube_540259201_540518401_4FGL_J0949.0+4038_daily_bin1161.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/526543/Model_4FGL_J0949.0+4038_daily_bin1161.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/526543/ft1_filtered_4FGL_J0949.0+4038_daily_bin1161.fits
Spacecraft file(s): /scratch/kocevski/526543/ft2_4FGL_J0949.0+4038_daily_bin1161.fits
Exposure map: /scratch/kocevski/526543/expmap_540259201_540518401_4FGL_J0949.0+4038_daily_bin1161.fits
Exposure cube: /scratch/kocevski/526543/ltcube_540259201_540518401_4FGL_J0949.0+4038_daily_bin1161.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/526543/Model_4FGL_J0949.0+4038_daily_bin1161.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) = 5880.95212258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3179       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.720       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41092       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13197E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.776       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4650       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47521E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10530E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .36455       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8403       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9711       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4705       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.648       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.651       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13094       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4534       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.289       1.0000         .10000E-03   10000.    
    23 'norm      '    6.7469       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .25051E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .16166E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.5301       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13168E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    9.8937       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1538       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .81674       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.

 FCN=   5880.939     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4226 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3175        2.0621       -.27613E-08   -.34084E-03
   2  Prefactor     14.711        51.301       -.15582E-05   -.26810E-04
   3  Prefactor     .41914        3.7961        .11039E-05    .97245E-03
   4  Prefactor     .10000E-03    13.585       -.19268E-06** at limit **
   5  Prefactor     .10015E-03    1.7869        .16482E-05** at limit **
   6  Prefactor     15.772        14.836       -.26958E-06   -.83808E-04
   7  norm          1.4646        .56091       -.63021E-07   -.57118E-02
   8  Prefactor     .10048E-03    5.0624        .40175E-05** at limit **
   9  norm          .10000E-03    6.3410        .21621E-06** at limit **
  10  Prefactor     .36461        1.3741        .82286E-07   -.24927E-03
  11  Prefactor     4.8400        6.6100       -.43614E-06   -.25828E-03
  12  Prefactor     5.9708        10.946       -.46799E-07   -.47634E-04
  13  norm          .10000E-03    4.8176       -.98773E-07** at limit **
  14  Prefactor     .10000E-03    8.8212       -.47477E-06** at limit **
  15  Prefactor     7.4691        6.8577       -.28254E-06   -.24030E-03
  16  Prefactor     13.646        20.748       -.35140E-07   -.32877E-04
  17  Prefactor     .10000E-03    4.8145        .21234E-06** at limit **
  18  norm          16.646        13.649        .93651E-07   -.72988E-04
  19  Prefactor     .10000E-03    1.9157       -.18536E-06** at limit **
  20  Prefactor     .13185        2.0338       -.10015E-05   -.66239E-04
  21  Prefactor     8.4666        4.8268       -.10597E-06   -.63827E-03
  22  Prefactor     19.236        29.270       -.46403E-05   -.21469E-03
  23  norm          6.7467        2.7172        .10207E-07   -.15135E-04
  24  Prefactor     .10000E-03    2.9487       -.85043E-06** at limit **
  25  norm          .10000E-03    9.5242        .15703E-05** at limit **
  26  Prefactor     .10000E-03    12.041        .59298E-06** at limit **
  27  Prefactor     6.5299        5.0439        .98978E-07   -.17313E-03
  28  Prefactor     .10001E-03    13.953       -.67777E-05** at limit **
  29  Prefactor     9.9011        36.093        .11186E-05   -.11017E-04
  30  Normalizat    1.1542        .18257       -.70499E-06   -.38510E-03
  31  Prefactor     .81628        .21295        .82414E-06   -.31437E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.31751
  Prefactor  = 14.7108
  Prefactor  = 0.419142
  Prefactor  = 0.0001
  Prefactor  = 0.000100148
  Prefactor  = 15.7721
  norm       = 1.46465
  Prefactor  = 0.000100483
  norm       = 0.0001
  Prefactor  = 0.36461
  Prefactor  = 4.84004
  Prefactor  = 5.97081
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.46912
  Prefactor  = 13.6456
  Prefactor  = 0.0001
  norm       = 16.6457
  Prefactor  = 0.0001
  Prefactor  = 0.13185
  Prefactor  = 8.46664
  Prefactor  = 19.2361
  norm       = 6.74669
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.52989
  Prefactor  = 0.000100011
  Prefactor  = 9.90111
  Normalizat = 1.15423
  Prefactor  = 0.816284
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.939     FROM HESSE     STATUS=OK           642 CALLS     4868 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3175        2.0229        .13140E-03   -1.5478    
   2  Prefactor     14.711        51.265        .10439E-03   -1.4941    
   3  Prefactor     .41914        6.8184        .25812E-02   -1.5578    
   4  Prefactor     .10000E-03    13.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10015E-03    1.8494        .29250E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.772        14.810        .10084E-03   -1.4913    
   7  norm          1.4646        .50848        .30551E-04   -1.5466    
   8  Prefactor     .10048E-03    32.981        .14531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.5437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .36461        1.3559        .16602E-03   -1.5587    
  11  Prefactor     4.8400        6.6121        .91424E-03   -1.5268    
  12  Prefactor     5.9708        10.928        .16432E-03   -1.5219    
  13  norm          .10000E-03    4.8195        .16438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.8325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.4691        6.8674        .73367E-03   -1.5161    
  16  Prefactor     13.646        20.746        .10842E-03   -1.4969    
  17  Prefactor     .10000E-03    4.8440        .16433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.646        13.671        .98152E-04   -1.4892    
  19  Prefactor     .10000E-03    1.9253        .10356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .13185        15.129        .19426E-02   -1.5635    
  21  Prefactor     8.4666        4.5626        .11347E-03   -1.5126    
  22  Prefactor     19.236        29.444        .91194E-04   -1.4831    
  23  norm          6.7467        2.7179        .78003E-04   -1.5188    
  24  Prefactor     .10000E-03    9.3764        .22500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    9.7763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.5299        5.0347        .13774E-03   -1.5197    
  28  Prefactor     .10001E-03    18.636        .22154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     9.9011        35.924        .12740E-03   -1.5079    
  30  Normalizat    1.1542        .20750        .21618E-03   -.88029    
  31  Prefactor     .81628        .24108        .30936E-03   -.99131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59447e-08
Minuit parameter uncertainties:
  1  2.02301
  2  51.4195
  3  3.3811
  4  2.18495e-06
  5  0.0010464
  6  14.8131
  7  0.508485
  8  0.00798532
  9  2.0438e-05
  10  1.35601
  11  6.6131
  12  10.932
  13  2.14103e-06
  14  1.02245e-05
  15  6.86808
  16  20.7568
  17  9.21541e-06
  18  13.6731
  19  1.85853e-07
  20  2.82442
  21  4.56276
  22  29.4664
  23  2.71793
  24  0.000177983
  25  0.000205276
  26  2.63573e-05
  27  5.03506
  28  0.000889673
  29  36.0029
  30  0.20765
  31  0.24139
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.365e+01  2.076e+01  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:  8.163e-01  2.414e-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:  1.154e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.63
Ra Dec: 147.262 40.637
Photon Flux Upper Limit: 7.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/526543/likelihoodResults_540259201_540518401_4FGL_J0949.0+4038_daily_bin1161.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5880.71187844
delta logL = 0.226897623693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5880.71106106
delta logL = 0.227714999579

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.413       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0503       1.0000          .0000       10.000    
     3 'Normalizat'    1.1596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80803       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=   5880.711     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      296 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.415        31.732        .79463E-04   -.18937E-03
   2  Index         2.0502        .70403        .10350E-01   -.90919E-04
   3  Normalizat    1.1596        .19347        .21569E-03    .10162E-03
   4  Prefactor     .80804        .23773        .31063E-03    .77040E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4151
  Index      = 2.05024
  Normalizat = 1.1596
  Prefactor  = 0.808039
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.711     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.415        31.466        .15893E-04   -1.4699    
   2  Index         2.0502        .69834        .41400E-03   -.63100    
   3  Normalizat    1.1596        .19363        .43139E-04   -.87861    
   4  Prefactor     .80804        .23792        .12425E-04   -.99433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50689e-10
Minuit parameter uncertainties:
  1  31.4865
  2  0.701872
  3  0.193747
  4  0.238219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/526543': 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) = 5880.71106094
delta logL = 0.227715128564

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  2.542e+01  3.149e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.050e+00  7.019e-01  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:  8.080e-01  2.382e-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:  1.160e+00  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 147.262 40.637
Photon Index (Free Index): 2.05 +/- 0.70
Photon Flux (Free Index): 1.36e-08 +/- 1.79e-08
Energy Flux (Free Index): 8.36e-06 +/- 1.39e-05

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/526543/cmap_HighResolution_540259201_540518401_4FGL_J0949.0+4038_daily_bin1161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', comment='SUCCESS', energy_flux2='8.36e-06', dlogl='2.28e-01', photon_flux2='1.36e-08', job_status='DONE', time_completed='2021-09-01 03:32:07.000527', photon_index_error2='0.70', photon_index2='2.05', ts='0.63', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='7.47e-08', energy_flux_error2='1.39e-05', EG='1.15', time_epoch_completed='1630492327.0', return_code='0', job_id='526543', GAL2='0.81', EG2='1.16', return_code2='0', photon_flux_error2='1.79e-08', ts2='1.09', photon_index='2.61' WHERE bin_id='1161' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:32:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 526543: <4FGL_J0949.0+4038_daily_bin1161> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin1161 147.262 40.6367 540259201 540518401 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 :                                   955.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            994 sec.

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

