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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin814
RA = 145.244, Dec = -13.5891
tmin = 450316801, tmax = 450576001
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='416486', job_status='RUN', time_executed='2021-08-31 21:44:07.183237', time_epoch_executed='1630471447.18' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='814'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/416486

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/416486/ft1_4FGL_J0940.9-1335_daily_bin814.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/416486/ft2_4FGL_J0940.9-1335_daily_bin814.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/416486/ft1_4FGL_J0940.9-1335_daily_bin814.fits outfile=/scratch/kocevski/416486/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin814.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=450316801.0 tmax=450576001.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.94
user 3.71
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/416486/ft2_4FGL_J0940.9-1335_daily_bin814.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/416486/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin814.fits evtable="EVENTS" outfile="/scratch/kocevski/416486/ft1_filtered_4FGL_J0940.9-1335_daily_bin814.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/416486/ft1_filtered_4FGL_J0940.9-1335_daily_bin814.fits" evtable="EVENTS" scfile=/scratch/kocevski/416486/ft2_4FGL_J0940.9-1335_daily_bin814.fits sctable="SC_DATA" outfile=/scratch/kocevski/416486/ltcube_450316801_450576001_4FGL_J0940.9-1335_daily_bin814.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/416486/ft2_4FGL_J0940.9-1335_daily_bin814.fits
.....................!
real 11.91
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/416486/ft1_filtered_4FGL_J0940.9-1335_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/416486/ft2_4FGL_J0940.9-1335_daily_bin814.fits sctable="SC_DATA" expcube=/scratch/kocevski/416486/ltcube_450316801_450576001_4FGL_J0940.9-1335_daily_bin814.fits outfile=/scratch/kocevski/416486/expmap_450316801_450576001_4FGL_J0940.9-1335_daily_bin814.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/416486/ltcube_450316801_450576001_4FGL_J0940.9-1335_daily_bin814.fits
.....................!
real 191.12
user 185.82
sys 4.93

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/416486/ft1_filtered_4FGL_J0940.9-1335_daily_bin814.fits scfile=/scratch/kocevski/416486/ft2_4FGL_J0940.9-1335_daily_bin814.fits outfile=/scratch/kocevski/416486/cmap_450316801_450576001_4FGL_J0940.9-1335_daily_bin814.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/416486/ft1_filtered_4FGL_J0940.9-1335_daily_bin814.fits scfile=/scratch/kocevski/416486/ft2_4FGL_J0940.9-1335_daily_bin814.fits outfile=/scratch/kocevski/416486/cmap_HighResolution_450316801_450576001_4FGL_J0940.9-1335_daily_bin814.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/416486/ft1_filtered_4FGL_J0940.9-1335_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/416486/ft2_4FGL_J0940.9-1335_daily_bin814.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/416486/Model_4FGL_J0940.9-1335_daily_bin814.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/416486/ft1_filtered_4FGL_J0940.9-1335_daily_bin814.fits.....................!
real 77.27
user 75.90
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6813       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9450       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.494       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.346       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.055       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.9535       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2454       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.9108       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .63180       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .80012       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95740       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7937.056     FROM MIGRAD    STATUS=CONVERGED    358 CALLS     1717 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6814        1.8479         .0000       -.60631E-04
   2  Prefactor     2.9452        5.2876         .0000        .86516E-02
   3  Prefactor     .10000E-03    1.5581         .0000    ** at limit **
   4  Prefactor     .10000E-03    3.2931         .0000    ** at limit **
   5  Prefactor     21.492        28.548         .0000        .17045E-02
   6  Prefactor     33.345        33.191         .0000        .90958E-03
   7  Prefactor     .10000E-03    27.553         .0000    ** at limit **
   8  Prefactor     .10000E-03    7.1658         .0000    ** at limit **
   9  Prefactor     10.057        12.438         .0000       -.62871E-04
  10  norm          .10000E-03    2.9660         .0000    ** at limit **
  11  norm          5.9531        3.3743         .0000       -.15431E-02
  12  norm          2.2454        1.6075         .0000        .16136E-03
  13  norm          .10000E-03    6.6766         .0000    ** at limit **
  14  norm          2.9108        1.1697         .0000        .31534E-03
  15  Prefactor     .10000E-03    14.566         .0000    ** at limit **
  16  Prefactor     .64095        6.1804         .0000        .45958E-01
  17  Normalizat    .80015        .15839         .0000       -.12406E-03
  18  Prefactor     .95735        .10117         .0000       -.17146E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.6814
  Prefactor  = 2.94519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4924
  Prefactor  = 33.3453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0568
  norm       = 0.0001
  norm       = 5.95314
  norm       = 2.24541
  norm       = 0.000100001
  norm       = 2.91084
  Prefactor  = 0.0001
  Prefactor  = 0.640946
  Normalizat = 0.800153
  Prefactor  = 0.957348
 **********
 **   18 **HESSE 
 **********

 FCN=   7937.056     FROM HESSE     STATUS=OK           242 CALLS     1959 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6814        1.8473        .97676E-04   -1.5380    
   2  Prefactor     2.9452        5.2690        .11833E-02   -1.5365    
   3  Prefactor     .10000E-03    1.5628        .10860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2948        .15787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.492        28.553        .86395E-04   -1.4780    
   6  Prefactor     33.345        33.342        .69393E-04   -1.4552    
   7  Prefactor     .10000E-03    27.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.1692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.057        12.437        .12637E-03   -1.5074    
  10  norm          .10000E-03    3.0125        .14978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9531        3.3732        .11910E-03   -1.5220    
  12  norm          2.2454        1.6084        .92459E-04   -1.5408    
  13  norm          .10000E-03    6.7401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9108        1.1678        .58793E-04   -1.5367    
  15  Prefactor     .10000E-03    14.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .64095        6.1892        .21527E-02   -1.5548    
  17  Normalizat    .80015        .18640        .29091E-03   -1.0006    
  18  Prefactor     .95735        .11959        .17516E-03   -.94165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74496e-08
Minuit parameter uncertainties:
  1  1.84737
  2  5.26983
  3  3.22782e-06
  4  2.29785e-05
  5  28.5713
  6  33.3607
  7  0.000151974
  8  0.000109434
  9  12.4405
  10  8.78049e-06
  11  3.37329
  12  1.60846
  13  0.000140736
  14  1.16777
  15  4.33676e-05
  16  3.98368
  17  0.186544
  18  0.119624
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.000e-04  8.780e-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:  9.573e-01  1.196e-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.002e-01  1.865e-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: 4.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/416486/likelihoodResults_450316801_450576001_4FGL_J0940.9-1335_daily_bin814.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) = 7937.05745441
delta logL = -0.00158232036483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7937.03979088
delta logL = 0.0160812076119

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36788E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .78780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96206       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=   7937.040     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      291 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36789E-01    3.8503        .14471E-01    .34897E-02
   2  alpha         5.0000        4.8736        .46267    ** at limit **
   3  Normalizat    .78782        .30375E-01    .66245E-01    .39261E-04
   4  Prefactor     .96206        .19044E-01    .45791E-01   -.49897E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0367886
  alpha      = 5
  Normalizat = 0.787816
  Prefactor  = 0.962063
 **********
 **   18 **HESSE 
 **********

 FCN=   7937.040     FROM HESSE     STATUS=OK            35 CALLS      326 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36789E-01    .32922        .51128E-03   -1.5670    
   2  alpha         5.0000        4.0236        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .78782        .19565        .29308E-03   -1.0052    
   4  Prefactor     .96206        .12221        .17479E-03   -.94005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.27736e-11
Minuit parameter uncertainties:
  1  0.219808
  2  3.46923e-06
  3  0.195827
  4  0.122242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/416486': 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) = 7937.03979087
delta logL = 0.0160812204367

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  3.679e-02  2.198e-01  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  5.000e+00  3.469e-06  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.621e-01  1.222e-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.878e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.244 -13.589

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/416486/cmap_HighResolution_450316801_450576001_4FGL_J0940.9-1335_daily_bin814.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-05', job_status='DONE', photon_flux_upper_limit='4.87e-08', time_completed='2021-08-31 21:54:34.875452', job_id='416486', GAL2='0.96', fit_tolerance='1e-08', EG2='0.79', EG='0.80', time_epoch_completed='1630472074.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.61e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='814' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 21:54:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 416486: <4FGL_J0940.9-1335_daily_bin814> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin814 145.244 -13.5891 450316801 450576001 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 :                                   625.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            811 sec.

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

