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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin595
RA = 145.244, Dec = -13.5891
tmin = 393552001, tmax = 393811201
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='416112', job_status='RUN', time_executed='2021-08-31 21:40:45.477264', time_epoch_executed='1630471245.48' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/416112

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/416112/ft1_4FGL_J0940.9-1335_daily_bin595.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/416112/ft2_4FGL_J0940.9-1335_daily_bin595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/416112/ft1_4FGL_J0940.9-1335_daily_bin595.fits outfile=/scratch/kocevski/416112/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin595.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=393552001.0 tmax=393811201.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.53
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/416112/ft1_filtered_4FGL_J0940.9-1335_daily_bin595.fits" evtable="EVENTS" scfile=/scratch/kocevski/416112/ft2_4FGL_J0940.9-1335_daily_bin595.fits sctable="SC_DATA" outfile=/scratch/kocevski/416112/ltcube_393552001_393811201_4FGL_J0940.9-1335_daily_bin595.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/416112/ft2_4FGL_J0940.9-1335_daily_bin595.fits
.....................!
real 12.30
user 11.71
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/416112/ft1_filtered_4FGL_J0940.9-1335_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/416112/ft2_4FGL_J0940.9-1335_daily_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/416112/ltcube_393552001_393811201_4FGL_J0940.9-1335_daily_bin595.fits outfile=/scratch/kocevski/416112/expmap_393552001_393811201_4FGL_J0940.9-1335_daily_bin595.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/416112/ltcube_393552001_393811201_4FGL_J0940.9-1335_daily_bin595.fits
.....................!
real 192.13
user 186.23
sys 4.91

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/416112/ft1_filtered_4FGL_J0940.9-1335_daily_bin595.fits scfile=/scratch/kocevski/416112/ft2_4FGL_J0940.9-1335_daily_bin595.fits outfile=/scratch/kocevski/416112/cmap_393552001_393811201_4FGL_J0940.9-1335_daily_bin595.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/416112/ft1_filtered_4FGL_J0940.9-1335_daily_bin595.fits scfile=/scratch/kocevski/416112/ft2_4FGL_J0940.9-1335_daily_bin595.fits outfile=/scratch/kocevski/416112/cmap_HighResolution_393552001_393811201_4FGL_J0940.9-1335_daily_bin595.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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/416112/ft1_filtered_4FGL_J0940.9-1335_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/416112/ft2_4FGL_J0940.9-1335_daily_bin595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/416112/Model_4FGL_J0940.9-1335_daily_bin595.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/416112/ft1_filtered_4FGL_J0940.9-1335_daily_bin595.fits.....................!
real 72.47
user 71.06
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3576       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .95727E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.500       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.936       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .59297E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.005       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.7215       1.0000         .10000E-03   10000.    
    11 'norm      '    .11960E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.3629       1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2730       1.0000         .10000E-03   10000.    
    15 'Prefactor '    77.132       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0757       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0225       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6900.123     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1767 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3514        3.8763        .27811E-06    .24690E-03
   2  Prefactor     .10017E-03    132.17        .28011E-05** at limit **
   3  Prefactor     .10000E-03    4.6697        .75143E-06** at limit **
   4  Prefactor     22.518        11.720        .21397E-06    .16951E-01
   5  Prefactor     33.942        8.2583        .16993E-06    .38908E-03
   6  Prefactor     .10000E-03    9.6923       -.99796E-06** at limit **
   7  Prefactor     .29391        521.75        .39381E-04   -.21434E-03
   8  Prefactor     29.908        35.497       -.63287E-06   -.63379E-02
   9  Prefactor     .10000E-03    7.9637       -.11619E-05** at limit **
  10  norm          7.7345        10.376        .11411E-06    .35741E-03
  11  norm          .10000E-03    11.560        .72224E-06** at limit **
  12  norm          4.3636        2.4046        .19662E-07    .94315E-04
  13  norm          .10000E-03    13.215        .77033E-07** at limit **
  14  norm          1.2741        1.3016        .48863E-07    .86849E-04
  15  Prefactor     77.156        2.4584        .15429E-06   -.40361E-03
  16  Prefactor     .10000E-03    7.5799       -.74142E-06** at limit **
  17  Normalizat    1.0752        .24587        .98962E-07    .13288E-03
  18  Prefactor     1.0225        .15115        .19969E-06    .19183E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.3514
  Prefactor  = 0.000100167
  Prefactor  = 0.0001
  Prefactor  = 22.5178
  Prefactor  = 33.9417
  Prefactor  = 0.0001
  Prefactor  = 0.293914
  Prefactor  = 29.9081
  Prefactor  = 0.0001
  norm       = 7.7345
  norm       = 0.0001
  norm       = 4.36363
  norm       = 0.0001
  norm       = 1.27408
  Prefactor  = 77.1556
  Prefactor  = 0.0001
  Normalizat = 1.07518
  Prefactor  = 1.02251
 **********
 **   18 **HESSE 
 **********

 FCN=   6900.123     FROM HESSE     STATUS=OK           300 CALLS     2067 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3514        3.9429        .39797E-02   -1.5204    
   2  Prefactor     .10017E-03    8.5891        .13033       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.6353        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.518        20.693        .21111E-02   -1.4759    
   5  Prefactor     33.942        35.678        .17197E-02   -1.4542    
   6  Prefactor     .10000E-03    9.6828        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .29391        24.408        .13045       -1.5600    
   8  Prefactor     29.908        44.048        .18286E-02   -1.4614    
   9  Prefactor     .10000E-03    7.9343        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.7345        11.226        .36077E-02   -1.5152    
  11  norm          .10000E-03    2.7499        .42788E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.3636        2.4158        .48208E-02   -1.5290    
  13  norm          .10000E-03    12.948        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2741        1.3249        .98525E-02   -1.5482    
  15  Prefactor     77.156        49.722        .11431E-02   -1.3949    
  16  Prefactor     .10000E-03    7.4440        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0752        .21380        .70442E-01   -.90553    
  18  Prefactor     1.0225        .12851        .41901E-01   -.91983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18415e-07
Minuit parameter uncertainties:
  1  3.94301
  2  0.00239217
  3  2.57533e-05
  4  20.6997
  5  35.7003
  6  5.56031e-05
  7  5.3581
  8  44.0957
  9  5.18119e-05
  10  11.2293
  11  2.95466e-05
  12  2.41581
  13  7.78717e-06
  14  1.3249
  15  49.7491
  16  3.33106e-05
  17  0.213971
  18  0.128551
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  7.734e+00  1.123e+01  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.023e+00  1.286e-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:  1.075e+00  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.85
Ra Dec: 145.244 -13.589
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/416112/likelihoodResults_393552001_393811201_4FGL_J0940.9-1335_daily_bin595.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) = 6898.83210673
delta logL = 1.29054724087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6898.82620516
delta logL = 1.29644881315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5564       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6381       1.0000          .0000       5.0000    
     3 'Normalizat'    .96465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0631       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=   6898.826     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      242 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5564        49.063        .47147E-02    .11346E-02
   2  alpha         3.6381        4.3033        .31948        .47556E-04
   3  Normalizat    .96465        .77883E-01    .73832E-01    .70827E-04
   4  Prefactor     1.0631        .48409E-01    .39195E-01   -.36918E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.55642
  alpha      = 3.63812
  Normalizat = 0.964651
  Prefactor  = 1.06313
 **********
 **   18 **HESSE 
 **********

 FCN=   6898.826     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5564        8.4206        .99323E-04   -1.5281    
   2  alpha         3.6381        1.1875        .13334E-01    .47265    
   3  Normalizat    .96465        .25217        .32670E-03   -.94224    
   4  Prefactor     1.0631        .15412        .19576E-03   -.90654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0399e-08
Minuit parameter uncertainties:
  1  8.42278
  2  1.25262
  3  0.252479
  4  0.154186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/416112': 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) = 6898.82620516
delta logL = 1.29644881557

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  4.556e+00  8.423e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  3.638e+00  1.253e+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.063e+00  1.542e-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.647e-01  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.69
Ra Dec: 145.244 -13.589
Photon Index (Free Index): 3.64 +/- 1.25
Photon Flux (Free Index): 1.28e-07 +/- 7.97e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/416112/cmap_HighResolution_393552001_393811201_4FGL_J0940.9-1335_daily_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-05', comment='SUCCESS', energy_flux2='2.17e-05', dlogl='1.30e+00', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-08-31 21:50:38.410330', photon_index_error2='1.25', photon_index2='3.64', ts='0.85', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.41e-05', EG='1.08', time_epoch_completed='1630471838.41', return_code='0', job_id='416112', GAL2='1.06', EG2='0.96', return_code2='0', photon_flux_error2='7.97e-08', ts2='3.69', photon_index='2.30' WHERE bin_id='595' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 21:50:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 416112: <4FGL_J0940.9-1335_daily_bin595> in cluster <slac> Done

Job <4FGL_J0940.9-1335_daily_bin595> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 21:40:34 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 21:40: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 21:40:35 2021
Terminated at Tue Aug 31 21:50:40 2021
Results reported at Tue Aug 31 21:50:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin595 145.244 -13.5891 393552001 393811201 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 :                                   589.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             340.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            606 sec.

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

