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


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1544
RA = 145.586, Dec = -8.0076
tmin = 639532801, tmax = 639792001
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='448053', job_status='RUN', time_executed='2021-08-31 23:17:38.501160', time_epoch_executed='1630477058.5' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448053

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448053/ft1_4FGL_J0942.3-0800_daily_bin1544.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448053/ft2_4FGL_J0942.3-0800_daily_bin1544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448053/ft1_4FGL_J0942.3-0800_daily_bin1544.fits outfile=/scratch/kocevski/448053/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1544.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=639532801.0 tmax=639792001.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.75
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448053/ft2_4FGL_J0942.3-0800_daily_bin1544.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/448053/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1544.fits evtable="EVENTS" outfile="/scratch/kocevski/448053/ft1_filtered_4FGL_J0942.3-0800_daily_bin1544.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448053/ft1_filtered_4FGL_J0942.3-0800_daily_bin1544.fits" evtable="EVENTS" scfile=/scratch/kocevski/448053/ft2_4FGL_J0942.3-0800_daily_bin1544.fits sctable="SC_DATA" outfile=/scratch/kocevski/448053/ltcube_639532801_639792001_4FGL_J0942.3-0800_daily_bin1544.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/448053/ft2_4FGL_J0942.3-0800_daily_bin1544.fits
.....................!
real 16.91
user 16.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448053/ft1_filtered_4FGL_J0942.3-0800_daily_bin1544.fits evtable="EVENTS" scfile=/scratch/kocevski/448053/ft2_4FGL_J0942.3-0800_daily_bin1544.fits sctable="SC_DATA" expcube=/scratch/kocevski/448053/ltcube_639532801_639792001_4FGL_J0942.3-0800_daily_bin1544.fits outfile=/scratch/kocevski/448053/expmap_639532801_639792001_4FGL_J0942.3-0800_daily_bin1544.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/448053/ltcube_639532801_639792001_4FGL_J0942.3-0800_daily_bin1544.fits
.....................!
real 191.01
user 185.09
sys 4.22

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/448053/ft1_filtered_4FGL_J0942.3-0800_daily_bin1544.fits scfile=/scratch/kocevski/448053/ft2_4FGL_J0942.3-0800_daily_bin1544.fits outfile=/scratch/kocevski/448053/cmap_639532801_639792001_4FGL_J0942.3-0800_daily_bin1544.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448053/ft1_filtered_4FGL_J0942.3-0800_daily_bin1544.fits scfile=/scratch/kocevski/448053/ft2_4FGL_J0942.3-0800_daily_bin1544.fits outfile=/scratch/kocevski/448053/cmap_HighResolution_639532801_639792001_4FGL_J0942.3-0800_daily_bin1544.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/448053/ft1_filtered_4FGL_J0942.3-0800_daily_bin1544.fits evtable="EVENTS" scfile=/scratch/kocevski/448053/ft2_4FGL_J0942.3-0800_daily_bin1544.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448053/Model_4FGL_J0942.3-0800_daily_bin1544.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/448053/ft1_filtered_4FGL_J0942.3-0800_daily_bin1544.fits.....................!
real 51.47
user 50.20
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/448053/ft1_filtered_4FGL_J0942.3-0800_daily_bin1544.fits', '/scratch/kocevski/448053/ft2_4FGL_J0942.3-0800_daily_bin1544.fits', expMap='/scratch/kocevski/448053/expmap_639532801_639792001_4FGL_J0942.3-0800_daily_bin1544.fits', expCube='/scratch/kocevski/448053/ltcube_639532801_639792001_4FGL_J0942.3-0800_daily_bin1544.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/448053/Model_4FGL_J0942.3-0800_daily_bin1544.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/448053/ft1_filtered_4FGL_J0942.3-0800_daily_bin1544.fits
Spacecraft file(s): /scratch/kocevski/448053/ft2_4FGL_J0942.3-0800_daily_bin1544.fits
Exposure map: /scratch/kocevski/448053/expmap_639532801_639792001_4FGL_J0942.3-0800_daily_bin1544.fits
Exposure cube: /scratch/kocevski/448053/ltcube_639532801_639792001_4FGL_J0942.3-0800_daily_bin1544.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/448053/Model_4FGL_J0942.3-0800_daily_bin1544.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) = 4606.66928772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0813       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2564       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10757E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    64.439       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.870       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.411       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11041E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1650       1.0000         .10000E-03   10000.    
    13 'norm      '    .67557       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7073       1.0000         .10000E-03   10000.    
    15 'norm      '    17.476       1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.466       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12586E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .79361       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93712       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=   4606.659     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1870 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0820        3.7115       -.13356E-06   -.67578E-05
   2  Prefactor     9.2570        10.903       -.38662E-06    .21377E-05
   3  Prefactor     .10000E-03    13.840       -.26693E-06** at limit **
   4  norm          64.436        14.360       -.58205E-06    .11447E-04
   5  Prefactor     .10000E-03    9.9996       -.59026E-07** at limit **
   6  Prefactor     .10000E-03    104.92        .43533E-05** at limit **
   7  Prefactor     .10000E-03    24.623       -.23859E-06** at limit **
   8  Prefactor     29.858        36.867       -.10101E-04    .68083E-05
   9  Prefactor     33.412        30.142        .48265E-07    .88681E-05
  10  Prefactor     .10000E-03    4.8114       -.18633E-07** at limit **
  11  norm          .10000E-03    4.7163       -.26999E-07** at limit **
  12  norm          3.1646        4.5036       -.33336E-06   -.28667E-03
  13  norm          .67546        .59363       -.47524E-07   -.70191E-04
  14  norm          2.7072        2.0113       -.52457E-07    .84119E-04
  15  norm          17.476        14.498       -.62849E-06   -.71775E-05
  16  Prefactor     37.435        45.855       -.29767E-04    .12061E-04
  17  Prefactor     .10000E-03    48.808        .28652E-06** at limit **
  18  Normalizat    .79394        .23387        .70152E-05   -.10474E-03
  19  Prefactor     .93690        .15841       -.44159E-06    .17609E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.08198
  Prefactor  = 9.25704
  Prefactor  = 0.0001
  norm       = 64.436
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 29.8578
  Prefactor  = 33.4116
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.16459
  norm       = 0.675463
  norm       = 2.70719
  norm       = 17.4756
  Prefactor  = 37.4347
  Prefactor  = 0.000100005
  Normalizat = 0.793942
  Prefactor  = 0.936897
 **********
 **   18 **HESSE 
 **********

 FCN=   4606.659     FROM HESSE     STATUS=OK           268 CALLS     2138 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0820        3.7091        .12102E-03   -1.5304    
   2  Prefactor     9.2570        10.900        .13173E-03   -1.5099    
   3  Prefactor     .10000E-03    14.215        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          64.436        14.389        .49992E-04   -1.4101    
   5  Prefactor     .10000E-03    10.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    105.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.858        36.852        .73308E-04   -1.4615    
   9  Prefactor     33.412        30.128        .69326E-04   -1.4551    
  10  Prefactor     .10000E-03    4.8139        .14540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.7494        .14384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1646        4.4913        .16474E-03   -1.5352    
  13  norm          .67546        .57240        .46320E-03   -1.5544    
  14  norm          2.7072        2.0129        .80342E-04   -1.5379    
  15  norm          17.476        14.511        .95807E-04   -1.4872    
  16  Prefactor     37.435        45.874        .65478E-04   -1.4484    
  17  Prefactor     .10000E-03    49.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .79394        .27712        .30609E-03   -1.0029    
  19  Prefactor     .93690        .19026        .20044E-03   -.94863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.90769e-10
Minuit parameter uncertainties:
  1  3.70926
  2  10.9024
  3  8.68197e-05
  4  14.3899
  5  2.02396e-05
  6  0.00053893
  7  0.000195427
  8  36.8798
  9  30.142
  10  6.20382e-06
  11  8.54554e-06
  12  4.49176
  13  0.572407
  14  2.01294
  15  14.5137
  16  45.9173
  17  0.000947367
  18  0.277609
  19  0.190394
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  3.165e+00  4.492e+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:  9.369e-01  1.904e-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:  7.939e-01  2.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.70
Ra Dec: 145.586 -8.008
Photon Flux Upper Limit: 9.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448053/likelihoodResults_639532801_639792001_4FGL_J0942.3-0800_daily_bin1544.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) = 4606.65339729
delta logL = 0.00535231924005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4606.65253339
delta logL = 0.00621621606206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9956       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7683       1.0000          .0000       5.0000    
     3 'Normalizat'    .80014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93500       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=   4606.653     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9948        4.9897        .16649E-03    .21782E-04
   2  alpha         1.7672        1.8318        .31276E-01   -.54161E-05
   3  Normalizat    .80018        .26794        .30499E-03    .29448E-05
   4  Prefactor     .93499        .18835        .20062E-03    .12458E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.99483
  alpha      = 1.76721
  Normalizat = 0.800179
  Prefactor  = 0.934985
 **********
 **   18 **HESSE 
 **********

 FCN=   4606.653     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9948        5.2971        .66598E-05   -1.5362    
   2  alpha         1.7672        1.9139        .12510E-02   -.29748    
   3  Normalizat    .80018        .26838        .12199E-04   -1.0006    
   4  Prefactor     .93499        .18848        .40125E-04   -.94929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23143e-11
Minuit parameter uncertainties:
  1  5.29789
  2  2.21926
  3  0.268822
  4  0.188608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448053': 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) = 4606.65253327
delta logL = 0.00621633601168

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  2.995e+00  5.298e+00  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  1.767e+00  2.219e+00  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:  9.350e-01  1.886e-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:  8.002e-01  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.70
Ra Dec: 145.586 -8.008

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/448053/cmap_HighResolution_639532801_639792001_4FGL_J0942.3-0800_daily_bin1544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-05', job_status='DONE', photon_flux_upper_limit='9.40e-08', time_completed='2021-08-31 23:27:37.167070', job_id='448053', GAL2='0.93', fit_tolerance='1e-08', EG2='0.80', EG='0.79', time_epoch_completed='1630477657.17', return_code2='0', ts='0.70', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='6.22e-03', ts2='0.71', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1544' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:27:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 448053: <4FGL_J0942.3-0800_daily_bin1544> in cluster <slac> Done

Job <4FGL_J0942.3-0800_daily_bin1544> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 23:12:33 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:12:35 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:35 2021
Terminated at Tue Aug 31 23:27:37 2021
Results reported at Tue Aug 31 23:27:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1544 145.586 -8.0076 639532801 639792001 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 :                                   493.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

