/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 125 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0949.0+4038_daily_bin18
RA = 147.262, Dec = 40.6367
tmin = 243993601, tmax = 244252801
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='520209', job_status='RUN', time_executed='2021-09-01 02:58:13.809074', time_epoch_executed='1630490293.81' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520209

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520209/ft1_4FGL_J0949.0+4038_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520209/ft2_4FGL_J0949.0+4038_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520209/ft1_4FGL_J0949.0+4038_daily_bin18.fits outfile=/scratch/kocevski/520209/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin18.fits ra=147.262 dec=40.6367 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.46
user 1.22
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/520209/ft1_filtered_4FGL_J0949.0+4038_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/520209/ft2_4FGL_J0949.0+4038_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/520209/ltcube_243993601_244252801_4FGL_J0949.0+4038_daily_bin18.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/520209/ft2_4FGL_J0949.0+4038_daily_bin18.fits
.....................!
real 12.32
user 11.94
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520209/ft1_filtered_4FGL_J0949.0+4038_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/520209/ft2_4FGL_J0949.0+4038_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/520209/ltcube_243993601_244252801_4FGL_J0949.0+4038_daily_bin18.fits outfile=/scratch/kocevski/520209/expmap_243993601_244252801_4FGL_J0949.0+4038_daily_bin18.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/520209/ltcube_243993601_244252801_4FGL_J0949.0+4038_daily_bin18.fits
.....................!
real 191.18
user 186.25
sys 4.38

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/520209/ft1_filtered_4FGL_J0949.0+4038_daily_bin18.fits scfile=/scratch/kocevski/520209/ft2_4FGL_J0949.0+4038_daily_bin18.fits outfile=/scratch/kocevski/520209/cmap_243993601_244252801_4FGL_J0949.0+4038_daily_bin18.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.92
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/520209/ft1_filtered_4FGL_J0949.0+4038_daily_bin18.fits scfile=/scratch/kocevski/520209/ft2_4FGL_J0949.0+4038_daily_bin18.fits outfile=/scratch/kocevski/520209/cmap_HighResolution_243993601_244252801_4FGL_J0949.0+4038_daily_bin18.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.72
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83618       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8070       1.0000         .10000E-03   10000.    
     4 'Prefactor '    71.198       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17897E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17443E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .33349       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1406       1.0000         .10000E-03   10000.    
     9 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2306       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1277       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.140       1.0000         .10000E-03   10000.    
    13 'norm      '    21.373       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .27390E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    70.909       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4404       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1915       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9904       1.0000         .10000E-03   10000.    
    22 'Prefactor '    41.717       1.0000         .10000E-03   10000.    
    23 'norm      '    10.581       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    25.743       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    16.919       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3981       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .27431       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=   5975.565     FROM MIGRAD    STATUS=CONVERGED    816 CALLS     4248 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83720        3.0739        .46765E-06   -.12759E-03
   2  Prefactor     .10000E-03    78.535        .22510E-07** at limit **
   3  Prefactor     5.8073        3.4908        .62940E-07   -.72392E-04
   4  Prefactor     71.210        42.590       -.79390E-06   -.18585E-03
   5  Prefactor     .10000E-03    1.9844        .18025E-05** at limit **
   6  Prefactor     .10000E-03    16.525        .19588E-05** at limit **
   7  norm          .33363        .64980        .14939E-06   -.77996E-03
   8  Prefactor     3.1379        4.0415       -.37311E-06   -.60433E-03
   9  norm          .10000E-03    5.1882        .49753E-06** at limit **
  10  Prefactor     1.2307        1.4283       -.69614E-07   -.83609E-03
  11  Prefactor     2.1262        5.3340        .30869E-05   -.84120E-03
  12  Prefactor     22.137        16.803       -.94430E-06   -.10480E-03
  13  norm          21.375        16.365       -.87900E-08   -.80880E-04
  14  Prefactor     .10000E-03    8.6591       -.31492E-07** at limit **
  15  Prefactor     .10000E-03    4.6200       -.75432E-06** at limit **
  16  Prefactor     70.904        38.082        .64896E-08   -.13838E-03
  17  Prefactor     .10000E-03    4.4146        .80207E-07** at limit **
  18  norm          .10000E-03    9.7541        .14632E-06** at limit **
  19  Prefactor     3.4379        5.3951        .17148E-05   -.91288E-03
  20  Prefactor     2.1917        1.9608        .46993E-07   -.21882E-04
  21  Prefactor     8.9881        4.4011        .28455E-07   -.27656E-04
  22  Prefactor     41.712        29.523        .99757E-07   -.21115E-04
  23  norm          10.581        3.6715       -.52308E-07   -.44930E-04
  24  Prefactor     .10000E-03    3.4495       -.33920E-07** at limit **
  25  norm          25.738        12.883        .78015E-07    .17936E-03
  26  Prefactor     .10000E-03    33.939       -.19404E-05** at limit **
  27  Prefactor     .10000E-03    2.7798       -.12278E-05** at limit **
  28  Prefactor     .10000E-03    7.3799       -.23066E-05** at limit **
  29  Prefactor     16.893        42.271        .24431E-05   -.11999E-04
  30  Normalizat    1.3986        .20160        .28657E-06   -.33614E-03
  31  Prefactor     .27374        .22123       -.28504E-05   -.26224E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.837204
  Prefactor  = 0.0001
  Prefactor  = 5.80735
  Prefactor  = 71.2102
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  norm       = 0.333625
  Prefactor  = 3.13787
  norm       = 0.0001
  Prefactor  = 1.23072
  Prefactor  = 2.12617
  Prefactor  = 22.1374
  norm       = 21.3755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.9044
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.43787
  Prefactor  = 2.1917
  Prefactor  = 8.98806
  Prefactor  = 41.7123
  norm       = 10.5808
  Prefactor  = 0.0001
  norm       = 25.7384
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 16.8925
  Normalizat = 1.39856
  Prefactor  = 0.273737
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.565     FROM HESSE     STATUS=OK           626 CALLS     4874 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83720        3.0776        .23499E-03   -1.5525    
   2  Prefactor     .10000E-03    78.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8073        3.4828        .10770E-03   -1.5226    
   4  Prefactor     71.210        42.448        .47576E-04   -1.4018    
   5  Prefactor     .10000E-03    3.4601        .19808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .33363        .67193        .51131E-03   -1.5592    
   8  Prefactor     3.1379        4.4674        .10206E-03   -1.5354    
   9  norm          .10000E-03    5.3394        .34422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2307        1.4045        .95248E-04   -1.5486    
  11  Prefactor     2.1262        5.5591        .14127E-02   -1.5416    
  12  Prefactor     22.137        16.657        .85126E-04   -1.4767    
  13  norm          21.375        16.348        .86640E-04   -1.4783    
  14  Prefactor     .10000E-03    8.6636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.550        .31400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     70.904        38.157        .47672E-04   -1.4022    
  17  Prefactor     .10000E-03    4.4487        .15859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.8249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4379        5.5755        .10903E-02   -1.5337    
  20  Prefactor     2.1917        1.9496        .99257E-04   -1.5412    
  21  Prefactor     8.9881        4.4036        .10716E-03   -1.5108    
  22  Prefactor     41.712        29.550        .62064E-04   -1.4415    
  23  norm          10.581        3.6718        .84177E-04   -1.5057    
  24  Prefactor     .10000E-03    3.4951        .13964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          25.738        12.882        .78954E-04   -1.4693    
  26  Prefactor     .10000E-03    34.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.9232        .12767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.9230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     16.893        42.307        .97371E-04   -1.4886    
  30  Normalizat    1.3986        .19944        .19421E-03   -.80670    
  31  Prefactor     .27374        .21072        .47154E-03   -1.2384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01214e-09
Minuit parameter uncertainties:
  1  3.07817
  2  0.000119254
  3  3.4829
  4  42.4657
  5  0.000111317
  6  0.000497831
  7  0.671943
  8  4.46789
  9  6.80556e-05
  10  1.4045
  11  5.56041
  12  16.66
  13  16.3517
  14  5.4167e-05
  15  9.13898e-05
  16  38.1701
  17  1.32081e-05
  18  5.43191e-05
  19  5.5763
  20  1.94968
  21  4.40377
  22  29.56
  23  3.67184
  24  9.73589e-06
  25  12.8835
  26  0.000709774
  27  0.000130003
  28  0.000367816
  29  42.3822
  30  0.199554
  31  0.211308
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  7.090e+01  3.817e+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:  2.737e-01  2.113e-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.399e+00  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.88
Ra Dec: 147.262 40.637
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 7.44e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 1.04e-05

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) = 5974.14117719
delta logL = 1.42430864546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5974.06706606
delta logL = 1.49841977709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.135       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8513       1.0000          .0000       10.000    
     3 'Normalizat'    1.4400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .24386       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=   5974.067     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      219 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     86.034        59.423       -.50288E-06    .13518E-04
   2  Index         1.8501        .45417       -.22585E-05    .10966E-04
   3  Normalizat    1.4400        .18237       -.57856E-05    .40088E-03
   4  Prefactor     .24401        .20718        .11281E-04    .20840E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 86.0341
  Index      = 1.85007
  Normalizat = 1.43998
  Prefactor  = 0.244008
 **********
 **   18 **HESSE 
 **********

 FCN=   5974.067     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     86.034        58.552        .21643E-03   -1.3850    
   2  Index         1.8501        .44747        .67794E-02   -.68154    
   3  Normalizat    1.4400        .18215        .19200E-03   -.79479    
   4  Prefactor     .24401        .20500        .49770E-03   -1.2571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01156e-10
Minuit parameter uncertainties:
  1  58.5911
  2  0.448466
  3  0.182237
  4  0.205612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520209': 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) = 5974.067062
delta logL = 1.49842383856

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  8.603e+01  5.859e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  1.850e+00  4.485e-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:  2.440e-01  2.056e-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.440e+00  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.85
Ra Dec: 147.262 40.637
Photon Index (Free Index): 1.85 +/- 0.45
Photon Flux (Free Index): 3.84e-08 +/- 3.48e-08
Energy Flux (Free Index): 3.96e-05 +/- 3.41e-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/520209/cmap_HighResolution_243993601_244252801_4FGL_J0949.0+4038_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.44e-08', energy_flux2='3.96e-05', photon_flux_error='4.00e-08', dlogl='1.50e+00', energy_flux='1.94e-05', photon_flux2='3.84e-08', job_status='DONE', time_completed='2021-09-01 03:12:24.323285', photon_index_error2='0.45', photon_index2='1.85', ts='8.88', fit_tolerance='1e-08', GAL='0.27', photon_index_error='0.00', energy_flux_error2='3.41e-05', EG='1.40', time_epoch_completed='1630491144.32', return_code='0', job_id='520209', GAL2='0.24', EG2='1.44', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='3.48e-08', ts2='11.85', photon_index='2.61' WHERE bin_id='18' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:12:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 520209: <4FGL_J0949.0+4038_daily_bin18> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin18> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 02:55:54 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:55:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 02:55:55 2021
Terminated at Wed Sep  1 03:12:25 2021
Results reported at Wed Sep  1 03:12:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin18 147.262 40.6367 243993601 244252801 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 :                                   833.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             320.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

