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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin1273
RA = 145.244, Dec = -13.5891
tmin = 569289601, tmax = 569548801
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='419643', job_status='RUN', time_executed='2021-08-31 21:52:11.885087', time_epoch_executed='1630471931.89' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='1273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/419643

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/419643/ft1_4FGL_J0940.9-1335_daily_bin1273.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/419643/ft2_4FGL_J0940.9-1335_daily_bin1273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/419643/ft1_4FGL_J0940.9-1335_daily_bin1273.fits outfile=/scratch/kocevski/419643/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin1273.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=569289601.0 tmax=569548801.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.59
user 3.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/419643/ft2_4FGL_J0940.9-1335_daily_bin1273.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/419643/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin1273.fits evtable="EVENTS" outfile="/scratch/kocevski/419643/ft1_filtered_4FGL_J0940.9-1335_daily_bin1273.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/419643/ft1_filtered_4FGL_J0940.9-1335_daily_bin1273.fits" evtable="EVENTS" scfile=/scratch/kocevski/419643/ft2_4FGL_J0940.9-1335_daily_bin1273.fits sctable="SC_DATA" outfile=/scratch/kocevski/419643/ltcube_569289601_569548801_4FGL_J0940.9-1335_daily_bin1273.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/419643/ft2_4FGL_J0940.9-1335_daily_bin1273.fits
.....................!
real 11.93
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/419643/ft1_filtered_4FGL_J0940.9-1335_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/419643/ft2_4FGL_J0940.9-1335_daily_bin1273.fits sctable="SC_DATA" expcube=/scratch/kocevski/419643/ltcube_569289601_569548801_4FGL_J0940.9-1335_daily_bin1273.fits outfile=/scratch/kocevski/419643/expmap_569289601_569548801_4FGL_J0940.9-1335_daily_bin1273.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/419643/ltcube_569289601_569548801_4FGL_J0940.9-1335_daily_bin1273.fits
.....................!
real 191.20
user 185.50
sys 5.33

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/419643/ft1_filtered_4FGL_J0940.9-1335_daily_bin1273.fits scfile=/scratch/kocevski/419643/ft2_4FGL_J0940.9-1335_daily_bin1273.fits outfile=/scratch/kocevski/419643/cmap_569289601_569548801_4FGL_J0940.9-1335_daily_bin1273.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/419643/ft1_filtered_4FGL_J0940.9-1335_daily_bin1273.fits scfile=/scratch/kocevski/419643/ft2_4FGL_J0940.9-1335_daily_bin1273.fits outfile=/scratch/kocevski/419643/cmap_HighResolution_569289601_569548801_4FGL_J0940.9-1335_daily_bin1273.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/419643/ft1_filtered_4FGL_J0940.9-1335_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/419643/ft2_4FGL_J0940.9-1335_daily_bin1273.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/419643/Model_4FGL_J0940.9-1335_daily_bin1273.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/419643/ft1_filtered_4FGL_J0940.9-1335_daily_bin1273.fits.....................!
real 77.91
user 76.42
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/419643/ft1_filtered_4FGL_J0940.9-1335_daily_bin1273.fits', '/scratch/kocevski/419643/ft2_4FGL_J0940.9-1335_daily_bin1273.fits', expMap='/scratch/kocevski/419643/expmap_569289601_569548801_4FGL_J0940.9-1335_daily_bin1273.fits', expCube='/scratch/kocevski/419643/ltcube_569289601_569548801_4FGL_J0940.9-1335_daily_bin1273.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/419643/Model_4FGL_J0940.9-1335_daily_bin1273.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/419643/ft1_filtered_4FGL_J0940.9-1335_daily_bin1273.fits
Spacecraft file(s): /scratch/kocevski/419643/ft2_4FGL_J0940.9-1335_daily_bin1273.fits
Exposure map: /scratch/kocevski/419643/expmap_569289601_569548801_4FGL_J0940.9-1335_daily_bin1273.fits
Exposure cube: /scratch/kocevski/419643/ltcube_569289601_569548801_4FGL_J0940.9-1335_daily_bin1273.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/419643/Model_4FGL_J0940.9-1335_daily_bin1273.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) = 7891.58467235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4520       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.449       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.720       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10381E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9143       1.0000         .10000E-03   10000.    
    13 'norm      '    15.410       1.0000         .10000E-03   10000.    
    14 'norm      '    2.3324       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.322       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .74222       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0325       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7891.582     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2222 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4523        2.1253        .99073E-04   -.49343E-05
   2  Prefactor     .10000E-03    2.5735        .13903E-02** at limit **
   3  Prefactor     .10000E-03    1.7353        .11408E-02** at limit **
   4  Prefactor     .10000E-03    10.952        .81539E-01** at limit **
   5  Prefactor     .10000E-03    12.037        .18142E-02** at limit **
   6  Prefactor     .10000E-03    18.528        .18142E-02** at limit **
   7  Prefactor     17.449        22.398        .95881E-04   -.36757E-05
   8  Prefactor     32.743        32.300        .70052E-04   -.11360E-05
   9  Prefactor     .10000E-03    11.438        .18142E-02** at limit **
  10  norm          .10000E-03    10.680        .36285E-03** at limit **
  11  norm          .10000E-03    1.4383        .10332E-02** at limit **
  12  norm          1.9143        1.3143        .82173E-04    .26148E-04
  13  norm          15.411        9.3919        .10203E-03    .13706E-04
  14  norm          2.3324        1.0722        .60289E-04    .15086E-05
  15  Prefactor     .10000E-03    12.601        .18142E-02** at limit **
  16  Prefactor     14.322        9.0412        .10584E-03   -.71971E-05
  17  Normalizat    .74207        .18961        .30796E-03   -.23331E-04
  18  Prefactor     1.0327        .12280        .17404E-03   -.12803E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.45228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4487
  Prefactor  = 32.7435
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.91427
  norm       = 15.4107
  norm       = 2.33237
  Prefactor  = 0.0001
  Prefactor  = 14.3218
  Normalizat = 0.74207
  Prefactor  = 1.03267
 **********
 **   18 **HESSE 
 **********

 FCN=   7891.582     FROM HESSE     STATUS=OK           236 CALLS     2458 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4523        2.1253        .39629E-05   -1.5336    
   2  Prefactor     .10000E-03    2.5737        .27805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.7354        .22816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.188        .86207E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.449        22.395        .38352E-05   -1.4872    
   8  Prefactor     32.743        32.294        .28021E-05   -1.4563    
   9  Prefactor     .10000E-03    11.448        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.680        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4385        .20664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9143        1.3143        .32869E-05   -1.5431    
  13  norm          15.411        9.3919        .40811E-05   -1.4923    
  14  norm          2.3324        1.0722        .24116E-05   -1.5403    
  15  Prefactor     .10000E-03    12.602        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.322        9.0411        .42334E-05   -1.4951    
  17  Normalizat    .74207        .18976        .12318E-04   -1.0225    
  18  Prefactor     1.0327        .12289        .34808E-04   -.91648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23766e-11
Minuit parameter uncertainties:
  1  2.12536
  2  3.24112e-06
  3  2.65488e-06
  4  1.17702e-06
  5  2.45483e-05
  6  9.25541e-06
  7  22.4055
  8  32.3107
  9  3.33487e-05
  10  6.56462e-06
  11  4.86319e-06
  12  1.31427
  13  9.3928
  14  1.07224
  15  1.10904e-05
  16  9.04193
  17  0.189928
  18  0.122927
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.000e-04  6.565e-06  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.033e+00  1.229e-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.421e-01  1.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.244 -13.589
Photon Flux Upper Limit: 7.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/419643/likelihoodResults_569289601_569548801_4FGL_J0940.9-1335_daily_bin1273.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) = 7891.58242276
delta logL = -0.000447194579465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7891.58197749
delta logL = -1.92335937754e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14387E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4071       1.0000          .0000       5.0000    
     3 'Normalizat'    .74254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0324       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=   7891.112     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      268 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60270        14.319        .90712E-02    .17022E-02
   2  alpha         4.3612        3.4510        .41188        .50309E-04
   3  Normalizat    .67765        .44409E-01    .72547E-01    .10219E-04
   4  Prefactor     1.0560        .29363E-01    .41074E-01   -.44225E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.602696
  alpha      = 4.36117
  Normalizat = 0.677648
  Prefactor  = 1.05602
 **********
 **   18 **HESSE 
 **********

 FCN=   7891.112     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      301 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60270        31.572        .69461E-04   -1.5553    
   2  alpha         4.3612        2.8055        .36399E-01    .83973    
   3  Normalizat    .67765        .16591        .32110E-03   -1.0478    
   4  Prefactor     1.0560        .10816        .17223E-03   -.90885    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30937e-06
Minuit parameter uncertainties:
  1  8.72845
  2  9.0178
  3  0.166037
  4  0.108183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/419643': 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): 102
logL (Free Index) = 7891.1123873
delta logL = 0.469588271597

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  6.027e-01  8.728e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  4.361e+00  9.018e+00  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.056e+00  1.082e-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:  6.776e-01  1.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 145.244 -13.589
Photon Index (Free Index): 4.36 +/- 9.02
Photon Flux (Free Index): 5.11e-08 +/- 5.64e-08
Energy Flux (Free Index): 7.53e-06 +/- 1.45e-05

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/419643/cmap_HighResolution_569289601_569548801_4FGL_J0940.9-1335_daily_bin1273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-05', comment='SUCCESS', energy_flux2='7.53e-06', dlogl='4.70e-01', photon_flux2='5.11e-08', job_status='DONE', time_completed='2021-08-31 22:03:18.976000', photon_index_error2='9.02', photon_index2='4.36', ts='-0.00', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='7.16e-08', energy_flux_error2='1.45e-05', EG='0.74', time_epoch_completed='1630472598.98', return_code='0', job_id='419643', GAL2='1.06', EG2='0.68', return_code2='102', photon_flux_error2='5.64e-08', ts2='1.04', photon_index='2.30' WHERE bin_id='1273' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:03:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 419643: <4FGL_J0940.9-1335_daily_bin1273> in cluster <slac> Done

Job <4FGL_J0940.9-1335_daily_bin1273> 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) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 21:50:54 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:54 2021
Terminated at Tue Aug 31 22:03:19 2021
Results reported at Tue Aug 31 22:03:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin1273 145.244 -13.5891 569289601 569548801 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 :                                   656.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            746 sec.

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

