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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin93
RA = 147.262, Dec = 40.6367
tmin = 263433601, tmax = 263692801
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='520288', job_status='RUN', time_executed='2021-09-01 02:58:46.172193', time_epoch_executed='1630490326.17' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520288

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520288/ft1_4FGL_J0949.0+4038_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520288/ft2_4FGL_J0949.0+4038_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520288/ft1_4FGL_J0949.0+4038_daily_bin93.fits outfile=/scratch/kocevski/520288/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin93.fits ra=147.262 dec=40.6367 rad=12.0 tmin=263433601.0 tmax=263692801.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.92
user 3.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/520288/ft2_4FGL_J0949.0+4038_daily_bin93.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/520288/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin93.fits evtable="EVENTS" outfile="/scratch/kocevski/520288/ft1_filtered_4FGL_J0949.0+4038_daily_bin93.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 1.03
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/520288/ft1_filtered_4FGL_J0949.0+4038_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/520288/ft2_4FGL_J0949.0+4038_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/520288/ltcube_263433601_263692801_4FGL_J0949.0+4038_daily_bin93.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/520288/ft2_4FGL_J0949.0+4038_daily_bin93.fits
.....................!
real 12.49
user 11.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520288/ft1_filtered_4FGL_J0949.0+4038_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/520288/ft2_4FGL_J0949.0+4038_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/520288/ltcube_263433601_263692801_4FGL_J0949.0+4038_daily_bin93.fits outfile=/scratch/kocevski/520288/expmap_263433601_263692801_4FGL_J0949.0+4038_daily_bin93.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/520288/ltcube_263433601_263692801_4FGL_J0949.0+4038_daily_bin93.fits
.....................!
real 190.85
user 185.25
sys 4.26

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/520288/ft1_filtered_4FGL_J0949.0+4038_daily_bin93.fits scfile=/scratch/kocevski/520288/ft2_4FGL_J0949.0+4038_daily_bin93.fits outfile=/scratch/kocevski/520288/cmap_263433601_263692801_4FGL_J0949.0+4038_daily_bin93.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.86
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28606       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.3752       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.982       1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16687E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6121       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4694       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .62839       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.8648       1.0000         .10000E-03   10000.    
    25 'norm      '    17.274       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.1321       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0600       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0397       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=   4959.430     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     3565 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1739       -.20362E-06** at limit **
   2  Prefactor     .10000E-03    139.91        .15648E-05** at limit **
   3  Prefactor     .28330        2.5014        .34172E-07   -.16964E-03
   4  Prefactor     .10000E-03    17.272        .64520E-06** at limit **
   5  Prefactor     .10000E-03    2.4307        .12231E-05** at limit **
   6  Prefactor     .10000E-03    25.631       -.21601E-06** at limit **
   7  norm          4.3749        1.4515        .74973E-08   -.24937E-03
   8  Prefactor     10.982        7.8392        .79258E-07   -.17205E-03
   9  norm          .10000E-03    6.0417        .53373E-07** at limit **
  10  Prefactor     .10000E-03    1.2163        .24658E-07** at limit **
  11  Prefactor     .10000E-03    7.9266        .59877E-07** at limit **
  12  Prefactor     .10000E-03    14.986       -.38546E-06** at limit **
  13  norm          .10000E-03    5.2642        .71030E-07** at limit **
  14  Prefactor     .10000E-03    18.038        .47125E-06** at limit **
  15  Prefactor     .10004E-03    6.7471        .29566E-05** at limit **
  16  Prefactor     .10000E-03    28.268        .10527E-06** at limit **
  17  Prefactor     .10000E-03    4.6965       -.92706E-07** at limit **
  18  norm          3.6123        12.999       -.88449E-06   -.15936E-04
  19  Prefactor     2.4718        7.5284        .77080E-05    .12276E-03
  20  Prefactor     .62843        1.9121        .13013E-06   -.66696E-04
  21  Prefactor     .10000E-03    3.3352        .29665E-08** at limit **
  22  Prefactor     .10000E-03    23.506       -.61309E-06** at limit **
  23  norm          .10000E-03    2.7166       -.18890E-07** at limit **
  24  Prefactor     9.8652        6.4211        .53992E-06    .98895E-06
  25  norm          17.274        14.487        .22075E-06    .89706E-04
  26  Prefactor     .10000E-03    33.292        .17927E-05** at limit **
  27  Prefactor     4.1317        4.3271        .14536E-06    .23652E-03
  28  Prefactor     .10000E-03    3.4043       -.62088E-08** at limit **
  29  Prefactor     .10000E-03    63.174       -.13103E-05** at limit **
  30  Normalizat    1.0601        .20429       -.17289E-05    .71363E-05
  31  Prefactor     1.0396        .23602        .59425E-06   -.45570E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.283301
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.37487
  Prefactor  = 10.9821
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.61233
  Prefactor  = 2.47175
  Prefactor  = 0.628425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.86523
  norm       = 17.2738
  Prefactor  = 0.000100001
  Prefactor  = 4.13171
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.06015
  Prefactor  = 1.03959
 **********
 **   18 **HESSE 
 **********

 FCN=   4959.430     FROM HESSE     STATUS=OK           622 CALLS     4187 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3533        .28048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    140.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .28330        5.5642        .21533E-02   -1.5602    
   4  Prefactor     .10000E-03    17.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2736        .20901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.3749        1.5560        .32173E-04   -1.5290    
   8  Prefactor     10.982        8.4240        .10722E-03   -1.5045    
   9  norm          .10000E-03    6.0979        .16897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2282        .75772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.0206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.2653        .15781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10004E-03    24.152        .31859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7189        .14904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6123        12.979        .21259E-03   -1.5328    
  19  Prefactor     2.4718        7.6907        .13011E-02   -1.5394    
  20  Prefactor     .62843        1.7295        .16467E-02   -1.5549    
  21  Prefactor     .10000E-03    3.4020        .24983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.8090        .22658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.8652        6.4024        .63791E-03   -1.5080    
  25  norm          17.274        14.467        .96365E-04   -1.4876    
  26  Prefactor     .10000E-03    33.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.1317        4.3223        .14281E-03   -1.5301    
  28  Prefactor     .10000E-03    3.4233        .12681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    63.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0601        .24203        .24113E-03   -.91042    
  31  Prefactor     1.0396        .28171        .29622E-03   -.91421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61352e-08
Minuit parameter uncertainties:
  1  6.24287e-05
  2  0.00102305
  3  2.51088
  4  8.35294e-05
  5  0.00012912
  6  0.000170737
  7  1.55603
  8  8.42487
  9  1.94708e-05
  10  1.22743e-06
  11  5.55311e-06
  12  6.64395e-05
  13  7.58e-06
  14  0.000101955
  15  0.0019036
  16  5.32928e-05
  17  1.05962e-05
  18  12.9891
  19  7.69376
  20  1.72964
  21  3.80228e-07
  22  0.000151017
  23  7.6765e-06
  24  6.40287
  25  14.4702
  26  0.000388327
  27  4.32265
  28  1.92544e-06
  29  0.000750054
  30  0.242278
  31  0.282114
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  5.329e-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:  1.040e+00  2.821e-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.060e+00  2.423e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/520288/likelihoodResults_263433601_263692801_4FGL_J0949.0+4038_daily_bin93.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) = 4959.43012618
delta logL = -0.000168012512404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4959.42995824
delta logL = -7.60937837185e-08

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 'Index     '    2.5271       1.0000          .0000       10.000    
     3 'Normalizat'    1.0602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0396       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=   4959.430     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      235 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6633.7        .90712E-02** at limit **
   2  Index         2.5384        7.1001        .50000       -.37792E-05
   3  Normalizat    1.0601        .69420E-01    .39923E-01    .81679E-05
   4  Prefactor     1.0396        .84740E-01    .66963E-01    .11646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.53845
  Normalizat = 1.06015
  Prefactor  = 1.0396
 **********
 **   18 **HESSE 
 **********

 FCN=   4959.430     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5384        6.1994        .50000       -.51474    
   3  Normalizat    1.0601        .22323        .24113E-03   -.91042    
   4  Prefactor     1.0396        .27270        .29622E-03   -.91421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75295e-11
Minuit parameter uncertainties:
  1  2.95877e-05
  2  5.62723
  3  0.22343
  4  0.273062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520288': 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) = 4959.42995823
delta logL = -6.08406480751e-08

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.959e-05  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.538e+00  5.627e+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.040e+00  2.731e-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.060e+00  2.234e-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/520288/cmap_HighResolution_263433601_263692801_4FGL_J0949.0+4038_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', job_status='DONE', photon_flux_upper_limit='8.15e-08', time_completed='2021-09-01 03:12:15.214186', job_id='520288', GAL2='1.04', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630491135.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-6.08e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='93' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:12:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 520288: <4FGL_J0949.0+4038_daily_bin93> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin93> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 02:56:01 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:56:03 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:56:03 2021
Terminated at Wed Sep  1 03:12:16 2021
Results reported at Wed Sep  1 03:12:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin93 147.262 40.6367 263433601 263692801 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 :                                   797.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            975 sec.

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

