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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin1283
RA = 147.262, Dec = 40.6367
tmin = 571881601, tmax = 572140801
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='528032', job_status='RUN', time_executed='2021-09-01 03:20:54.755139', time_epoch_executed='1630491654.76' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/528032

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/528032/ft1_4FGL_J0949.0+4038_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/528032/ft2_4FGL_J0949.0+4038_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/528032/ft1_4FGL_J0949.0+4038_daily_bin1283.fits outfile=/scratch/kocevski/528032/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1283.fits ra=147.262 dec=40.6367 rad=12.0 tmin=571881601.0 tmax=572140801.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 2.58
user 2.34
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/528032/ft1_filtered_4FGL_J0949.0+4038_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/528032/ft2_4FGL_J0949.0+4038_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/528032/ltcube_571881601_572140801_4FGL_J0949.0+4038_daily_bin1283.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/528032/ft2_4FGL_J0949.0+4038_daily_bin1283.fits
.....................!
real 12.81
user 12.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/528032/ft1_filtered_4FGL_J0949.0+4038_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/528032/ft2_4FGL_J0949.0+4038_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/528032/ltcube_571881601_572140801_4FGL_J0949.0+4038_daily_bin1283.fits outfile=/scratch/kocevski/528032/expmap_571881601_572140801_4FGL_J0949.0+4038_daily_bin1283.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/528032/ltcube_571881601_572140801_4FGL_J0949.0+4038_daily_bin1283.fits
.....................!
real 192.48
user 187.22
sys 4.72

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/528032/ft1_filtered_4FGL_J0949.0+4038_daily_bin1283.fits scfile=/scratch/kocevski/528032/ft2_4FGL_J0949.0+4038_daily_bin1283.fits outfile=/scratch/kocevski/528032/cmap_571881601_572140801_4FGL_J0949.0+4038_daily_bin1283.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/528032/ft1_filtered_4FGL_J0949.0+4038_daily_bin1283.fits scfile=/scratch/kocevski/528032/ft2_4FGL_J0949.0+4038_daily_bin1283.fits outfile=/scratch/kocevski/528032/cmap_HighResolution_571881601_572140801_4FGL_J0949.0+4038_daily_bin1283.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.58
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/528032/ft1_filtered_4FGL_J0949.0+4038_daily_bin1283.fits', '/scratch/kocevski/528032/ft2_4FGL_J0949.0+4038_daily_bin1283.fits', expMap='/scratch/kocevski/528032/expmap_571881601_572140801_4FGL_J0949.0+4038_daily_bin1283.fits', expCube='/scratch/kocevski/528032/ltcube_571881601_572140801_4FGL_J0949.0+4038_daily_bin1283.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/528032/Model_4FGL_J0949.0+4038_daily_bin1283.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/528032/ft1_filtered_4FGL_J0949.0+4038_daily_bin1283.fits
Spacecraft file(s): /scratch/kocevski/528032/ft2_4FGL_J0949.0+4038_daily_bin1283.fits
Exposure map: /scratch/kocevski/528032/expmap_571881601_572140801_4FGL_J0949.0+4038_daily_bin1283.fits
Exposure cube: /scratch/kocevski/528032/ltcube_571881601_572140801_4FGL_J0949.0+4038_daily_bin1283.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/528032/Model_4FGL_J0949.0+4038_daily_bin1283.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0401       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0219       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9002       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9597       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4222       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2153       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9775       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2512       1.0000         .10000E-03   10000.    
     9 'norm      '    3.3766       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0663       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22356E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10407E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6367       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5770       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .54746E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8757       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3169       1.0000         .10000E-03   10000.    
    18 'norm      '    .26727       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11657E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0098       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .34118E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5349       1.0000         .10000E-03   10000.    
    23 'norm      '    9.3747       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .29423E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .38028E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.7555       1.0000         .10000E-03   10000.    
    27 'Prefactor '    32.517       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .36779E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .99223E-02   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .33136       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   56.00121     FROM MIGRAD    STATUS=CONVERGED    341 CALLS      510 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        9849.0       -.61394E-04** at limit **
   2  Prefactor     .10000E-03    9316.5       -.39220E-04** at limit **
   3  Prefactor     1.9002        9997.3         .0000         .0000    
   4  Prefactor     5.9597        9996.7         .0000         .0000    
   5  Prefactor     1.4222        9997.2         .0000         .0000    
   6  Prefactor     7.2153        9996.2         .0000         .0000    
   7  norm         10000.0        7965.6        .15200E-04** at limit **
   8  Prefactor    10000.0        6824.1        .24380E-04** at limit **
   9  norm          3.3766        9997.3         .0000         .0000    
  10  Prefactor     1.0663        9997.0         .0000         .0000    
  11  Prefactor     .10000E-03    135.45        .98400E-06** at limit **
  12  Prefactor     .10000E-03    176.93        .26454E-05** at limit **
  13  norm          .10005E-03    7433.4       -.13164E-04** at limit **
  14  Prefactor     .10000E-03    8495.5        .28455E-04** at limit **
  15  Prefactor     .10000E-03    40.162       -.82412E-06** at limit **
  16  Prefactor     .10002E-03    7531.6       -.84177E-05** at limit **
  17  Prefactor     .10007E-03    9453.0        .28161E-04** at limit **
  18  norm          .10000E-03    71.714       -.77220E-06** at limit **
  19  Prefactor     .10000E-03    17.379       -.47269E-06** at limit **
  20  Prefactor     1.0098        9996.9         .0000         .0000    
  21  Prefactor     .10000E-03    130.56        .52873E-06** at limit **
  22  Prefactor     .10000E-03    293.32        .34802E-05** at limit **
  23  norm          9.4590        10.455       -.52249E-06   -.22114E-04
  24  Prefactor     .10000E-03    103.71        .13211E-05** at limit **
  25  norm          .10000E-03    75.875       -.29775E-05** at limit **
  26  Prefactor     .10002E-03    280.88        .68756E-05** at limit **
  27  Prefactor     .10000E-03    804.80       -.92704E-04** at limit **
  28  Prefactor     .10000E-03    48.504       -.57067E-06** at limit **
  29  Prefactor     123.96        217.48       -.35642E-05   -.49219E-04
  30  Normalizat    .10000E-01    .30373       -.62527E-05** at limit **
  31  Prefactor     .29063        .44674        .18577E-04    .27177E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 0.000100001
  Prefactor  = 1.9002
  Prefactor  = 5.95967
  Prefactor  = 1.42219
  Prefactor  = 7.21531
  norm       = 10000
  Prefactor  = 10000
  norm       = 3.37659
  Prefactor  = 1.06631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100053
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.000100068
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.00983
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 9.45897
  Prefactor  = 0.000100004
  norm       = 0.000100001
  Prefactor  = 0.000100018
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 123.955
  Normalizat = 0.01
  Prefactor  = 0.290627
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   56.00121     FROM HESSE     STATUS=FAILED        17 CALLS      527 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        9612.4        .12283E-01   -10.996    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9292.8        .50270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     570.65        568.61         .0000       -1.5432    
   4  Prefactor     5.9597        1.0036         .0000       -1.5220    
   5  Prefactor     1.4222        1.0811         .0000       -1.5469    
   6  Prefactor     7.2153        1.0024         .0000       -1.5171    
   7  norm         10000.0        .13577        .15200E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        .24967        .24380E-04   -10.996    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3766        1.0114         .0000       -1.5340    
  10  Prefactor     1.0663        1.2185         .0000       -1.5501    
  11  Prefactor     .10000E-03    .20859        .98400E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .20589        .26454E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10005E-03    .17054       -.13164E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .10100        .28455E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .21591       -.82412E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    .36580E-01   -.84177E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10007E-03    .23006        .28161E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .26422       -.77220E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .20571       -.47269E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0098        1.3253         .0000       -1.5507    
  21  Prefactor     .10000E-03    .21124        .52873E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .18527        .34802E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.4590        1.0059       -.52249E-06   -1.5093    
  24  Prefactor     .10000E-03    .21018        .13211E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .21213       -.29775E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10002E-03    .93958E-01    .68756E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .77151E-02   -.92704E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .21184       -.57067E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     123.96        10.038       -.35642E-05   -1.7939    
  30  Normalizat    .10000E-01    .25505       -.62527E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .29063        .61140        .18577E-04   -1.2282    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.54749e-10
Minuit parameter uncertainties:
  1  0.70049
  2  0.00534053
  3  1.03966
  4  1.00356
  5  1.08115
  6  1.00242
  7  4.6513e-05
  8  5.10079e-06
  9  1.01141
  10  1.21855
  11  8.57619e-06
  12  1.62321e-05
  13  0.000189714
  14  4.29303e-05
  15  5.93341e-06
  16  5.10524e-05
  17  0.000250341
  18  1.13476e-05
  19  3.37098e-06
  20  1.32538
  21  3.73418e-06
  22  3.95464e-05
  23  1.00592
  24  5.70493e-05
  25  3.44104e-05
  26  8.18891e-05
  27  4.54861e-06
  28  8.82421e-09
  29  10.0382
  30  3.22248e-06
  31  0.625776
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  5.105e-05  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:  2.906e-01  6.258e-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.000e-02  3.222e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.80155598337

TS (Fixed Index): -0.00
Ra Dec: 147.262 40.637
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.83e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/528032/likelihoodResults_571881601_572140801_4FGL_J0949.0+4038_daily_bin1283.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) = 56.0019874012
delta logL = -0.00077581094795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 56.0019874008
delta logL = -0.000775810603528

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.6068       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=   56.00199     FROM MIGRAD    STATUS=CONVERGED     25 CALLS       90 TOTAL
                     EDM=   .74E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 19.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       1.8383        5.0291       -.18534        .29809E-07
                               ERR DEF=  .500    
Final values: 
  Index      = 1.83827
 **********
 **   18 **HESSE 
 **********

 FCN=   56.00199     FROM HESSE     STATUS=OK            11 CALLS      101 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       1.8383        5.2573        .50000       -.68458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58828e-11
Minuit parameter uncertainties:
  1  681.998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/528032': 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) = 56.0019871875
delta logL = -0.000775597285838

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  9.636e-03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
324        Index:  1.838e+00  6.820e+02  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:  2.904e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/528032/cmap_HighResolution_571881601_572140801_4FGL_J0949.0+4038_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.83e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-01 03:26:26.486740', job_id='528032', GAL2='0.29', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630491986.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.29', dlogl='-7.76e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1283' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:26:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 528032: <4FGL_J0949.0+4038_daily_bin1283> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin1283> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 03:20:37 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:20:39 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:20:39 2021
Terminated at Wed Sep  1 03:26:26 2021
Results reported at Wed Sep  1 03:26:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin1283 147.262 40.6367 571881601 572140801 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 :                                   326.04 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             328.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   347 sec.
    Turnaround time :                            349 sec.

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

