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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin1276
RA = 145.244, Dec = -13.5891
tmin = 570067201, tmax = 570326401
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='419648', job_status='RUN', time_executed='2021-08-31 21:51:17.834735', time_epoch_executed='1630471877.83' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='1276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/419648

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/419648/ft1_4FGL_J0940.9-1335_daily_bin1276.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/419648/ft2_4FGL_J0940.9-1335_daily_bin1276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/419648/ft1_4FGL_J0940.9-1335_daily_bin1276.fits outfile=/scratch/kocevski/419648/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin1276.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=570067201.0 tmax=570326401.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.67
user 3.37
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/419648/ft2_4FGL_J0940.9-1335_daily_bin1276.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/419648/ft2_4FGL_J0940.9-1335_daily_bin1276.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/419648/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin1276.fits evtable="EVENTS" outfile="/scratch/kocevski/419648/ft1_filtered_4FGL_J0940.9-1335_daily_bin1276.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/419648/ft1_filtered_4FGL_J0940.9-1335_daily_bin1276.fits" evtable="EVENTS" scfile=/scratch/kocevski/419648/ft2_4FGL_J0940.9-1335_daily_bin1276.fits sctable="SC_DATA" outfile=/scratch/kocevski/419648/ltcube_570067201_570326401_4FGL_J0940.9-1335_daily_bin1276.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/419648/ft2_4FGL_J0940.9-1335_daily_bin1276.fits
.....................!
real 11.80
user 11.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/419648/ft1_filtered_4FGL_J0940.9-1335_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/419648/ft2_4FGL_J0940.9-1335_daily_bin1276.fits sctable="SC_DATA" expcube=/scratch/kocevski/419648/ltcube_570067201_570326401_4FGL_J0940.9-1335_daily_bin1276.fits outfile=/scratch/kocevski/419648/expmap_570067201_570326401_4FGL_J0940.9-1335_daily_bin1276.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/419648/ltcube_570067201_570326401_4FGL_J0940.9-1335_daily_bin1276.fits
.....................!
real 190.46
user 185.34
sys 4.67

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

Setting source of interest to:
4FGL J0940.9-1335 @ 145.244 -13.5891

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/419648/ft1_filtered_4FGL_J0940.9-1335_daily_bin1276.fits scfile=/scratch/kocevski/419648/ft2_4FGL_J0940.9-1335_daily_bin1276.fits outfile=/scratch/kocevski/419648/cmap_570067201_570326401_4FGL_J0940.9-1335_daily_bin1276.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.244 yref=-13.5891 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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/419648/ft1_filtered_4FGL_J0940.9-1335_daily_bin1276.fits scfile=/scratch/kocevski/419648/ft2_4FGL_J0940.9-1335_daily_bin1276.fits outfile=/scratch/kocevski/419648/cmap_HighResolution_570067201_570326401_4FGL_J0940.9-1335_daily_bin1276.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.244 yref=-13.5891 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/419648/ft1_filtered_4FGL_J0940.9-1335_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/419648/ft2_4FGL_J0940.9-1335_daily_bin1276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/419648/Model_4FGL_J0940.9-1335_daily_bin1276.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/419648/ft1_filtered_4FGL_J0940.9-1335_daily_bin1276.fits.....................!
real 58.66
user 57.04
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/419648/ft1_filtered_4FGL_J0940.9-1335_daily_bin1276.fits', '/scratch/kocevski/419648/ft2_4FGL_J0940.9-1335_daily_bin1276.fits', expMap='/scratch/kocevski/419648/expmap_570067201_570326401_4FGL_J0940.9-1335_daily_bin1276.fits', expCube='/scratch/kocevski/419648/ltcube_570067201_570326401_4FGL_J0940.9-1335_daily_bin1276.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/419648/Model_4FGL_J0940.9-1335_daily_bin1276.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0940.9-1335'

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  2.757e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  2.301e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
249         beta:  1.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/419648/ft1_filtered_4FGL_J0940.9-1335_daily_bin1276.fits
Spacecraft file(s): /scratch/kocevski/419648/ft2_4FGL_J0940.9-1335_daily_bin1276.fits
Exposure map: /scratch/kocevski/419648/expmap_570067201_570326401_4FGL_J0940.9-1335_daily_bin1276.fits
Exposure cube: /scratch/kocevski/419648/ltcube_570067201_570326401_4FGL_J0940.9-1335_daily_bin1276.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/419648/Model_4FGL_J0940.9-1335_daily_bin1276.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) = 5458.82110459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5719       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3410       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.842       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.602       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.0057       1.0000         .10000E-03   10000.    
    11 'norm      '    .66728E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2211       1.0000         .10000E-03   10000.    
    13 'norm      '    15.190       1.0000         .10000E-03   10000.    
    14 'norm      '    .94524E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.698       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.195       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .77212       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1533       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5458.819     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     1758 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5716        3.5585        .72988E-07   -.57095E-04
   2  Prefactor     .10000E-03    7.1009        .21063E-08** at limit **
   3  Prefactor     6.3412        7.3717       -.30563E-06   -.62332E-04
   4  Prefactor     10.850        27.261        .11059E-04    .81480E-04
   5  Prefactor     .10000E-03    43.802       -.82533E-06** at limit **
   6  Prefactor     22.602        48.924       -.25785E-05    .14332E-04
   7  Prefactor     .10000E-03    15.054       -.75073E-06** at limit **
   8  Prefactor     .10000E-03    8.9647        .35182E-06** at limit **
   9  Prefactor     .10000E-03    4.9747        .29686E-07** at limit **
  10  norm          7.0059        5.1438        .37457E-06    .13905E-03
  11  norm          .71506E-01    2.1669       -.14549E-05    .12258E-02
  12  norm          2.2209        2.0133        .63381E-07    .17598E-03
  13  norm          15.189        13.512        .80989E-06    .15345E-04
  14  norm          .88418E-01    .91436       -.47793E-07    .13811E-03
  15  Prefactor     54.708        57.601        .11667E-04    .92385E-04
  16  Prefactor     11.196        12.583        .21979E-06   -.27522E-04
  17  Normalizat    .77157        .24935       -.53583E-05    .16004E-03
  18  Prefactor     1.1537        .15075        .12723E-05    .18848E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.57156
  Prefactor  = 0.0001
  Prefactor  = 6.34125
  Prefactor  = 10.8497
  Prefactor  = 0.0001
  Prefactor  = 22.6018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.00588
  norm       = 0.0715057
  norm       = 2.22086
  norm       = 15.1889
  norm       = 0.0884178
  Prefactor  = 54.7079
  Prefactor  = 11.1956
  Normalizat = 0.771574
  Prefactor  = 1.15372
 **********
 **   18 **HESSE 
 **********

 FCN=   5458.819     FROM HESSE     STATUS=OK           254 CALLS     2012 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5716        3.5573        .11938E-03   -1.5280    
   2  Prefactor     .10000E-03    7.1274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3412        7.3733        .15940E-03   -1.5204    
   4  Prefactor     10.850        27.228        .12168E-03   -1.5049    
   5  Prefactor     .10000E-03    43.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.602        48.833        .84253E-04   -1.4757    
   7  Prefactor     .10000E-03    15.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.9670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9788        .16094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.0059        5.1492        .13966E-03   -1.5179    
  11  norm          .71506E-01    22.031        .20085E-02   -1.5655    
  12  norm          2.2209        2.0150        .96132E-04   -1.5410    
  13  norm          15.189        13.513        .10276E-03   -1.4928    
  14  norm          .88418E-01    10.409        .13403E-02   -1.5649    
  15  Prefactor     54.708        57.913        .54235E-04   -1.4227    
  16  Prefactor     11.196        12.579        .11974E-03   -1.5039    
  17  Normalizat    .77157        .28411        .34705E-03   -1.0113    
  18  Prefactor     1.1537        .17581        .18526E-03   -.87768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52128e-08
Minuit parameter uncertainties:
  1  3.55745
  2  8.61635e-06
  3  7.37439
  4  27.2593
  5  4.77571e-05
  6  48.9192
  7  4.47443e-06
  8  6.86345e-06
  9  4.83725e-06
  10  5.14955
  11  2.50943
  12  2.01509
  13  13.5152
  14  1.91793
  15  57.9725
  16  12.5815
  17  0.284658
  18  0.175902
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  7.006e+00  5.150e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  2.301e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
249         beta:  1.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.154e+00  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  7.716e-01  2.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.05
Ra Dec: 145.244 -13.589
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.42e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 8.78e-06

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) = 5456.36360775
delta logL = 2.45530289126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5456.13871375
delta logL = 2.68019689072

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7096       1.0000         .10000E-03   10000.    
     2 'alpha     '    .90681       1.0000          .0000       5.0000    
     3 'Normalizat'    .79289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1474       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5456.139     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7110        2.9658        .52418E-02   -.17588E-03
   2  alpha         .90660        .37293        .29866       -.30751E-04
   3  Normalizat    .79329        .22828        .77371E-01    .21277E-04
   4  Prefactor     1.1473        .14697        .36013E-01   -.74468E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.71103
  alpha      = 0.906601
  Normalizat = 0.793293
  Prefactor  = 1.1473
 **********
 **   18 **HESSE 
 **********

 FCN=   5456.139     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7110        3.9366        .10176E-03   -1.5323    
   2  alpha         .90660        .50462        .12877E-01   -.69107    
   3  Normalizat    .79329        .26379        .34250E-03   -1.0032    
   4  Prefactor     1.1473        .17026        .18564E-03   -.87969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09151e-12
Minuit parameter uncertainties:
  1  3.93683
  2  0.510577
  3  0.264218
  4  0.170336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/419648': 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) = 5456.13871052
delta logL = 2.68020012374

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  3.711e+00  3.937e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  9.066e-01  5.106e-01  0.000e+00  5.000e+00 ( 1.000e+00)
249         beta:  1.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.147e+00  1.703e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  7.933e-01  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.42
Ra Dec: 145.244 -13.589
Photon Index (Free Index): 0.91 +/- 0.51
Photon Flux (Free Index): 1.12e-08 +/- 8.98e-09
Energy Flux (Free Index): 6.31e-05 +/- 7.32e-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/419648/cmap_HighResolution_570067201_570326401_4FGL_J0940.9-1335_daily_bin1276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.42e-08', energy_flux2='6.31e-05', photon_flux_error='2.51e-08', dlogl='2.68e+00', energy_flux='1.19e-05', photon_flux2='1.12e-08', job_status='DONE', time_completed='2021-08-31 21:59:29.434882', photon_index_error2='0.51', photon_index2='0.91', ts='9.05', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='7.32e-05', EG='0.77', time_epoch_completed='1630472369.43', return_code='0', job_id='419648', GAL2='1.15', EG2='0.79', return_code2='0', energy_flux_error='8.78e-06', photon_flux_error2='8.98e-09', ts2='14.42', photon_index='2.30' WHERE bin_id='1276' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 21:59:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 419648: <4FGL_J0940.9-1335_daily_bin1276> in cluster <slac> Done

Job <4FGL_J0940.9-1335_daily_bin1276> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 21:50:53 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 21:50:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 21:50:55 2021
Terminated at Tue Aug 31 21:59:30 2021
Results reported at Tue Aug 31 21:59:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin1276 145.244 -13.5891 570067201 570326401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0940.9-1335 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   483.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   514 sec.
    Turnaround time :                            517 sec.

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

