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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin691
RA = 147.262, Dec = 40.6367
tmin = 418435201, tmax = 418694401
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='523549', job_status='RUN', time_executed='2021-09-01 03:06:04.959015', time_epoch_executed='1630490764.96' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='691'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/523549

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/523549/ft1_4FGL_J0949.0+4038_daily_bin691.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/523549/ft2_4FGL_J0949.0+4038_daily_bin691.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/523549/ft1_4FGL_J0949.0+4038_daily_bin691.fits outfile=/scratch/kocevski/523549/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin691.fits ra=147.262 dec=40.6367 rad=12.0 tmin=418435201.0 tmax=418694401.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 5.26
user 4.94
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/523549/ft1_filtered_4FGL_J0949.0+4038_daily_bin691.fits evtable="EVENTS" scfile=/scratch/kocevski/523549/ft2_4FGL_J0949.0+4038_daily_bin691.fits sctable="SC_DATA" expcube=/scratch/kocevski/523549/ltcube_418435201_418694401_4FGL_J0949.0+4038_daily_bin691.fits outfile=/scratch/kocevski/523549/expmap_418435201_418694401_4FGL_J0949.0+4038_daily_bin691.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/523549/ltcube_418435201_418694401_4FGL_J0949.0+4038_daily_bin691.fits
.....................!
real 190.74
user 185.07
sys 5.10

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/523549/ft1_filtered_4FGL_J0949.0+4038_daily_bin691.fits scfile=/scratch/kocevski/523549/ft2_4FGL_J0949.0+4038_daily_bin691.fits outfile=/scratch/kocevski/523549/cmap_418435201_418694401_4FGL_J0949.0+4038_daily_bin691.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/523549/ft1_filtered_4FGL_J0949.0+4038_daily_bin691.fits scfile=/scratch/kocevski/523549/ft2_4FGL_J0949.0+4038_daily_bin691.fits outfile=/scratch/kocevski/523549/cmap_HighResolution_418435201_418694401_4FGL_J0949.0+4038_daily_bin691.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=147.262 yref=40.6367 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5205.17367102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44886E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4817       1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.875       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .42526       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17012E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    7.8503       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0140       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3773       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5114       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7891       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .45774E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5467       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.403       1.0000         .10000E-03   10000.    
    23 'norm      '    10.056       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.024       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    18.609       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .73718       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2424       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=   5205.054     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     4189 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10134E-03    1.3552        .60873E-06** at limit **
   2  Prefactor     .10000E-03    79.372       -.14850E-05** at limit **
   3  Prefactor     1.4818        3.7264       -.14730E-05   -.62627E-03
   4  Prefactor     39.874        38.677       -.53983E-06    .24956E-04
   5  Prefactor     .10000E-03    1.8773        .88540E-08** at limit **
   6  Prefactor     .10000E-03    12.010       -.29265E-05** at limit **
   7  norm          .42398        .58605       -.18907E-06   -.29367E-02
   8  Prefactor     .10001E-03    1.7130        .22114E-06** at limit **
   9  norm          7.8498        10.134        .27457E-07   -.45236E-04
  10  Prefactor     3.0126        2.9320       -.18582E-06   -.43615E-03
  11  Prefactor     .10000E-03    4.2408       -.68721E-06** at limit **
  12  Prefactor     .10000E-03    18.540       -.38073E-05** at limit **
  13  norm          .10000E-03    13.332        .48567E-05** at limit **
  14  Prefactor     7.3771        22.548        .81641E-05   -.11147E-03
  15  Prefactor     7.5105        8.5161       -.19341E-06   -.93009E-04
  16  Prefactor     1.7626        75.333       -.21873E-04   -.34703E-04
  17  Prefactor     .10000E-03    4.5843        .44737E-06** at limit **
  18  norm          .10000E-03    3.7060        .49182E-06** at limit **
  19  Prefactor     .10000E-03    3.2360        .70522E-07** at limit **
  20  Prefactor     2.5469        2.4856       -.65723E-07   -.13058E-03
  21  Prefactor     .10000E-03    3.3648       -.23839E-06** at limit **
  22  Prefactor     13.401        19.499        .24076E-06   -.10265E-04
  23  norm          10.056        3.5686       -.17919E-06    .14310E-03
  24  Prefactor     .10000E-03    1.7207       -.27177E-08** at limit **
  25  norm          .10000E-03    2.8024        .52275E-08** at limit **
  26  Prefactor     .10000E-03    12.107       -.90365E-06** at limit **
  27  Prefactor     10.024        4.7908       -.40830E-06   -.16599E-02
  28  Prefactor     .10000E-03    1.9284       -.85049E-08** at limit **
  29  Prefactor     18.609        22.728        .12609E-06    .85250E-06
  30  Normalizat    .73718        .17341        .24773E-06   -.83792E-04
  31  Prefactor     1.2424        .20742        .53950E-06   -.86801E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101338
  Prefactor  = 0.0001
  Prefactor  = 1.48175
  Prefactor  = 39.8744
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.423976
  Prefactor  = 0.000100014
  norm       = 7.84977
  Prefactor  = 3.0126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 7.37706
  Prefactor  = 7.51046
  Prefactor  = 1.76256
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.54685
  Prefactor  = 0.0001
  Prefactor  = 13.4007
  norm       = 10.0564
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0242
  Prefactor  = 0.0001
  Prefactor  = 18.6094
  Normalizat = 0.737177
  Prefactor  = 1.24239
 **********
 **   18 **HESSE 
 **********

 FCN=   5205.054     FROM HESSE     STATUS=OK           626 CALLS     4815 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10134E-03    41.439        .15705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    79.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4818        3.8250        .21821E-03   -1.5465    
   4  Prefactor     39.874        38.641        .63476E-04   -1.4444    
   5  Prefactor     .10000E-03    1.9006        .96297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .42398        .47707        .51590E-03   -1.5578    
   8  Prefactor     .10001E-03    17.808        .14813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.8498        10.086        .14311E-03   -1.5148    
  10  Prefactor     3.0126        2.8804        .10907E-03   -1.5361    
  11  Prefactor     .10000E-03    4.2497        .14499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3771        21.954        .14767E-03   -1.5165    
  15  Prefactor     7.5105        8.2893        .14633E-03   -1.5160    
  16  Prefactor     1.7626        77.863        .31274E-03   -1.5442    
  17  Prefactor     .10000E-03    4.5954        .15079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.7089        .13558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.801        .24100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.5469        2.4779        .10910E-03   -1.5389    
  21  Prefactor     .10000E-03    3.4949        .25800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.401        19.487        .10941E-03   -1.4976    
  23  norm          10.056        3.5557        .78415E-04   -1.5074    
  24  Prefactor     .10000E-03    1.7381        .92374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.8068        .11794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.024        4.9278        .53478E-03   -1.5075    
  28  Prefactor     .10000E-03    1.9399        .97824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     18.609        22.726        .92846E-04   -1.4845    
  30  Normalizat    .73718        .19917        .25039E-03   -1.0244    
  31  Prefactor     1.2424        .24321        .24872E-03   -.85037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18412e-08
Minuit parameter uncertainties:
  1  0.0149011
  2  6.57454e-05
  3  3.8256
  4  38.6648
  5  6.05064e-07
  6  0.000100328
  7  0.477078
  8  0.00100659
  9  10.088
  10  2.88049
  11  1.21556e-05
  12  0.000151452
  13  0.000268947
  14  21.9779
  15  8.29059
  16  23.4616
  17  1.00109e-05
  18  1.02647e-05
  19  0.000125518
  20  2.47796
  21  2.45317e-06
  22  19.4965
  23  3.55582
  24  2.76646e-07
  25  7.14014e-07
  26  2.80723e-05
  27  4.92801
  28  1.89643e-07
  29  22.737
  30  0.199369
  31  0.243433
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.763e+00  2.346e+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:  1.242e+00  2.434e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  7.372e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 147.262 40.637
Photon Flux Upper Limit: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/523549/likelihoodResults_418435201_418694401_4FGL_J0949.0+4038_daily_bin691.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) = 5205.04887694
delta logL = 0.00539492575263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5205.0428915
delta logL = 0.011380369785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1288       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1418       1.0000          .0000       10.000    
     3 'Normalizat'    .73775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2404       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=   5205.043     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      250 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0915        6678.3        .44381E-02    .19694E-04
   2  Index         2.1374        7.8446        .36935        .72223E-06
   3  Normalizat    .73775        .43372E-01    .42792E-01    .42242E-04
   4  Prefactor     1.2403        .56462E-01    .56289E-01    .15293E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.09149
  Index      = 2.13743
  Normalizat = 0.73775
  Prefactor  = 1.24028
 **********
 **   18 **HESSE 
 **********

 FCN=   5205.043     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0915        51.990        .17753E-03   -1.5257    
   2  Index         2.1374        2.2273        .23542E-01   -.60957    
   3  Normalizat    .73775        .19086        .25029E-03   -1.0242    
   4  Prefactor     1.2403        .24124        .24889E-03   -.85101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.462e-12
Minuit parameter uncertainties:
  1  32.5758
  2  2.35465
  3  0.191033
  4  0.24146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/523549': 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) = 5205.04288796
delta logL = 0.0113839065461

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  5.091e+00  3.258e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.137e+00  2.355e+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.240e+00  2.415e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  7.377e-01  1.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/523549/cmap_HighResolution_418435201_418694401_4FGL_J0949.0+4038_daily_bin691.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-01 03:20:48.943391', job_id='523549', GAL2='1.24', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630491648.94', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.14e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='691' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:20:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 523549: <4FGL_J0949.0+4038_daily_bin691> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin691> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 03:05:50 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:05:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 03:05:51 2021
Terminated at Wed Sep  1 03:20:49 2021
Results reported at Wed Sep  1 03:20:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin691 147.262 40.6367 418435201 418694401 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 :                                   875.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             323.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            899 sec.

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

