/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 58 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 = 7436
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1322
RA = 145.494, Dec = 27.4136
tmin = 581990401, tmax = 582249601
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='439323', job_status='RUN', time_executed='2021-08-31 22:52:09.617232', time_epoch_executed='1630475529.62' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439323

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439323/ft1_4FGL_J0941.9+2724_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439323/ft2_4FGL_J0941.9+2724_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439323/ft1_4FGL_J0941.9+2724_daily_bin1322.fits outfile=/scratch/kocevski/439323/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1322.fits ra=145.494 dec=27.4136 rad=12.0 tmin=581990401.0 tmax=582249601.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 2.39
user 2.16
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/439323/ft2_4FGL_J0941.9+2724_daily_bin1322.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439323/ft2_4FGL_J0941.9+2724_daily_bin1322.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/439323/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1322.fits evtable="EVENTS" outfile="/scratch/kocevski/439323/ft1_filtered_4FGL_J0941.9+2724_daily_bin1322.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439323/ft1_filtered_4FGL_J0941.9+2724_daily_bin1322.fits" evtable="EVENTS" scfile=/scratch/kocevski/439323/ft2_4FGL_J0941.9+2724_daily_bin1322.fits sctable="SC_DATA" outfile=/scratch/kocevski/439323/ltcube_581990401_582249601_4FGL_J0941.9+2724_daily_bin1322.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/439323/ft2_4FGL_J0941.9+2724_daily_bin1322.fits
.....................!
real 12.95
user 12.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439323/ft1_filtered_4FGL_J0941.9+2724_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/439323/ft2_4FGL_J0941.9+2724_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/439323/ltcube_581990401_582249601_4FGL_J0941.9+2724_daily_bin1322.fits outfile=/scratch/kocevski/439323/expmap_581990401_582249601_4FGL_J0941.9+2724_daily_bin1322.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/439323/ltcube_581990401_582249601_4FGL_J0941.9+2724_daily_bin1322.fits
.....................!
real 189.63
user 185.52
sys 3.74

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 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J0941.9+2724 @ 145.494 27.4136

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/439323/ft1_filtered_4FGL_J0941.9+2724_daily_bin1322.fits scfile=/scratch/kocevski/439323/ft2_4FGL_J0941.9+2724_daily_bin1322.fits outfile=/scratch/kocevski/439323/cmap_581990401_582249601_4FGL_J0941.9+2724_daily_bin1322.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=145.494 yref=27.4136 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.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439323/ft1_filtered_4FGL_J0941.9+2724_daily_bin1322.fits scfile=/scratch/kocevski/439323/ft2_4FGL_J0941.9+2724_daily_bin1322.fits outfile=/scratch/kocevski/439323/cmap_HighResolution_581990401_582249601_4FGL_J0941.9+2724_daily_bin1322.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=145.494 yref=27.4136 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.41
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/439323/ft1_filtered_4FGL_J0941.9+2724_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/439323/ft2_4FGL_J0941.9+2724_daily_bin1322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/439323/Model_4FGL_J0941.9+2724_daily_bin1322.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/439323/ft1_filtered_4FGL_J0941.9+2724_daily_bin1322.fits.....................!
real 61.90
user 60.66
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/439323/ft1_filtered_4FGL_J0941.9+2724_daily_bin1322.fits', '/scratch/kocevski/439323/ft2_4FGL_J0941.9+2724_daily_bin1322.fits', expMap='/scratch/kocevski/439323/expmap_581990401_582249601_4FGL_J0941.9+2724_daily_bin1322.fits', expCube='/scratch/kocevski/439323/ltcube_581990401_582249601_4FGL_J0941.9+2724_daily_bin1322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/439323/Model_4FGL_J0941.9+2724_daily_bin1322.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0941.9+2724'

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  6.273e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/439323/ft1_filtered_4FGL_J0941.9+2724_daily_bin1322.fits
Spacecraft file(s): /scratch/kocevski/439323/ft2_4FGL_J0941.9+2724_daily_bin1322.fits
Exposure map: /scratch/kocevski/439323/expmap_581990401_582249601_4FGL_J0941.9+2724_daily_bin1322.fits
Exposure cube: /scratch/kocevski/439323/ltcube_581990401_582249601_4FGL_J0941.9+2724_daily_bin1322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/439323/Model_4FGL_J0941.9+2724_daily_bin1322.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) = 7445.6678712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5261       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31379E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11164E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.807       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.543       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8341       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    21.153       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .52224       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0876       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98875       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   7445.605     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     2731 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5268        11.728        .78548E-03   -.40960E-04
   2  Prefactor     .10002E-03    18.588        .77460E-01** at limit **
   3  norm          .10000E-03    12.096        .18142E-02** at limit **
   4  Prefactor     .10006E-03    30.903        .22769E-02** at limit **
   5  norm          .10000E-03    .40049        .53166E-03** at limit **
   6  Prefactor     .10000E-03    20.909        .18142E-02** at limit **
   7  Prefactor     .10001E-03    5.2797        .19946E-02** at limit **
   8  Prefactor     18.811        19.974        .92355E-04    .14181E-03
   9  Prefactor     .10000E-03    22.138        .18142E-02** at limit **
  10  Prefactor     12.566        31.458        .11310E-03    .10655E-03
  11  Prefactor     2.8347        4.5056        .22104E-03    .81881E-04
  12  Prefactor     .10000E-03    2.1890        .12458E-02** at limit **
  13  Prefactor     .10000E-03    1.2315        .18306E-03** at limit **
  14  norm          21.155        8.4079        .87087E-04    .77805E-04
  15  Prefactor     .52246        4.3523        .24241E-02    .62667E-03
  16  Prefactor     .10000E-03    8.5552        .18142E-02** at limit **
  17  Prefactor     .10000E-03    4.4719        .24802E-02** at limit **
  18  Prefactor     .10000E-03    19.429        .18142E-02** at limit **
  19  Normalizat    1.0877        .18149        .22568E-03    .99754E-03
  20  Prefactor     .98876        .18364        .24658E-03    .80505E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.52684
  Prefactor  = 0.000100023
  norm       = 0.0001
  Prefactor  = 0.000100057
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 18.8106
  Prefactor  = 0.0001
  Prefactor  = 12.566
  Prefactor  = 2.8347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.1546
  Prefactor  = 0.522461
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.08766
  Prefactor  = 0.988761
 **********
 **   18 **HESSE 
 **********

 FCN=   7445.605     FROM HESSE     STATUS=OK           285 CALLS     3016 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5268        11.725        .31419E-04   -1.5197    
   2  Prefactor     .10002E-03    15.205        .87613E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    12.096        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10006E-03    31.756        .91078E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .40050        .10633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.909        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    5.3050        .39893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.811        19.970        .36942E-05   -1.4840    
   9  Prefactor     .10000E-03    22.139        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.566        31.443        .45241E-05   -1.4999    
  11  Prefactor     2.8347        4.5046        .88416E-05   -1.5371    
  12  Prefactor     .10000E-03    2.1890        .24916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2315        .36613E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          21.155        8.4068        .34835E-05   -1.4788    
  15  Prefactor     .52246        4.3298        .96965E-04   -1.5563    
  16  Prefactor     .10000E-03    8.5552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4827        .49603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.429        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0877        .18130        .45136E-04   -.90149    
  20  Prefactor     .98876        .18379        .49316E-04   -.93105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2999e-09
Minuit parameter uncertainties:
  1  11.7294
  2  0.00118429
  3  7.62093e-06
  4  0.0026959
  5  3.21636e-07
  6  2.85884e-05
  7  0.000353062
  8  19.9775
  9  3.95865e-05
  10  31.4845
  11  4.50518
  12  3.21817e-06
  13  7.84157e-06
  14  8.40728
  15  3.00808
  16  5.09253e-06
  17  0.000186064
  18  8.95883e-05
  19  0.181403
  20  0.183904
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.881e+01  1.998e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.888e-01  1.839e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.088e+00  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 145.494 27.414
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.40e-08 +/- 2.55e-08
Energy Flux (Fixed Index): 7.54e-06 +/- 8.01e-06

TS (Fixed Index): 1.39
Ra Dec: 145.494 27.414
Photon Flux Upper Limit: 8.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/439323/likelihoodResults_581990401_582249601_4FGL_J0941.9+2724_daily_bin1322.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) = 7445.59524901
delta logL = 0.00934270256403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7445.59275272
delta logL = 0.0118389899217

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.315       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3260       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98734       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   7445.593     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      254 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.308        23.507        .88863E-04   -.58850E-05
   2  Index         2.3255        .69970        .93687E-02    .20496E-03
   3  Normalizat    1.0900        .17487        .22547E-03   -.68676E-04
   4  Prefactor     .98714        .18284        .24675E-03    .45659E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.3079
  Index      = 2.3255
  Normalizat = 1.08996
  Prefactor  = 0.987141
 **********
 **   18 **HESSE 
 **********

 FCN=   7445.593     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.308        23.101        .35545E-05   -1.4806    
   2  Index         2.3255        .68768        .18737E-02   -.56439    
   3  Normalizat    1.0900        .17504        .90187E-05   -.90075    
   4  Prefactor     .98714        .18300        .98700E-05   -.93159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19159e-11
Minuit parameter uncertainties:
  1  23.1115
  2  0.69075
  3  0.175129
  4  0.183119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439323': 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) = 7445.59275147
delta logL = 0.01184024339

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  2.031e+01  2.311e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.325e+00  6.908e-01  0.000e+00  1.000e+01 (-1.000e+00)
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.871e-01  1.831e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.090e+00  1.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 145.494 27.414
Photon Index (Free Index): 2.33 +/- 0.69
Photon Flux (Free Index): 2.22e-08 +/- 2.67e-08
Energy Flux (Free Index): 8.10e-06 +/- 9.47e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/439323/cmap_HighResolution_581990401_582249601_4FGL_J0941.9+2724_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-03', comment='SUCCESS', photon_flux='2.40e-08', energy_flux2='8.10e-06', photon_flux_error='2.55e-08', dlogl='1.18e-02', energy_flux='7.54e-06', photon_flux2='2.22e-08', job_status='DONE', time_completed='2021-08-31 23:05:52.813448', photon_index_error2='0.69', photon_index2='2.33', ts='1.39', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='8.37e-08', energy_flux_error2='9.47e-06', EG='1.09', time_epoch_completed='1630476352.81', return_code='0', job_id='439323', GAL2='0.99', EG2='1.09', return_code2='0', energy_flux_error='8.01e-06', photon_flux_error2='2.67e-08', ts2='1.41', photon_index='2.43' WHERE bin_id='1322' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:05:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 439323: <4FGL_J0941.9+2724_daily_bin1322> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin1322> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 22:50:39 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:50:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 22:50:40 2021
Terminated at Tue Aug 31 23:05:53 2021
Results reported at Tue Aug 31 23:05:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1322 145.494 27.4136 581990401 582249601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0941.9+2724 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   710.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

