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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin1016
RA = 147.262, Dec = 40.6367
tmin = 502675201, tmax = 502934401
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='525143', job_status='RUN', time_executed='2021-09-01 03:11:18.534334', time_epoch_executed='1630491078.53' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1016'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/525143

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/525143/ft1_4FGL_J0949.0+4038_daily_bin1016.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/525143/ft2_4FGL_J0949.0+4038_daily_bin1016.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/525143/ft1_4FGL_J0949.0+4038_daily_bin1016.fits outfile=/scratch/kocevski/525143/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1016.fits ra=147.262 dec=40.6367 rad=12.0 tmin=502675201.0 tmax=502934401.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.57
user 3.39
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/525143/ft1_filtered_4FGL_J0949.0+4038_daily_bin1016.fits evtable="EVENTS" scfile=/scratch/kocevski/525143/ft2_4FGL_J0949.0+4038_daily_bin1016.fits sctable="SC_DATA" expcube=/scratch/kocevski/525143/ltcube_502675201_502934401_4FGL_J0949.0+4038_daily_bin1016.fits outfile=/scratch/kocevski/525143/expmap_502675201_502934401_4FGL_J0949.0+4038_daily_bin1016.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/525143/ltcube_502675201_502934401_4FGL_J0949.0+4038_daily_bin1016.fits
.....................!
real 195.86
user 184.99
sys 3.93

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/525143/ft1_filtered_4FGL_J0949.0+4038_daily_bin1016.fits scfile=/scratch/kocevski/525143/ft2_4FGL_J0949.0+4038_daily_bin1016.fits outfile=/scratch/kocevski/525143/cmap_502675201_502934401_4FGL_J0949.0+4038_daily_bin1016.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/525143/ft1_filtered_4FGL_J0949.0+4038_daily_bin1016.fits scfile=/scratch/kocevski/525143/ft2_4FGL_J0949.0+4038_daily_bin1016.fits outfile=/scratch/kocevski/525143/cmap_HighResolution_502675201_502934401_4FGL_J0949.0+4038_daily_bin1016.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.074       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.400       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2798       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35842E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6935       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.169       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .66158E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3627       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0961       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.014       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.243       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10714E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .49510       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.9622       1.0000         .10000E-03   10000.    
    25 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    23.181       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.4213       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.1825       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0722       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .69240       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=   5060.642     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     4282 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9619        .88913E-06** at limit **
   2  Prefactor     15.290        117.47       -.24385E-04   -.55432E-04
   3  Prefactor     .10000E-03    2.0833       -.12992E-06** at limit **
   4  Prefactor     .10000E-03    15.164       -.22280E-06** at limit **
   5  Prefactor     .10000E-03    2.3494       -.11112E-06** at limit **
   6  Prefactor     41.398        22.775        .13579E-06   -.17443E-04
   7  norm          1.2800        .58716        .76086E-07   -.64337E-03
   8  Prefactor     .10001E-03    1.9760        .35025E-06** at limit **
   9  norm          .10000E-03    3.3953       -.67206E-07** at limit **
  10  Prefactor     3.6938        2.7646        .88970E-07   -.16619E-03
  11  Prefactor     35.180        14.699        .97907E-07   -.17964E-03
  12  Prefactor     .10000E-03    74.515        .29548E-05** at limit **
  13  norm          .10050E-03    13.792        .34810E-05** at limit **
  14  Prefactor     5.3900        63.285       -.55767E-05   -.16033E-03
  15  Prefactor     2.0990        7.4123        .46418E-05    .12416E-03
  16  Prefactor     25.978        50.446        .42754E-05   -.90197E-04
  17  Prefactor     10.245        8.8904        .74188E-07    .12156E-03
  18  norm          .10000E-03    5.0640        .36864E-08** at limit **
  19  Prefactor     .10004E-03    4.5798        .83656E-06** at limit **
  20  Prefactor     .49532        2.0848        .15629E-06    .56137E-04
  21  Prefactor     .10007E-03    2.9830       -.87570E-06** at limit **
  22  Prefactor     .10000E-03    24.431       -.95937E-07** at limit **
  23  norm          .10000E-03    1.0955       -.44312E-07** at limit **
  24  Prefactor     7.9711        5.9564        .17502E-06    .67195E-03
  25  norm          .10000E-03    2.5692       -.28726E-07** at limit **
  26  Prefactor     23.185        26.757        .17426E-07    .27214E-04
  27  Prefactor     8.4216        4.4233        .40698E-07    .29257E-04
  28  Prefactor     1.1786        4.0181       -.64714E-07    .35371E-04
  29  Prefactor     .10000E-03    14.435        .22865E-06** at limit **
  30  Normalizat    1.0723        .17991       -.11582E-05   -.10064E-03
  31  Prefactor     .69227        .20066        .12592E-05   -.13202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.2903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.3978
  norm       = 1.27997
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 3.69385
  Prefactor  = 35.18
  Prefactor  = 0.0001
  norm       = 0.000100501
  Prefactor  = 5.38997
  Prefactor  = 2.099
  Prefactor  = 25.9785
  Prefactor  = 10.2454
  norm       = 0.0001
  Prefactor  = 0.00010004
  Prefactor  = 0.495323
  Prefactor  = 0.000100067
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.97113
  norm       = 0.0001
  Prefactor  = 23.1847
  Prefactor  = 8.42159
  Prefactor  = 1.17862
  Prefactor  = 0.0001
  Normalizat = 1.07232
  Prefactor  = 0.692267
 **********
 **   18 **HESSE 
 **********

 FCN=   5060.642     FROM HESSE     STATUS=OK           626 CALLS     4908 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0619        .19489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.290        117.98        .10316E-03   -1.4926    
   3  Prefactor     .10000E-03    2.1250        .10024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4014        .21231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     41.398        22.751        .62301E-04   -1.4420    
   7  norm          1.2800        .51900        .31242E-04   -1.5482    
   8  Prefactor     .10001E-03    8.4614        .16480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.4009        .12790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6938        2.7416        .94613E-04   -1.5324    
  11  Prefactor     35.180        14.628        .67575E-04   -1.4521    
  12  Prefactor     .10000E-03    77.211        .42779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10050E-03    74.170        .44898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3900        56.325        .17354E-03   -1.5244    
  15  Prefactor     2.0990        7.4416        .14254E-02   -1.5418    
  16  Prefactor     25.978        49.350        .78542E-04   -1.4688    
  17  Prefactor     10.245        8.8606        .12520E-03   -1.5068    
  18  norm          .10000E-03    5.0896        .15633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    17.643        .28440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .49532        2.0736        .19751E-03   -1.5567    
  21  Prefactor     .10007E-03    22.080        .20047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.1071        .72693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.9711        5.2925        .12382E-03   -1.5143    
  25  norm          .10000E-03    2.5736        .11135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     23.185        26.268        .83195E-04   -1.4745    
  27  Prefactor     8.4216        4.4254        .10412E-03   -1.5127    
  28  Prefactor     1.1786        3.8745        .22509E-03   -1.5491    
  29  Prefactor     .10000E-03    14.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0723        .20766        .20750E-03   -.90646    
  31  Prefactor     .69227        .23159        .30545E-03   -1.0383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28302e-08
Minuit parameter uncertainties:
  1  3.81536e-05
  2  85.1804
  3  4.02391e-06
  4  9.34182e-06
  5  6.57372e-06
  6  22.7554
  7  0.518997
  8  0.000428398
  9  4.99252e-06
  10  2.74171
  11  14.6294
  12  0.000110959
  13  0.0122024
  14  34.8895
  15  7.44487
  16  49.4273
  17  8.86171
  18  3.88754e-06
  19  0.00168818
  20  2.02685
  21  0.0024324
  22  3.44934e-05
  23  1.90305e-06
  24  5.2928
  25  1.06601e-06
  26  26.2806
  27  4.42562
  28  3.87532
  29  2.55079e-06
  30  0.207818
  31  0.231912
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  2.598e+01  4.943e+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:  6.923e-01  2.319e-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.072e+00  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
Ra Dec: 147.262 40.637
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/525143/likelihoodResults_502675201_502934401_4FGL_J0949.0+4038_daily_bin1016.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) = 5059.45591715
delta logL = 1.18612021903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5059.39570213
delta logL = 1.24633524281

Fit tolerance = 1e-08

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

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

 FCN=   5059.396     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      287 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75595        7.3408        .84924E-02   -.42997E-02
   2  Index         5.5715        2.8865        .11130       -.25679E-03
   3  Normalizat    .97747        .46644E-01    .45885E-01   -.32415E-03
   4  Prefactor     .77470        .56433E-01    .65654E-01   -.88349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.755945
  Index      = 5.57145
  Normalizat = 0.977467
  Prefactor  = 0.774697
 **********
 **   18 **HESSE 
 **********

 FCN=   5059.396     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      318 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75595        15.075        .38247E-04   -1.5534    
   2  Index         5.5715        7.2559        .43741E-02    .11454    
   3  Normalizat    .97747        .17377        .21576E-03   -.93789    
   4  Prefactor     .77470        .20558        .29045E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.16301e-09
Minuit parameter uncertainties:
  1  6.75315
  2  5.07756
  3  0.173866
  4  0.205787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/525143': 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): 102
logL (Free Index) = 5059.39570047
delta logL = 1.24633690666

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  7.559e-01  6.753e+00  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  5.571e+00  5.078e+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:  7.747e-01  2.058e-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:  9.775e-01  1.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.33
Ra Dec: 147.262 40.637
Photon Index (Free Index): 5.57 +/- 5.08
Photon Flux (Free Index): 9.54e-08 +/- 6.11e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.88e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/525143/cmap_HighResolution_502675201_502934401_4FGL_J0949.0+4038_daily_bin1016.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.91e-03', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='1.25e+00', photon_flux2='9.54e-08', job_status='DONE', time_completed='2021-09-01 03:26:04.916239', photon_index_error2='5.08', photon_index2='5.57', ts='0.55', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='8.88e-06', EG='1.07', time_epoch_completed='1630491964.92', return_code='0', job_id='525143', GAL2='0.77', EG2='0.98', return_code2='102', photon_flux_error2='6.11e-08', ts2='3.33', photon_index='2.61' WHERE bin_id='1016' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:26:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 525143: <4FGL_J0949.0+4038_daily_bin1016> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin1016 147.262 40.6367 502675201 502934401 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 :                                   873.41 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             319.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

