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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin157
RA = 147.262, Dec = 40.6367
tmin = 280022401, tmax = 280281601
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='521560', job_status='RUN', time_executed='2021-09-01 03:00:56.346705', time_epoch_executed='1630490456.35' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521560

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521560/ft1_4FGL_J0949.0+4038_daily_bin157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521560/ft2_4FGL_J0949.0+4038_daily_bin157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521560/ft1_4FGL_J0949.0+4038_daily_bin157.fits outfile=/scratch/kocevski/521560/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin157.fits ra=147.262 dec=40.6367 rad=12.0 tmin=280022401.0 tmax=280281601.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.56
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/521560/ft2_4FGL_J0949.0+4038_daily_bin157.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/521560/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin157.fits evtable="EVENTS" outfile="/scratch/kocevski/521560/ft1_filtered_4FGL_J0949.0+4038_daily_bin157.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/521560/ft1_filtered_4FGL_J0949.0+4038_daily_bin157.fits" evtable="EVENTS" scfile=/scratch/kocevski/521560/ft2_4FGL_J0949.0+4038_daily_bin157.fits sctable="SC_DATA" outfile=/scratch/kocevski/521560/ltcube_280022401_280281601_4FGL_J0949.0+4038_daily_bin157.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/521560/ft2_4FGL_J0949.0+4038_daily_bin157.fits
.....................!
real 11.91
user 11.56
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521560/ft1_filtered_4FGL_J0949.0+4038_daily_bin157.fits evtable="EVENTS" scfile=/scratch/kocevski/521560/ft2_4FGL_J0949.0+4038_daily_bin157.fits sctable="SC_DATA" expcube=/scratch/kocevski/521560/ltcube_280022401_280281601_4FGL_J0949.0+4038_daily_bin157.fits outfile=/scratch/kocevski/521560/expmap_280022401_280281601_4FGL_J0949.0+4038_daily_bin157.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/521560/ltcube_280022401_280281601_4FGL_J0949.0+4038_daily_bin157.fits
.....................!
real 192.23
user 185.97
sys 4.29

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/521560/ft1_filtered_4FGL_J0949.0+4038_daily_bin157.fits scfile=/scratch/kocevski/521560/ft2_4FGL_J0949.0+4038_daily_bin157.fits outfile=/scratch/kocevski/521560/cmap_280022401_280281601_4FGL_J0949.0+4038_daily_bin157.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/521560/ft1_filtered_4FGL_J0949.0+4038_daily_bin157.fits scfile=/scratch/kocevski/521560/ft2_4FGL_J0949.0+4038_daily_bin157.fits outfile=/scratch/kocevski/521560/cmap_HighResolution_280022401_280281601_4FGL_J0949.0+4038_daily_bin157.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.59
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2605       1.0000         .10000E-03   10000.    
     2 'Prefactor '    92.303       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0558       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.797       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .90501       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.944       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7061       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9840       1.0000         .10000E-03   10000.    
     9 'norm      '    .10229E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9480       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19527E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.458       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0274       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5286       1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.943       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.2283       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5939       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8096       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.2447       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .88168       1.0000         .10000E-03   10000.    
    25 'norm      '    8.3577       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.4333       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.6448       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96087       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1058       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=   6074.496     FROM MIGRAD    STATUS=CONVERGED    802 CALLS     4190 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2605        2.0408        .82787E-07    .15061E-03
   2  Prefactor     92.337        76.754       -.16936E-05    .17619E-03
   3  Prefactor     5.0554        5.0405        .12896E-06    .80827E-04
   4  Prefactor     20.794        39.844        .64289E-06   -.23529E-04
   5  Prefactor     .90426        2.7574        .41078E-06    .85286E-04
   6  Prefactor     17.957        25.545       -.61175E-06    .31425E-04
   7  norm          1.7061        .71058        .28508E-07    .65548E-03
   8  Prefactor     3.9840        3.5595       -.48308E-08   -.22160E-04
   9  norm          .10000E-03    9.5206        .13681E-05** at limit **
  10  Prefactor     2.9484        2.9886        .69602E-07    .64806E-04
  11  Prefactor     .10000E-03    5.9673       -.94788E-06** at limit **
  12  Prefactor     21.467        16.492       -.92929E-06   -.55124E-04
  13  norm          3.0274        31.177        .80126E-06    .73857E-04
  14  Prefactor     .10000E-03    53.881       -.13485E-06** at limit **
  15  Prefactor     2.5290        6.3265        .59018E-05   -.34841E-04
  16  Prefactor     38.941        46.960        .10887E-05    .78875E-04
  17  Prefactor     .10000E-03    4.6315       -.24831E-06** at limit **
  18  norm          8.2281        8.3642       -.26510E-07   -.96784E-05
  19  Prefactor     6.5937        5.5343        .32049E-06   -.15232E-04
  20  Prefactor     1.8095        2.6227        .10490E-06    .29714E-05
  21  Prefactor     .10000E-03    4.6779       -.19008E-07** at limit **
  22  Prefactor     .10000E-03    56.837       -.14055E-06** at limit **
  23  norm          5.2445        3.2817       -.53841E-08    .96332E-05
  24  Prefactor     .87985        4.6540       -.34339E-06   -.19514E-03
  25  norm          8.3576        8.7690        .76302E-07   -.12990E-04
  26  Prefactor     .10000E-03    33.561       -.17006E-06** at limit **
  27  Prefactor     9.4328        6.0421        .10775E-06   -.93269E-06
  28  Prefactor     .10000E-03    6.8692       -.18174E-06** at limit **
  29  Prefactor     1.6434        100.44        .94969E-06   -.32387E-05
  30  Normalizat    .96094        .19531       -.17000E-05    .23571E-04
  31  Prefactor     1.1058        .21708        .89798E-06    .70380E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.26048
  Prefactor  = 92.3373
  Prefactor  = 5.05535
  Prefactor  = 20.7939
  Prefactor  = 0.904255
  Prefactor  = 17.9573
  norm       = 1.70607
  Prefactor  = 3.98402
  norm       = 0.000100002
  Prefactor  = 2.94843
  Prefactor  = 0.000100004
  Prefactor  = 21.4669
  norm       = 3.02737
  Prefactor  = 0.000100001
  Prefactor  = 2.52896
  Prefactor  = 38.9407
  Prefactor  = 0.0001
  norm       = 8.22806
  Prefactor  = 6.59368
  Prefactor  = 1.80945
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 5.24449
  Prefactor  = 0.879852
  norm       = 8.35755
  Prefactor  = 0.0001
  Prefactor  = 9.43285
  Prefactor  = 0.0001
  Prefactor  = 1.6434
  Normalizat = 0.960937
  Prefactor  = 1.1058
 **********
 **   18 **HESSE 
 **********

 FCN=   6074.496     FROM HESSE     STATUS=OK           638 CALLS     4828 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2605        2.0293        .10229E-03   -1.5407    
   2  Prefactor     92.337        77.127        .20914E-03   -1.3783    
   3  Prefactor     5.0554        5.0340        .16629E-03   -1.5258    
   4  Prefactor     20.794        39.803        .87828E-04   -1.4796    
   5  Prefactor     .90426        2.6540        .20395E-03   -1.5518    
   6  Prefactor     17.957        25.433        .94549E-04   -1.4860    
   7  norm          1.7061        .74354        .34379E-04   -1.5447    
   8  Prefactor     3.9840        3.7462        .11185E-03   -1.5309    
   9  norm          .10000E-03    9.7836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9484        2.9259        .12106E-03   -1.5365    
  11  Prefactor     .10000E-03    39.786        .35967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.467        16.227        .86467E-04   -1.4781    
  13  norm          3.0274        30.528        .23322E-03   -1.5360    
  14  Prefactor     .10000E-03    54.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5290        6.3565        .12844E-02   -1.5390    
  16  Prefactor     38.941        46.876        .64229E-04   -1.4459    
  17  Prefactor     .10000E-03    4.6434        .16384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.2281        8.3623        .13976E-03   -1.5134    
  19  Prefactor     6.5937        5.5240        .78138E-03   -1.5194    
  20  Prefactor     1.8095        2.6025        .14665E-03   -1.5439    
  21  Prefactor     .10000E-03    4.7308        .32504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    57.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.2445        3.2775        .10692E-03   -1.5250    
  24  Prefactor     .87985        8.3520        .29758E-02   -1.5520    
  25  norm          8.3576        8.7495        .13867E-03   -1.5130    
  26  Prefactor     .10000E-03    33.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.4328        6.0192        .13048E-03   -1.5094    
  28  Prefactor     .10000E-03    7.1247        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.6434        100.63        .32935E-03   -1.5452    
  30  Normalizat    .96094        .22992        .25698E-03   -.94351    
  31  Prefactor     1.1058        .25799        .29295E-03   -.89281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69813e-08
Minuit parameter uncertainties:
  1  2.02932
  2  77.2112
  3  5.03441
  4  39.8541
  5  2.65434
  6  25.4483
  7  0.74354
  8  3.74641
  9  0.000244384
  10  2.92601
  11  0.000831777
  12  16.2299
  13  19.2394
  14  0.000492299
  15  6.3582
  16  46.9206
  17  2.35974e-05
  18  8.36349
  19  5.52445
  20  2.60269
  21  4.52471e-05
  22  0.000650493
  23  3.27762
  24  5.42232
  25  8.75079
  26  1.22625e-05
  27  6.01957
  28  1.61398e-05
  29  25.7647
  30  0.230156
  31  0.25828
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  3.894e+01  4.692e+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.106e+00  2.583e-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.609e-01  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 147.262 40.637
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.09e-08 +/- 4.92e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/521560/likelihoodResults_280022401_280281601_4FGL_J0949.0+4038_daily_bin157.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) = 6074.15993158
delta logL = 0.335997318306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6074.13693105
delta logL = 0.358997843983

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.042       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7222       1.0000          .0000       10.000    
     3 'Normalizat'    .91533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1476       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=   6074.137     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      310 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.055        422.07        .11092E-03    .69647E-03
   2  Index         3.7223        6.7956        .68025E-02    .19983E-03
   3  Normalizat    .91451        .22255        .26266E-03   -.68884E-03
   4  Prefactor     1.1485        .27339        .28823E-03   -.52853E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.055
  Index      = 3.72228
  Normalizat = 0.914511
  Prefactor  = 1.14851
 **********
 **   18 **HESSE 
 **********

 FCN=   6074.137     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.055        36.419        .44367E-05   -1.4985    
   2  Index         3.7223        1.7746        .27210E-03   -.25841    
   3  Normalizat    .91451        .22039        .52532E-04   -.95952    
   4  Prefactor     1.1485        .26099        .57646E-04   -.87931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46922e-09
Minuit parameter uncertainties:
  1  36.4812
  2  1.8171
  3  0.220611
  4  0.261279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521560': 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) = 6074.13692372
delta logL = 0.359005175724

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.305e+01  3.648e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  3.722e+00  1.817e+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.149e+00  2.613e-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.145e-01  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 147.262 40.637
Photon Index (Free Index): 3.72 +/- 1.82
Photon Flux (Free Index): 7.25e-08 +/- 6.49e-08
Energy Flux (Free Index): 1.14e-05 +/- 9.99e-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/521560/cmap_HighResolution_280022401_280281601_4FGL_J0949.0+4038_daily_bin157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='4.09e-08', energy_flux2='1.14e-05', photon_flux_error='4.92e-08', dlogl='3.59e-01', energy_flux='1.06e-05', photon_flux2='7.25e-08', job_status='DONE', time_completed='2021-09-01 03:17:14.881015', photon_index_error2='1.82', photon_index2='3.72', ts='1.01', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='9.99e-06', EG='0.96', time_epoch_completed='1630491434.88', return_code='0', job_id='521560', GAL2='1.15', EG2='0.91', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='6.49e-08', ts2='1.82', photon_index='2.61' WHERE bin_id='157' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:17:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 521560: <4FGL_J0949.0+4038_daily_bin157> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin157 147.262 40.6367 280022401 280281601 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 :                                   970.12 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             334.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            994 sec.

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

