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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin433
RA = 147.262, Dec = 40.6367
tmin = 351561601, tmax = 351820801
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='523163', job_status='RUN', time_executed='2021-09-01 03:05:36.213091', time_epoch_executed='1630490736.21' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/523163

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/523163/ft1_4FGL_J0949.0+4038_daily_bin433.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/523163/ft2_4FGL_J0949.0+4038_daily_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/523163/ft1_4FGL_J0949.0+4038_daily_bin433.fits outfile=/scratch/kocevski/523163/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin433.fits ra=147.262 dec=40.6367 rad=12.0 tmin=351561601.0 tmax=351820801.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 7.13
user 6.53
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/523163/ft2_4FGL_J0949.0+4038_daily_bin433.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/523163/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin433.fits evtable="EVENTS" outfile="/scratch/kocevski/523163/ft1_filtered_4FGL_J0949.0+4038_daily_bin433.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/523163/ft1_filtered_4FGL_J0949.0+4038_daily_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/523163/ft2_4FGL_J0949.0+4038_daily_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/523163/ltcube_351561601_351820801_4FGL_J0949.0+4038_daily_bin433.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/523163/ft2_4FGL_J0949.0+4038_daily_bin433.fits
.....................!
real 11.33
user 10.91
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/523163/ft1_filtered_4FGL_J0949.0+4038_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/523163/ft2_4FGL_J0949.0+4038_daily_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/523163/ltcube_351561601_351820801_4FGL_J0949.0+4038_daily_bin433.fits outfile=/scratch/kocevski/523163/expmap_351561601_351820801_4FGL_J0949.0+4038_daily_bin433.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/523163/ltcube_351561601_351820801_4FGL_J0949.0+4038_daily_bin433.fits
.....................!
real 191.64
user 185.51
sys 5.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 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/523163/ft1_filtered_4FGL_J0949.0+4038_daily_bin433.fits scfile=/scratch/kocevski/523163/ft2_4FGL_J0949.0+4038_daily_bin433.fits outfile=/scratch/kocevski/523163/cmap_351561601_351820801_4FGL_J0949.0+4038_daily_bin433.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/523163/ft1_filtered_4FGL_J0949.0+4038_daily_bin433.fits scfile=/scratch/kocevski/523163/ft2_4FGL_J0949.0+4038_daily_bin433.fits outfile=/scratch/kocevski/523163/cmap_HighResolution_351561601_351820801_4FGL_J0949.0+4038_daily_bin433.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9193       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7337       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6077       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3399       1.0000         .10000E-03   10000.    
     9 'norm      '    1.8986       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4485       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11296E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .76308E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23431E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.360       1.0000         .10000E-03   10000.    
    18 'norm      '    .17509E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.5409       1.0000         .10000E-03   10000.    
    23 'norm      '    13.666       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.1607       1.0000         .10000E-03   10000.    
    25 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.9810       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .19197E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.7087       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .71524       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0682       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=   4449.578     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     3647 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .48956       -.11263E-07** at limit **
   2  Prefactor     .10000E-03    20.238       -.64599E-07** at limit **
   3  Prefactor     4.9183        3.6272       -.58911E-07    .47181E-04
   4  Prefactor     .10000E-03    13.886       -.76548E-06** at limit **
   5  Prefactor     2.7341        2.9683       -.43332E-07   -.94297E-05
   6  Prefactor     8.5623        24.776       -.24547E-05    .10973E-04
   7  norm          .10000E-03    .45775        .51520E-06** at limit **
   8  Prefactor     3.3441        2.4515       -.44751E-06   -.72067E-03
   9  norm          1.9237        13.456        .32870E-05   -.22317E-03
  10  Prefactor     1.4469        2.5573       -.76895E-06   -.53011E-03
  11  Prefactor     .10000E-03    8.0210       -.19173E-06** at limit **
  12  Prefactor     .10000E-03    25.589       -.21198E-06** at limit **
  13  norm          .10001E-03    10.043       -.13966E-05** at limit **
  14  Prefactor     .10000E-03    23.973        .62715E-06** at limit **
  15  Prefactor     .10000E-03    7.6997       -.15858E-06** at limit **
  16  Prefactor     .10000E-03    79.645        .41210E-05** at limit **
  17  Prefactor     17.361        11.406       -.17821E-07    .84094E-04
  18  norm          .10006E-03    11.591        .28041E-05** at limit **
  19  Prefactor     .10000E-03    1.6501        .26439E-07** at limit **
  20  Prefactor     .10000E-03    2.5520        .17222E-05** at limit **
  21  Prefactor     .10000E-03    1.7517       -.17734E-06** at limit **
  22  Prefactor     5.5972        32.330       -.49555E-06    .31524E-04
  23  norm          13.668        4.1478        .12634E-07    .12591E-03
  24  Prefactor     5.1610        4.4656        .33447E-07    .26503E-03
  25  norm          .10000E-03    3.9415        .11430E-05** at limit **
  26  Prefactor     .10000E-03    16.540        .34758E-06** at limit **
  27  Prefactor     5.9804        5.4974        .15270E-06    .19899E-03
  28  Prefactor     .10000E-03    3.1809       -.39487E-06** at limit **
  29  Prefactor     3.7116        49.320       -.75543E-06    .40875E-05
  30  Normalizat    .71506        .18730        .35203E-05    .41476E-03
  31  Prefactor     1.0684        .22558       -.22447E-05   -.73815E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.91829
  Prefactor  = 0.0001
  Prefactor  = 2.73414
  Prefactor  = 8.56229
  norm       = 0.0001
  Prefactor  = 3.34405
  norm       = 1.92373
  Prefactor  = 1.44688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 17.361
  norm       = 0.00010006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.59724
  norm       = 13.6678
  Prefactor  = 5.16101
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.98043
  Prefactor  = 0.0001
  Prefactor  = 3.71165
  Normalizat = 0.71506
  Prefactor  = 1.06836
 **********
 **   18 **HESSE 
 **********

 FCN=   4449.578     FROM HESSE     STATUS=OK           626 CALLS     4273 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .49036        .45585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9183        3.6275        .10554E-03   -1.5264    
   4  Prefactor     .10000E-03    13.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7341        2.9328        .11019E-03   -1.5377    
   6  Prefactor     8.5623        25.373        .13663E-03   -1.5123    
   7  norm          .10000E-03    1.2225        .76581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3441        2.5767        .87810E-04   -1.5342    
   9  norm          1.9237        14.644        .15093E-02   -1.5431    
  10  Prefactor     1.4469        2.5332        .12794E-03   -1.5467    
  11  Prefactor     .10000E-03    8.1586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    35.775        .39136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.0170        .36141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    80.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.361        11.402        .96127E-04   -1.4874    
  18  norm          .10006E-03    24.114        .31608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.6541        .83666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.9776        .17072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.7708        .86169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.5972        32.278        .17068E-03   -1.5235    
  23  norm          13.668        4.1458        .72564E-04   -1.4968    
  24  Prefactor     5.1610        4.4362        .12394E-03   -1.5254    
  25  norm          .10000E-03    3.9333        .12905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.9804        5.4491        .13352E-03   -1.5219    
  28  Prefactor     .10000E-03    19.772        .22601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.7116        48.425        .20970E-03   -1.5323    
  30  Normalizat    .71506        .20574        .23053E-03   -1.0330    
  31  Prefactor     1.0684        .24526        .24440E-03   -.90484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55447e-09
Minuit parameter uncertainties:
  1  4.72778e-07
  2  1.6347e-05
  3  3.62769
  4  9.47198e-05
  5  2.93298
  6  25.405
  7  2.7044e-05
  8  2.57679
  9  10.6185
  10  2.5334
  11  3.00088e-05
  12  7.66912e-05
  13  0.000890709
  14  7.30409e-05
  15  1.86311e-05
  16  0.00110089
  17  11.403
  18  0.00239923
  19  1.32817e-06
  20  1.07942e-05
  21  1.45058e-05
  22  26.9044
  23  4.14591
  24  4.43649
  25  4.64818e-05
  26  5.61817e-05
  27  5.44959
  28  4.73316e-05
  29  26.8396
  30  0.205963
  31  0.245522
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  1.101e-03  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.068e+00  2.455e-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:  7.151e-01  2.060e-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: 8.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/523163/likelihoodResults_351561601_351820801_4FGL_J0949.0+4038_daily_bin433.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) = 4449.57779108
delta logL = -5.92168807998e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4449.57773201
delta logL = -1.43400029629e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5590       1.0000          .0000       10.000    
     3 'Normalizat'    .71506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0684       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=   4449.578     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      278 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    9052.2        .18142E-02** at limit **
   2  Index         2.6488        7.8445        .50000       -.14337E-04
   3  Normalizat    .71505        .55861E-01    .23053E-03    .52767E-05
   4  Prefactor     1.0684        .71463E-01    .24440E-03   -.73961E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100022
  Index      = 2.64883
  Normalizat = 0.715055
  Prefactor  = 1.06837
 **********
 **   18 **HESSE 
 **********

 FCN=   4449.578     FROM HESSE     STATUS=OK            29 CALLS      307 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    148.37        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6488        6.2944        .50000       -.48956    
   3  Normalizat    .71505        .18811        .92214E-05   -1.0330    
   4  Prefactor     1.0684        .24083        .97761E-05   -.90484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62344e-10
Minuit parameter uncertainties:
  1  0.0036349
  2  5.45529
  3  0.188281
  4  0.241076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/523163': 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) = 4449.57773174
delta logL = 1.28567080537e-07

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  3.635e-03  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.649e+00  5.455e+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.068e+00  2.411e-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:  7.151e-01  1.883e-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/523163/cmap_HighResolution_351561601_351820801_4FGL_J0949.0+4038_daily_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.84e-03', job_status='DONE', photon_flux_upper_limit='8.73e-08', time_completed='2021-09-01 03:18:48.218922', job_id='523163', GAL2='1.07', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630491528.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='433' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:18:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 523163: <4FGL_J0949.0+4038_daily_bin433> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin433> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 03:05:23 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:05:24 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:05:24 2021
Terminated at Wed Sep  1 03:18:48 2021
Results reported at Wed Sep  1 03:18:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin433 147.262 40.6367 351561601 351820801 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 :                                   784.41 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             323.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            805 sec.

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

