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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin1248
RA = 145.244, Dec = -13.5891
tmin = 562809601, tmax = 563068801
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='419603', job_status='RUN', time_executed='2021-08-31 21:52:20.044386', time_epoch_executed='1630471940.04' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='1248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/419603

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/419603/ft1_4FGL_J0940.9-1335_daily_bin1248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/419603/ft2_4FGL_J0940.9-1335_daily_bin1248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/419603/ft1_4FGL_J0940.9-1335_daily_bin1248.fits outfile=/scratch/kocevski/419603/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin1248.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=562809601.0 tmax=563068801.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.41
user 3.21
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/419603/ft2_4FGL_J0940.9-1335_daily_bin1248.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/419603/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin1248.fits evtable="EVENTS" outfile="/scratch/kocevski/419603/ft1_filtered_4FGL_J0940.9-1335_daily_bin1248.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/419603/ft1_filtered_4FGL_J0940.9-1335_daily_bin1248.fits" evtable="EVENTS" scfile=/scratch/kocevski/419603/ft2_4FGL_J0940.9-1335_daily_bin1248.fits sctable="SC_DATA" outfile=/scratch/kocevski/419603/ltcube_562809601_563068801_4FGL_J0940.9-1335_daily_bin1248.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/419603/ft2_4FGL_J0940.9-1335_daily_bin1248.fits
.....................!
real 11.97
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/419603/ft1_filtered_4FGL_J0940.9-1335_daily_bin1248.fits evtable="EVENTS" scfile=/scratch/kocevski/419603/ft2_4FGL_J0940.9-1335_daily_bin1248.fits sctable="SC_DATA" expcube=/scratch/kocevski/419603/ltcube_562809601_563068801_4FGL_J0940.9-1335_daily_bin1248.fits outfile=/scratch/kocevski/419603/expmap_562809601_563068801_4FGL_J0940.9-1335_daily_bin1248.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/419603/ltcube_562809601_563068801_4FGL_J0940.9-1335_daily_bin1248.fits
.....................!
real 189.32
user 185.05
sys 3.95

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/419603/ft1_filtered_4FGL_J0940.9-1335_daily_bin1248.fits scfile=/scratch/kocevski/419603/ft2_4FGL_J0940.9-1335_daily_bin1248.fits outfile=/scratch/kocevski/419603/cmap_562809601_563068801_4FGL_J0940.9-1335_daily_bin1248.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/419603/ft1_filtered_4FGL_J0940.9-1335_daily_bin1248.fits scfile=/scratch/kocevski/419603/ft2_4FGL_J0940.9-1335_daily_bin1248.fits outfile=/scratch/kocevski/419603/cmap_HighResolution_562809601_563068801_4FGL_J0940.9-1335_daily_bin1248.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/419603/ft1_filtered_4FGL_J0940.9-1335_daily_bin1248.fits evtable="EVENTS" scfile=/scratch/kocevski/419603/ft2_4FGL_J0940.9-1335_daily_bin1248.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/419603/Model_4FGL_J0940.9-1335_daily_bin1248.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/419603/ft1_filtered_4FGL_J0940.9-1335_daily_bin1248.fits.....................!
real 78.48
user 77.18
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3390       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9212       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13463E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.482       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.513       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.613       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9422       1.0000         .10000E-03   10000.    
    10 'norm      '    15.445       1.0000         .10000E-03   10000.    
    11 'norm      '    5.7870       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0105       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.695       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .97090       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0286       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=   7451.775     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     2078 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3390        1.7734        .97397E-04    .93847E-04
   2  Prefactor     .10000E-03    4.5219        .17899E-02** at limit **
   3  Prefactor     1.9213        4.6805        .28400E-03   -.29206E-03
   4  Prefactor     .10122E-03    23.315        .86291E-01** at limit **
   5  Prefactor     65.489        44.609        .49595E-04    .64185E-04
   6  Prefactor     12.524        30.996        .11324E-03    .26167E-03
   7  Prefactor     .10000E-03    83.494        .18142E-02** at limit **
   8  Prefactor     17.613        19.961        .95434E-04   -.10150E-04
   9  Prefactor     7.9414        14.789        .14228E-03   -.31803E-04
  10  norm          15.444        7.9286        .10191E-03   -.19879E-03
  11  norm          5.7871        3.2540        .11332E-03    .14125E-03
  12  norm          .10000E-03    .70023        .69919E-03** at limit **
  13  norm          .10000E-03    3.5503        .15814E-02** at limit **
  14  norm          2.0104        1.4959        .87617E-04   -.30570E-03
  15  Prefactor     .10000E-03    19.477        .18142E-02** at limit **
  16  Prefactor     10.695        8.8927        .12251E-03   -.73309E-05
  17  Normalizat    .97085        .22709        .30576E-03    .43869E-03
  18  Prefactor     1.0287        .14149        .19305E-03    .31374E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33901
  Prefactor  = 0.0001
  Prefactor  = 1.92133
  Prefactor  = 0.000101218
  Prefactor  = 65.4887
  Prefactor  = 12.5239
  Prefactor  = 0.000100001
  Prefactor  = 17.6133
  Prefactor  = 7.94136
  norm       = 15.444
  norm       = 5.78707
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.01039
  Prefactor  = 0.0001
  Prefactor  = 10.6945
  Normalizat = 0.970846
  Prefactor  = 1.0287
 **********
 **   18 **HESSE 
 **********

 FCN=   7451.775     FROM HESSE     STATUS=OK           236 CALLS     2314 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3390        1.7734        .38959E-05   -1.5402    
   2  Prefactor     .10000E-03    4.5225        .35799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9213        4.6802        .11360E-04   -1.5431    
   4  Prefactor     .10122E-03    20.292        .93530E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     65.489        44.607        .99190E-05   -1.4088    
   6  Prefactor     12.524        30.938        .22648E-04   -1.5000    
   7  Prefactor     .10000E-03    83.554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.613        19.960        .19087E-04   -1.4868    
   9  Prefactor     7.9414        14.788        .56910E-05   -1.5144    
  10  norm          15.444        7.9284        .40765E-05   -1.4922    
  11  norm          5.7871        3.2539        .45329E-05   -1.5227    
  12  norm          .10000E-03    .70030        .13984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.5513        .31627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0104        1.4958        .35047E-05   -1.5424    
  15  Prefactor     .10000E-03    19.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.695        8.8923        .49005E-05   -1.5054    
  17  Normalizat    .97085        .22716        .61152E-04   -.94014    
  18  Prefactor     1.0287        .14158        .38609E-04   -.91779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12646e-09
Minuit parameter uncertainties:
  1  1.77343
  2  1.69643e-06
  3  4.68109
  4  0.00994593
  5  44.6293
  6  30.978
  7  0.000682002
  8  19.9678
  9  14.7945
  10  7.92891
  11  3.25404
  12  2.29198e-06
  13  1.00379e-05
  14  1.49584
  15  1.60466e-05
  16  8.89342
  17  0.227385
  18  0.141628
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.544e+01  7.929e+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.029e+00  1.416e-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:  9.708e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.29
Ra Dec: 145.244 -13.589
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 7.53e-08 +/- 3.86e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 1.35e-05

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) = 7451.77465029
delta logL = 0.00056264905561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7451.77457557
delta logL = 0.000637365475086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.507       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2806       1.0000          .0000       5.0000    
     3 'Normalizat'    .97258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0281       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=   7451.775     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      225 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.533        173.71        .25428E-02    .73060E-04
   2  alpha         2.2826        3.3778        .35311        .69337E-04
   3  Normalizat    .97209        .13996        .69076E-01    .34351E-04
   4  Prefactor     1.0282        .70860E-01    .41414E-01   -.13868E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.5329
  alpha      = 2.28261
  Normalizat = 0.972094
  Prefactor  = 1.02821
 **********
 **   18 **HESSE 
 **********

 FCN=   7451.775     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.533        8.2911        .10171E-03   -1.4920    
   2  alpha         2.2826        .49697        .13293E-01   -.87066E-01
   3  Normalizat    .97209        .21816        .30558E-03   -.93971    
   4  Prefactor     1.0282        .14053        .19309E-03   -.91795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19615e-10
Minuit parameter uncertainties:
  1  8.29168
  2  0.500326
  3  0.218364
  4  0.14058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/419603': 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) = 7451.77455632
delta logL = 0.000656616488413

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.553e+01  8.292e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  2.283e+00  5.003e-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.028e+00  1.406e-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:  9.721e-01  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.30
Ra Dec: 145.244 -13.589
Photon Index (Free Index): 2.28 +/- 0.50
Photon Flux (Free Index): 7.43e-08 +/- 4.60e-08
Energy Flux (Free Index): 2.65e-05 +/- 1.42e-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/419603/cmap_HighResolution_562809601_563068801_4FGL_J0940.9-1335_daily_bin1248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.53e-08', energy_flux2='2.65e-05', photon_flux_error='3.86e-08', dlogl='6.57e-04', energy_flux='2.63e-05', photon_flux2='7.43e-08', job_status='DONE', time_completed='2021-08-31 22:02:01.662097', photon_index_error2='0.50', photon_index2='2.28', ts='8.29', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='0.97', time_epoch_completed='1630472521.66', return_code='0', job_id='419603', GAL2='1.03', EG2='0.97', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='4.60e-08', ts2='8.30', photon_index='2.30' WHERE bin_id='1248' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:02:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 419603: <4FGL_J0940.9-1335_daily_bin1248> in cluster <slac> Done

Job <4FGL_J0940.9-1335_daily_bin1248> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 21:50:50 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 21:50:51 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:51 2021
Terminated at Tue Aug 31 22:02:02 2021
Results reported at Tue Aug 31 22:02:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin1248 145.244 -13.5891 562809601 563068801 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 :                                   575.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            672 sec.

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

