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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin7
RA = 147.262, Dec = 40.6367
tmin = 241142401, tmax = 241401601
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='520192', job_status='RUN', time_executed='2021-09-01 02:56:11.229680', time_epoch_executed='1630490171.23' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='7'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520192

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520192/ft1_4FGL_J0949.0+4038_daily_bin7.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520192/ft2_4FGL_J0949.0+4038_daily_bin7.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520192/ft1_4FGL_J0949.0+4038_daily_bin7.fits outfile=/scratch/kocevski/520192/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin7.fits ra=147.262 dec=40.6367 rad=12.0 tmin=241142401.0 tmax=241401601.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.57
user 1.30
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/520192/ft2_4FGL_J0949.0+4038_daily_bin7.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/520192/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin7.fits evtable="EVENTS" outfile="/scratch/kocevski/520192/ft1_filtered_4FGL_J0949.0+4038_daily_bin7.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.55
user 0.35
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520192/ft1_filtered_4FGL_J0949.0+4038_daily_bin7.fits evtable="EVENTS" scfile=/scratch/kocevski/520192/ft2_4FGL_J0949.0+4038_daily_bin7.fits sctable="SC_DATA" expcube=/scratch/kocevski/520192/ltcube_241142401_241401601_4FGL_J0949.0+4038_daily_bin7.fits outfile=/scratch/kocevski/520192/expmap_241142401_241401601_4FGL_J0949.0+4038_daily_bin7.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/520192/ltcube_241142401_241401601_4FGL_J0949.0+4038_daily_bin7.fits
.....................!
real 191.66
user 186.97
sys 4.24

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/520192/ft1_filtered_4FGL_J0949.0+4038_daily_bin7.fits scfile=/scratch/kocevski/520192/ft2_4FGL_J0949.0+4038_daily_bin7.fits outfile=/scratch/kocevski/520192/cmap_241142401_241401601_4FGL_J0949.0+4038_daily_bin7.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/520192/ft1_filtered_4FGL_J0949.0+4038_daily_bin7.fits scfile=/scratch/kocevski/520192/ft2_4FGL_J0949.0+4038_daily_bin7.fits outfile=/scratch/kocevski/520192/cmap_HighResolution_241142401_241401601_4FGL_J0949.0+4038_daily_bin7.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2793       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.873       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5301       1.0000         .10000E-03   10000.    
     9 'norm      '    .17819E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0185       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.629       1.0000         .10000E-03   10000.    
    13 'norm      '    15.226       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2211       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18857E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .92279E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    68.532       1.0000         .10000E-03   10000.    
    23 'norm      '    6.4801       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.4480       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.8550       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.8834       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .77610       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.4270       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=   5939.827     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     4196 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2800        2.9182       -.41735E-07    .66653E-04
   2  Prefactor     .10000E-03    30.478        .12616E-06** at limit **
   3  Prefactor     .10000E-03    1.7198        .12984E-08** at limit **
   4  Prefactor     .10000E-03    46.820        .13035E-05** at limit **
   5  Prefactor     .10000E-03    .98226        .75387E-07** at limit **
   6  Prefactor     27.859        23.338       -.14576E-05   -.10360E-04
   7  norm          .10000E-03    .32888       -.14608E-06** at limit **
   8  Prefactor     6.5365        3.1529        .27589E-06    .45463E-03
   9  norm          .10000E-03    17.150        .88789E-06** at limit **
  10  Prefactor     5.0181        3.0664       -.11192E-06    .97241E-04
  11  Prefactor     .10000E-03    5.7998       -.11336E-06** at limit **
  12  Prefactor     26.621        18.757        .89604E-07   -.75330E-05
  13  norm          15.235        17.631       -.54005E-06    .23806E-04
  14  Prefactor     .10000E-03    24.055       -.29160E-06** at limit **
  15  Prefactor     4.2251        7.9512        .21246E-06   -.17298E-04
  16  Prefactor     .10000E-03    108.89       -.25091E-05** at limit **
  17  Prefactor     .10000E-03    3.3747       -.20773E-07** at limit **
  18  norm          .17050        67.620       -.47642E-05    .11423E-04
  19  Prefactor     .10000E-03    3.9183       -.63566E-07** at limit **
  20  Prefactor     .10000E-03    1.6044       -.28936E-07** at limit **
  21  Prefactor     .10000E-03    1.0865       -.28774E-08** at limit **
  22  Prefactor     68.539        35.769       -.43821E-06    .22554E-04
  23  norm          6.4793        2.8787        .36178E-07   -.24977E-04
  24  Prefactor     .10000E-03    1.3253        .50274E-08** at limit **
  25  norm          5.4485        9.9257        .30644E-06    .85182E-05
  26  Prefactor     .10000E-03    49.278       -.60202E-06** at limit **
  27  Prefactor     1.8556        4.1829       -.51270E-06    .24338E-04
  28  Prefactor     3.8837        3.4084        .12556E-06    .71164E-05
  29  Prefactor     .10000E-03    74.173        .77046E-06** at limit **
  30  Normalizat    .77628        .18726       -.64851E-06    .47463E-04
  31  Prefactor     1.4267        .21873        .18914E-08   -.27580E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8593
  norm       = 0.0001
  Prefactor  = 6.53652
  norm       = 0.000100001
  Prefactor  = 5.01811
  Prefactor  = 0.0001
  Prefactor  = 26.6208
  norm       = 15.2347
  Prefactor  = 0.0001
  Prefactor  = 4.22506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.170502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.5391
  norm       = 6.47931
  Prefactor  = 0.0001
  norm       = 5.44848
  Prefactor  = 0.0001
  Prefactor  = 1.85565
  Prefactor  = 3.88365
  Prefactor  = 0.0001
  Normalizat = 0.776275
  Prefactor  = 1.42669
 **********
 **   18 **HESSE 
 **********

 FCN=   5939.827     FROM HESSE     STATUS=OK           626 CALLS     4822 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2800        2.8933        .18757E-03   -1.5482    
   2  Prefactor     .10000E-03    30.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.7353        .98687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    47.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .98933        .74696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.859        23.556        .75883E-04   -1.4652    
   7  norm          .10000E-03    .62033        .80923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5365        3.3483        .46213E-03   -1.5197    
   9  norm          .10000E-03    18.241        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0181        3.0563        .96973E-04   -1.5260    
  11  Prefactor     .10000E-03    5.8261        .18117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.621        18.690        .77632E-04   -1.4676    
  13  norm          15.235        17.579        .10264E-03   -1.4927    
  14  Prefactor     .10000E-03    24.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2251        7.7877        .19614E-03   -1.5297    
  16  Prefactor     .10000E-03    108.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3967        .13825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .17050        66.549        .33108E-02   -1.5625    
  19  Prefactor     .10000E-03    12.003        .28725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.6384        .95259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.0947        .78424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     68.539        35.951        .48486E-04   -1.4050    
  23  norm          6.4793        2.8758        .84643E-04   -1.5199    
  24  Prefactor     .10000E-03    1.3378        .86616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.4485        9.8637        .86077E-03   -1.5241    
  26  Prefactor     .10000E-03    49.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.8556        4.1911        .11055E-02   -1.5436    
  28  Prefactor     3.8837        3.4042        .12898E-03   -1.5314    
  29  Prefactor     .10000E-03    75.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .77628        .21642        .26927E-03   -1.0095    
  31  Prefactor     1.4267        .25785        .26159E-03   -.79614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58813e-10
Minuit parameter uncertainties:
  1  2.89366
  2  4.54803e-05
  3  3.80469e-06
  4  0.000187375
  5  4.12528e-06
  6  23.5641
  7  1.08045e-05
  8  3.34835
  9  0.000232363
  10  3.05642
  11  3.19777e-06
  12  18.6941
  13  17.5845
  14  0.000126578
  15  7.78961
  16  0.00025027
  17  4.17785e-06
  18  6.74256
  19  1.69732e-06
  20  4.07779e-06
  21  2.10046e-06
  22  35.9624
  23  2.87589
  24  2.40899e-06
  25  9.86659
  26  5.27618e-06
  27  4.19178
  28  3.40438
  29  0.000172351
  30  0.216662
  31  0.258082
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.503e-04  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.427e+00  2.581e-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.763e-01  2.167e-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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/520192/likelihoodResults_241142401_241401601_4FGL_J0949.0+4038_daily_bin7.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) = 5939.82724812
delta logL = -4.370588249e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5939.82720255
delta logL = 1.86279794434e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33746E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9920       1.0000          .0000       10.000    
     3 'Normalizat'    .77628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4267       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=   5939.810     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      286 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3768        165.80        .10670E-01    .43253E-03
   2  Index         3.4502        1.4930        .50000        .10123E-04
   3  Normalizat    .76580        .14001E-01    .43300E-01    .11574E-03
   4  Prefactor     1.4336        .17896E-01    .59038E-01    .89199E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.37679
  Index      = 3.45019
  Normalizat = 0.7658
  Prefactor  = 1.43356
 **********
 **   18 **HESSE 
 **********

 FCN=   5939.810     FROM HESSE     STATUS=OK            31 CALLS      317 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3768        33.592        .42679E-03   -1.5400    
   2  Index         3.4502        2.9072        .73809E-02   -.31515    
   3  Normalizat    .76580        .20627        .27095E-03   -1.0135    
   4  Prefactor     1.4336        .25637        .26106E-03   -.79418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79763e-11
Minuit parameter uncertainties:
  1  17.8826
  2  3.12817
  3  0.206484
  4  0.256604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520192': 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) = 5939.81013648
delta logL = 0.0170679376761

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  2.377e+00  1.788e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  3.450e+00  3.128e+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.434e+00  2.566e-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.658e-01  2.065e-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/520192/cmap_HighResolution_241142401_241401601_4FGL_J0949.0+4038_daily_bin7.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-03', job_status='DONE', photon_flux_upper_limit='8.62e-08', time_completed='2021-09-01 03:12:10.483604', job_id='520192', GAL2='1.43', fit_tolerance='1e-08', EG2='0.77', EG='0.78', time_epoch_completed='1630491130.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='1.71e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='7' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:12:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 520192: <4FGL_J0949.0+4038_daily_bin7> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin7 147.262 40.6367 241142401 241401601 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 :                                   946.18 sec.
    Max Memory :                                 1068 MB
    Average Memory :                             316.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

