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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin289
RA = 147.262, Dec = 40.6367
tmin = 314236801, tmax = 314496001
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='521780', job_status='RUN', time_executed='2021-09-01 03:01:22.033552', time_epoch_executed='1630490482.03' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521780

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521780/ft1_4FGL_J0949.0+4038_daily_bin289.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521780/ft2_4FGL_J0949.0+4038_daily_bin289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521780/ft1_4FGL_J0949.0+4038_daily_bin289.fits outfile=/scratch/kocevski/521780/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin289.fits ra=147.262 dec=40.6367 rad=12.0 tmin=314236801.0 tmax=314496001.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.39
user 3.14
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/521780/ft2_4FGL_J0949.0+4038_daily_bin289.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/521780/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin289.fits evtable="EVENTS" outfile="/scratch/kocevski/521780/ft1_filtered_4FGL_J0949.0+4038_daily_bin289.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.71
user 0.36
sys 0.11

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/521780/ft1_filtered_4FGL_J0949.0+4038_daily_bin289.fits" evtable="EVENTS" scfile=/scratch/kocevski/521780/ft2_4FGL_J0949.0+4038_daily_bin289.fits sctable="SC_DATA" outfile=/scratch/kocevski/521780/ltcube_314236801_314496001_4FGL_J0949.0+4038_daily_bin289.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/521780/ft2_4FGL_J0949.0+4038_daily_bin289.fits
.....................!
real 12.07
user 11.56
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521780/ft1_filtered_4FGL_J0949.0+4038_daily_bin289.fits evtable="EVENTS" scfile=/scratch/kocevski/521780/ft2_4FGL_J0949.0+4038_daily_bin289.fits sctable="SC_DATA" expcube=/scratch/kocevski/521780/ltcube_314236801_314496001_4FGL_J0949.0+4038_daily_bin289.fits outfile=/scratch/kocevski/521780/expmap_314236801_314496001_4FGL_J0949.0+4038_daily_bin289.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/521780/ltcube_314236801_314496001_4FGL_J0949.0+4038_daily_bin289.fits
.....................!
real 189.95
user 185.44
sys 4.20

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/521780/ft1_filtered_4FGL_J0949.0+4038_daily_bin289.fits scfile=/scratch/kocevski/521780/ft2_4FGL_J0949.0+4038_daily_bin289.fits outfile=/scratch/kocevski/521780/cmap_314236801_314496001_4FGL_J0949.0+4038_daily_bin289.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.38
sys 0.13

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.705       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .93077       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14457E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .93547       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1250       1.0000         .10000E-03   10000.    
     9 'norm      '    .85345E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6447       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5113       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    57.137       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.1271       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.6437       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.279       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.2940       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99031       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99880       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=   5057.350     FROM MIGRAD    STATUS=CONVERGED    843 CALLS     4209 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7072        .28907E-07** at limit **
   2  Prefactor     .10000E-03    36.829        .65665E-06** at limit **
   3  Prefactor     .10000E-03    3.3564       -.11134E-07** at limit **
   4  Prefactor     18.680        43.677        .44081E-05    .13043E-03
   5  Prefactor     .93159        3.1369       -.24195E-06   -.29973E-04
   6  Prefactor     .10000E-03    52.009       -.33831E-05** at limit **
   7  norm          .93545        .64760       -.63098E-07    .43856E-03
   8  Prefactor     1.1255        4.1480        .69248E-06    .14854E-03
   9  norm          .10066E-03    5.5187       -.11627E-05** at limit **
  10  Prefactor     1.6446        2.1656        .22727E-06    .56805E-03
  11  Prefactor     1.5040        17.781       -.72319E-06   -.13755E-03
  12  Prefactor     .10000E-03    43.557       -.38241E-06** at limit **
  13  norm          .10000E-03    6.2975        .48158E-08** at limit **
  14  Prefactor     .10000E-03    27.164       -.65898E-06** at limit **
  15  Prefactor     .10000E-03    3.2839       -.32104E-07** at limit **
  16  Prefactor     57.135        38.419        .51433E-06    .89647E-04
  17  Prefactor     .10000E-03    13.678        .81504E-07** at limit **
  18  norm          .10000E-03    3.5574       -.39184E-07** at limit **
  19  Prefactor     .10000E-03    3.2396       -.16578E-07** at limit **
  20  Prefactor     .10000E-03    .78984        .61209E-08** at limit **
  21  Prefactor     .10000E-03    1.1149        .74144E-08** at limit **
  22  Prefactor     .10000E-03    22.015        .25157E-06** at limit **
  23  norm          3.1269        2.7752        .52547E-07   -.13511E-05
  24  Prefactor     1.6438        3.1075        .11856E-06   -.21368E-04
  25  norm          .10000E-03    3.6972        .17475E-07** at limit **
  26  Prefactor     20.270        22.885       -.68262E-06   -.70181E-05
  27  Prefactor     .10000E-03    2.5898       -.41886E-06** at limit **
  28  Prefactor     .10000E-03    5.3360        .26759E-06** at limit **
  29  Prefactor     1.2855        172.32        .23607E-04   -.24549E-04
  30  Normalizat    .99038        .17793       -.29423E-06    .20389E-03
  31  Prefactor     .99878        .21412       -.45696E-06    .11714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.6799
  Prefactor  = 0.931588
  Prefactor  = 0.0001
  norm       = 0.935452
  Prefactor  = 1.12545
  norm       = 0.00010066
  Prefactor  = 1.64456
  Prefactor  = 1.50403
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 57.1353
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.12695
  Prefactor  = 1.64383
  norm       = 0.0001
  Prefactor  = 20.27
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.28552
  Normalizat = 0.990383
  Prefactor  = 0.998775
 **********
 **   18 **HESSE 
 **********

 FCN=   5057.350     FROM HESSE     STATUS=OK           626 CALLS     4835 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0711        .17818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4909        .25428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.680        44.371        .92607E-04   -1.4843    
   5  Prefactor     .93159        3.0251        .19901E-03   -1.5515    
   6  Prefactor     .10000E-03    53.906        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .93545        .64653        .32748E-04   -1.5515    
   8  Prefactor     1.1255        4.1181        .18049E-03   -1.5496    
   9  norm          .10066E-03    5.3332        .51296E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6446        2.1129        .11047E-03   -1.5451    
  11  Prefactor     1.5040        17.898        .34790E-03   -1.5463    
  12  Prefactor     .10000E-03    43.959        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.3007        .17429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3035        .12582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     57.135        38.574        .53072E-04   -1.4195    
  17  Prefactor     .10000E-03    14.238        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.5619        .13099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2906        .12495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .79310        .61718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.1250        .73206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.1269        2.7677        .10798E-03   -1.5354    
  24  Prefactor     1.6438        3.0746        .16502E-03   -1.5452    
  25  norm          .10000E-03    3.7076        .13352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     20.270        22.725        .88943E-04   -1.4807    
  27  Prefactor     .10000E-03    4.9495        .22038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.4446        .31816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.2855        176.07        .19450E-02   -1.5481    
  30  Normalizat    .99038        .21221        .21379E-03   -.93353    
  31  Prefactor     .99878        .25723        .26805E-03   -.92770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.72859e-10
Minuit parameter uncertainties:
  1  1.54764e-06
  2  0.000411321
  3  1.12274e-05
  4  44.449
  5  3.02562
  6  2.82068e-05
  7  0.646531
  8  4.11914
  9  0.00375135
  10  2.11304
  11  10.3802
  12  0.000623189
  13  2.14472e-06
  14  0.000396099
  15  4.63294e-06
  16  38.591
  17  2.80425e-05
  18  8.55712e-06
  19  5.04747e-06
  20  3.80094e-07
  21  1.53983e-07
  22  0.000150962
  23  2.76786
  24  3.07494
  25  2.612e-06
  26  22.7344
  27  8.21369e-05
  28  2.64132e-05
  29  30.1789
  30  0.212387
  31  0.257547
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
661   Normalization:  9.904e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.83
Ra Dec: 147.262 40.637
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 6.00e-08 +/- 4.05e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.05e-05

TS (Fixed Index): 3.83
Ra Dec: 147.262 40.637
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/521780/likelihoodResults_314236801_314496001_4FGL_J0949.0+4038_daily_bin289.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5056.97854491
delta logL = 0.371747434204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5056.96753035
delta logL = 0.382761990153

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5056.968     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      288 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.628        48.956        .74869E-04   -.37415E-03
   2  Index         3.3374        1.1934        .48254E-02   -.17716E-03
   3  Normalizat    .94695        .21147        .21789E-03   -.20402E-03
   4  Prefactor     1.0393        .26073        .26356E-03   -.24499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.628
  Index      = 3.33743
  Normalizat = 0.946949
  Prefactor  = 1.03927
 **********
 **   18 **HESSE 
 **********

 FCN=   5056.968     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.628        37.811        .14974E-04   -1.4637    
   2  Index         3.3374        .92421        .19301E-03   -.33897    
   3  Normalizat    .94695        .21023        .43579E-04   -.94830    
   4  Prefactor     1.0393        .25938        .52713E-04   -.91432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4839e-10
Minuit parameter uncertainties:
  1  37.8429
  2  0.930236
  3  0.210411
  4  0.259692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521780': 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) = 5056.96752976
delta logL = 0.38276258177

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  2.863e+01  3.784e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  3.337e+00  9.302e-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:  1.039e+00  2.597e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  9.469e-01  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.71
Ra Dec: 147.262 40.637
Photon Index (Free Index): 3.34 +/- 0.93
Photon Flux (Free Index): 8.69e-08 +/- 5.43e-08
Energy Flux (Free Index): 1.52e-05 +/- 8.79e-06

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='6.00e-08', energy_flux2='1.52e-05', photon_flux_error='4.05e-08', dlogl='3.83e-01', energy_flux='1.56e-05', photon_flux2='8.69e-08', job_status='DONE', time_completed='2021-09-01 03:15:58.618990', photon_index_error2='0.93', photon_index2='3.34', ts='3.83', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='8.79e-06', EG='0.99', time_epoch_completed='1630491358.62', return_code='0', job_id='521780', GAL2='1.04', EG2='0.95', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='5.43e-08', ts2='4.71', photon_index='2.61' WHERE bin_id='289' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:15:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 521780: <4FGL_J0949.0+4038_daily_bin289> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin289 147.262 40.6367 314236801 314496001 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 :                                   870.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

