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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin1006
RA = 145.244, Dec = -13.5891
tmin = 500083201, tmax = 500342401
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='417955', job_status='RUN', time_executed='2021-08-31 21:46:54.153138', time_epoch_executed='1630471614.15' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/417955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/417955/ft1_4FGL_J0940.9-1335_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/417955/ft2_4FGL_J0940.9-1335_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/417955/ft1_4FGL_J0940.9-1335_daily_bin1006.fits outfile=/scratch/kocevski/417955/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin1006.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.65
user 5.40
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/417955/ft1_filtered_4FGL_J0940.9-1335_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/417955/ft2_4FGL_J0940.9-1335_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/417955/ltcube_500083201_500342401_4FGL_J0940.9-1335_daily_bin1006.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/417955/ft2_4FGL_J0940.9-1335_daily_bin1006.fits
.....................!
real 12.19
user 11.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/417955/ft1_filtered_4FGL_J0940.9-1335_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/417955/ft2_4FGL_J0940.9-1335_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/417955/ltcube_500083201_500342401_4FGL_J0940.9-1335_daily_bin1006.fits outfile=/scratch/kocevski/417955/expmap_500083201_500342401_4FGL_J0940.9-1335_daily_bin1006.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/417955/ltcube_500083201_500342401_4FGL_J0940.9-1335_daily_bin1006.fits
.....................!
real 190.37
user 185.03
sys 4.85

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/417955/ft1_filtered_4FGL_J0940.9-1335_daily_bin1006.fits scfile=/scratch/kocevski/417955/ft2_4FGL_J0940.9-1335_daily_bin1006.fits outfile=/scratch/kocevski/417955/cmap_500083201_500342401_4FGL_J0940.9-1335_daily_bin1006.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/417955/ft1_filtered_4FGL_J0940.9-1335_daily_bin1006.fits scfile=/scratch/kocevski/417955/ft2_4FGL_J0940.9-1335_daily_bin1006.fits outfile=/scratch/kocevski/417955/cmap_HighResolution_500083201_500342401_4FGL_J0940.9-1335_daily_bin1006.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/417955/ft1_filtered_4FGL_J0940.9-1335_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/417955/ft2_4FGL_J0940.9-1335_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/417955/Model_4FGL_J0940.9-1335_daily_bin1006.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/417955/ft1_filtered_4FGL_J0940.9-1335_daily_bin1006.fits.....................!
real 73.65
user 72.16
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8429       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6080       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13856E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    64.732       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10729E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .49070E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.0855       1.0000         .10000E-03   10000.    
    11 'norm      '    8.3286       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6187       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7868       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .88562       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94588       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=   7365.868     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     1729 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8428        3.4099       -.65433E-06   -.34563E-02
   2  Prefactor     .10000E-03    17.150       -.62265E-05** at limit **
   3  Prefactor     .10000E-03    3.3721       -.39650E-07** at limit **
   4  Prefactor     1.6584        34.496        .81387E-05   -.14308E-03
   5  Prefactor     .10000E-03    21.618        .93716E-05** at limit **
   6  Prefactor     .10000E-03    19.079       -.21329E-05** at limit **
   7  Prefactor     64.707        32.342       -.19840E-04    .15475E-04
   8  Prefactor     .10000E-03    10.376        .11029E-05** at limit **
   9  Prefactor     .10000E-03    6.2299        .32153E-07** at limit **
  10  norm          8.0804        5.3424       -.30335E-05   -.55310E-04
  11  norm          8.3283        3.6117        .13569E-05    .59725E-04
  12  norm          .10000E-03    .37548       -.23841E-08** at limit **
  13  norm          2.6193        6.8154       -.12443E-05   -.39287E-03
  14  norm          2.7869        1.2528       -.16591E-06   -.20023E-03
  15  Prefactor     .10000E-03    19.673        .32617E-06** at limit **
  16  Prefactor     .10000E-03    4.7637        .69776E-07** at limit **
  17  Normalizat    .88582        .17172        .48709E-05   -.16626E-03
  18  Prefactor     .94559        .10721       -.47414E-06    .26708E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.84278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.65838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.08042
  norm       = 8.32831
  norm       = 0.0001
  norm       = 2.61927
  norm       = 2.78693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.885823
  Prefactor  = 0.945591
 **********
 **   18 **HESSE 
 **********

 FCN=   7365.868     FROM HESSE     STATUS=OK           244 CALLS     1973 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8428        3.4407        .54767E-03   -1.5185    
   2  Prefactor     .10000E-03    17.662        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3888        .15389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6584        34.622        .33412E-03   -1.5450    
   5  Prefactor     .10000E-03    21.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     64.707        32.223        .49880E-04   -1.4097    
   8  Prefactor     .10000E-03    10.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    46.834        .41028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.0804        5.3362        .14100E-03   -1.5139    
  11  norm          8.3283        3.6110        .10423E-03   -1.5131    
  12  norm          .10000E-03    .37690        .51354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6193        6.8124        .25204E-03   -1.5384    
  14  norm          2.7869        1.2514        .61792E-04   -1.5374    
  15  Prefactor     .10000E-03    19.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .88582        .20110        .28739E-03   -.96960    
  18  Prefactor     .94559        .12659        .18085E-03   -.94566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11735e-09
Minuit parameter uncertainties:
  1  3.4408
  2  0.000123652
  3  2.21618e-06
  4  15.1643
  5  8.67079e-05
  6  7.17562e-05
  7  32.2314
  8  6.22781e-05
  9  0.000256118
  10  5.33655
  11  3.61106
  12  8.57593e-08
  13  6.81445
  14  1.25144
  15  3.30204e-05
  16  1.50226e-05
  17  0.201273
  18  0.126626
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  8.080e+00  5.337e+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:  9.456e-01  1.266e-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:  8.858e-01  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.97
Ra Dec: 145.244 -13.589
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.94e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 9.09e-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) = 7365.64728583
delta logL = 0.220395697471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7365.64518794
delta logL = 0.222493591861

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1254       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8567       1.0000          .0000       5.0000    
     3 'Normalizat'    .90046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94103       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=   7365.645     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      201 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1726        9.0177        .35163E-02    .31248E-04
   2  alpha         1.8632        .80987        .43022       -.83966E-05
   3  Normalizat    .90019        .16542        .64519E-01    .20452E-04
   4  Prefactor     .94108        .10705        .45526E-01   -.61222E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.17261
  alpha      = 1.86324
  Normalizat = 0.900192
  Prefactor  = 0.941076
 **********
 **   18 **HESSE 
 **********

 FCN=   7365.645     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1726        6.0012        .14065E-03   -1.5136    
   2  alpha         1.8632        .65979        .17940E-01   -.25754    
   3  Normalizat    .90019        .19352        .28538E-03   -.96453    
   4  Prefactor     .94108        .12562        .18124E-03   -.94720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3638e-10
Minuit parameter uncertainties:
  1  6.00161
  2  0.668269
  3  0.193666
  4  0.125658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/417955': 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) = 7365.64512945
delta logL = 0.222552078327

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  8.173e+00  6.002e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  1.863e+00  6.683e-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:  9.411e-01  1.257e-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.002e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.41
Ra Dec: 145.244 -13.589
Photon Index (Free Index): 1.86 +/- 0.67
Photon Flux (Free Index): 2.66e-08 +/- 2.68e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.39e-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/417955/cmap_HighResolution_500083201_500342401_4FGL_J0940.9-1335_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.94e-08', energy_flux2='1.70e-05', photon_flux_error='2.60e-08', dlogl='2.23e-01', energy_flux='1.38e-05', photon_flux2='2.66e-08', job_status='DONE', time_completed='2021-08-31 21:56:19.620453', photon_index_error2='0.67', photon_index2='1.86', ts='4.97', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.89', time_epoch_completed='1630472179.62', return_code='0', job_id='417955', GAL2='0.94', EG2='0.90', return_code2='0', energy_flux_error='9.09e-06', photon_flux_error2='2.68e-08', ts2='5.41', photon_index='2.30' WHERE bin_id='1006' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 21:56:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 417955: <4FGL_J0940.9-1335_daily_bin1006> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin1006 145.244 -13.5891 500083201 500342401 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 :                                   561.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            632 sec.

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

