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


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1456
RA = 145.586, Dec = -8.0076
tmin = 616723201, tmax = 616982401
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='447915', job_status='RUN', time_executed='2021-08-31 23:13:49.154115', time_epoch_executed='1630476829.15' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447915

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447915/ft1_4FGL_J0942.3-0800_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447915/ft2_4FGL_J0942.3-0800_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447915/ft1_4FGL_J0942.3-0800_daily_bin1456.fits outfile=/scratch/kocevski/447915/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1456.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=616723201.0 tmax=616982401.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.54
user 2.82
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/447915/ft2_4FGL_J0942.3-0800_daily_bin1456.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447915/ft2_4FGL_J0942.3-0800_daily_bin1456.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/447915/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1456.fits evtable="EVENTS" outfile="/scratch/kocevski/447915/ft1_filtered_4FGL_J0942.3-0800_daily_bin1456.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 1.31
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447915/ft1_filtered_4FGL_J0942.3-0800_daily_bin1456.fits" evtable="EVENTS" scfile=/scratch/kocevski/447915/ft2_4FGL_J0942.3-0800_daily_bin1456.fits sctable="SC_DATA" outfile=/scratch/kocevski/447915/ltcube_616723201_616982401_4FGL_J0942.3-0800_daily_bin1456.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/447915/ft2_4FGL_J0942.3-0800_daily_bin1456.fits
.....................!
real 13.26
user 12.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447915/ft1_filtered_4FGL_J0942.3-0800_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/447915/ft2_4FGL_J0942.3-0800_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/447915/ltcube_616723201_616982401_4FGL_J0942.3-0800_daily_bin1456.fits outfile=/scratch/kocevski/447915/expmap_616723201_616982401_4FGL_J0942.3-0800_daily_bin1456.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/447915/ltcube_616723201_616982401_4FGL_J0942.3-0800_daily_bin1456.fits
.....................!
real 192.50
user 185.21
sys 4.23

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

Setting source of interest to:
4FGL J0942.3-0800 @ 145.586 -8.0076

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/447915/ft1_filtered_4FGL_J0942.3-0800_daily_bin1456.fits scfile=/scratch/kocevski/447915/ft2_4FGL_J0942.3-0800_daily_bin1456.fits outfile=/scratch/kocevski/447915/cmap_616723201_616982401_4FGL_J0942.3-0800_daily_bin1456.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.586 yref=-8.0076 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.93
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447915/ft1_filtered_4FGL_J0942.3-0800_daily_bin1456.fits scfile=/scratch/kocevski/447915/ft2_4FGL_J0942.3-0800_daily_bin1456.fits outfile=/scratch/kocevski/447915/cmap_HighResolution_616723201_616982401_4FGL_J0942.3-0800_daily_bin1456.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.586 yref=-8.0076 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.78
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447915/ft1_filtered_4FGL_J0942.3-0800_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/447915/ft2_4FGL_J0942.3-0800_daily_bin1456.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447915/Model_4FGL_J0942.3-0800_daily_bin1456.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/447915/ft1_filtered_4FGL_J0942.3-0800_daily_bin1456.fits......................!
real 46.59
user 43.60
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/447915/ft1_filtered_4FGL_J0942.3-0800_daily_bin1456.fits', '/scratch/kocevski/447915/ft2_4FGL_J0942.3-0800_daily_bin1456.fits', expMap='/scratch/kocevski/447915/expmap_616723201_616982401_4FGL_J0942.3-0800_daily_bin1456.fits', expCube='/scratch/kocevski/447915/ltcube_616723201_616982401_4FGL_J0942.3-0800_daily_bin1456.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/447915/Model_4FGL_J0942.3-0800_daily_bin1456.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0942.3-0800'

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.319e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  2.008e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
241         beta:  1.442e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
242           Eb:  9.432e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/447915/ft1_filtered_4FGL_J0942.3-0800_daily_bin1456.fits
Spacecraft file(s): /scratch/kocevski/447915/ft2_4FGL_J0942.3-0800_daily_bin1456.fits
Exposure map: /scratch/kocevski/447915/expmap_616723201_616982401_4FGL_J0942.3-0800_daily_bin1456.fits
Exposure cube: /scratch/kocevski/447915/ltcube_616723201_616982401_4FGL_J0942.3-0800_daily_bin1456.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/447915/Model_4FGL_J0942.3-0800_daily_bin1456.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) = 3642.2155053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4333       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.432       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9447       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    238.84       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8718       1.0000         .10000E-03   10000.    
    13 'norm      '    .13090E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.196       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0544       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .84881       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3642.213     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1927 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4328        3.0087        .32946E-07   -.33027E-03
   2  Prefactor     .10000E-03    8.4210        .60170E-06** at limit **
   3  Prefactor     .10000E-03    26.441        .13462E-04** at limit **
   4  norm          12.435        14.864        .28408E-05    .32325E-04
   5  Prefactor     6.9069        45.124       -.69816E-04   -.37220E-04
   6  Prefactor     .10002E-03    85.367        .61999E-05** at limit **
   7  Prefactor     .10000E-03    24.324       -.12932E-04** at limit **
   8  Prefactor     238.87        78.389        .20569E-04   -.96128E-05
   9  Prefactor     .10000E-03    10.212       -.19580E-07** at limit **
  10  Prefactor     .10000E-03    25.270       -.23983E-05** at limit **
  11  norm          .10000E-03    3.6336        .42733E-06** at limit **
  12  norm          4.8696        5.1299       -.93677E-06   -.14691E-03
  13  norm          .10000E-03    .79212        .17049E-06** at limit **
  14  norm          .10000E-03    1.9745        .46217E-06** at limit **
  15  norm          21.202        15.959       -.21545E-05   -.21445E-04
  16  Prefactor     .10000E-03    25.767       -.22780E-06** at limit **
  17  Prefactor     .10000E-03    18.103        .33109E-05** at limit **
  18  Normalizat    1.0539        .27280        .45671E-06   -.11021E-03
  19  Prefactor     .84909        .17142       -.89489E-06   -.68243E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.4328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4354
  Prefactor  = 6.90694
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 238.874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.86962
  norm       = 0.0001
  norm       = 0.0001
  norm       = 21.202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05388
  Prefactor  = 0.849093
 **********
 **   18 **HESSE 
 **********

 FCN=   3642.213     FROM HESSE     STATUS=OK           266 CALLS     2193 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4328        2.9563        .14786E-03   -1.5469    
   2  Prefactor     .10000E-03    8.4302        .17105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.435        14.859        .11361E-03   -1.5003    
   5  Prefactor     6.9069        45.657        .15224E-03   -1.5182    
   6  Prefactor     .10002E-03    85.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     238.87        78.740        .13099E-03   -1.2604    
   9  Prefactor     .10000E-03    10.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.6458        .11233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8696        5.1256        .13554E-03   -1.5267    
  13  norm          .10000E-03    2.7368        .10376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.0512        .16547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.202        16.008        .87000E-04   -1.4787    
  16  Prefactor     .10000E-03    25.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0539        .32885        .28711E-03   -.91246    
  19  Prefactor     .84909        .20677        .20636E-03   -.97943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81837e-10
Minuit parameter uncertainties:
  1  2.95658
  2  1.26587e-05
  3  1.75587e-05
  4  14.863
  5  35.5555
  6  0.00284332
  7  0.000151806
  8  78.7752
  9  1.75922e-05
  10  2.23688e-05
  11  2.68925e-05
  12  5.12608
  13  3.20698e-05
  14  3.05483e-06
  15  16.0114
  16  4.18797e-06
  17  1.5709e-06
  18  0.329485
  19  0.206962
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  4.870e+00  5.126e+00  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  2.008e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
241         beta:  1.442e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
242           Eb:  9.432e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  8.491e-01  2.070e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.054e+00  3.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 145.586 -8.008
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 3.30e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.87e-05

TS (Fixed Index): 1.55
Ra Dec: 145.586 -8.008
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447915/likelihoodResults_616723201_616982401_4FGL_J0942.3-0800_daily_bin1456.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) = 3642.19438755
delta logL = 0.0187223561675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3642.19372758
delta logL = 0.0193823184786

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0341       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8434       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84711       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+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=   3642.194     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      236 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0340        5.2792        .13747E-03    .34394E-03
   2  alpha         1.8430        .81181        .16949E-01    .35011E-04
   3  Normalizat    1.0584        .31279        .28659E-03   -.21005E-04
   4  Prefactor     .84725        .20547        .20656E-03   -.35610E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.03401
  alpha      = 1.84299
  Normalizat = 1.05842
  Prefactor  = 0.847248
 **********
 **   18 **HESSE 
 **********

 FCN=   3642.194     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0340        5.2710        .54989E-05   -1.5259    
   2  alpha         1.8430        .81063        .67796E-03   -.26593    
   3  Normalizat    1.0584        .31309        .11463E-04   -.91098    
   4  Prefactor     .84725        .20567        .82623E-05   -.98010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07265e-10
Minuit parameter uncertainties:
  1  5.27144
  2  0.826725
  3  0.313634
  4  0.205862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447915': 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) = 3642.19372722
delta logL = 0.0193826807658

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  5.034e+00  5.271e+00  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  1.843e+00  8.267e-01  0.000e+00  5.000e+00 ( 1.000e+00)
241         beta:  1.442e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
242           Eb:  9.432e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  8.472e-01  2.059e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.058e+00  3.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 145.586 -8.008
Photon Index (Free Index): 1.84 +/- 0.83
Photon Flux (Free Index): 2.72e-08 +/- 3.54e-08
Energy Flux (Free Index): 2.01e-05 +/- 2.47e-05

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/447915/cmap_HighResolution_616723201_616982401_4FGL_J0942.3-0800_daily_bin1456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-05', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='2.01e-05', photon_flux_error='3.30e-08', dlogl='1.94e-02', energy_flux='1.77e-05', photon_flux2='2.72e-08', job_status='DONE', time_completed='2021-08-31 23:22:50.569741', photon_index_error2='0.83', photon_index2='1.84', ts='1.55', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='2.47e-05', EG='1.05', time_epoch_completed='1630477370.57', return_code='0', job_id='447915', GAL2='0.85', EG2='1.06', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='3.54e-08', ts2='1.60', photon_index='2.01' WHERE bin_id='1456' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:22:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 447915: <4FGL_J0942.3-0800_daily_bin1456> in cluster <slac> Done

Job <4FGL_J0942.3-0800_daily_bin1456> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 23:12:22 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:12:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 23:12:23 2021
Terminated at Tue Aug 31 23:22:51 2021
Results reported at Tue Aug 31 23:22:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1456 145.586 -8.0076 616723201 616982401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0942.3-0800 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   450.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            629 sec.

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

