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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin682
RA = 145.244, Dec = -13.5891
tmin = 416102401, tmax = 416361601
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='416252', job_status='RUN', time_executed='2021-08-31 21:43:33.505191', time_epoch_executed='1630471413.51' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/416252

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/416252/ft1_4FGL_J0940.9-1335_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/416252/ft2_4FGL_J0940.9-1335_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/416252/ft1_4FGL_J0940.9-1335_daily_bin682.fits outfile=/scratch/kocevski/416252/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin682.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=416102401.0 tmax=416361601.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 6.44
user 6.18
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/416252/ft1_filtered_4FGL_J0940.9-1335_daily_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/416252/ft2_4FGL_J0940.9-1335_daily_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/416252/ltcube_416102401_416361601_4FGL_J0940.9-1335_daily_bin682.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/416252/ft2_4FGL_J0940.9-1335_daily_bin682.fits
.....................!
real 12.11
user 11.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/416252/ft1_filtered_4FGL_J0940.9-1335_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/416252/ft2_4FGL_J0940.9-1335_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/416252/ltcube_416102401_416361601_4FGL_J0940.9-1335_daily_bin682.fits outfile=/scratch/kocevski/416252/expmap_416102401_416361601_4FGL_J0940.9-1335_daily_bin682.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/416252/ltcube_416102401_416361601_4FGL_J0940.9-1335_daily_bin682.fits
.....................!
real 190.69
user 185.59
sys 4.45

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/416252/ft1_filtered_4FGL_J0940.9-1335_daily_bin682.fits scfile=/scratch/kocevski/416252/ft2_4FGL_J0940.9-1335_daily_bin682.fits outfile=/scratch/kocevski/416252/cmap_416102401_416361601_4FGL_J0940.9-1335_daily_bin682.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/416252/ft1_filtered_4FGL_J0940.9-1335_daily_bin682.fits scfile=/scratch/kocevski/416252/ft2_4FGL_J0940.9-1335_daily_bin682.fits outfile=/scratch/kocevski/416252/cmap_HighResolution_416102401_416361601_4FGL_J0940.9-1335_daily_bin682.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=145.244 yref=-13.5891 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/416252/ft1_filtered_4FGL_J0940.9-1335_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/416252/ft2_4FGL_J0940.9-1335_daily_bin682.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/416252/Model_4FGL_J0940.9-1335_daily_bin682.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/416252/ft1_filtered_4FGL_J0940.9-1335_daily_bin682.fits.....................!
real 49.45
user 48.11
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0693       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13078E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.678       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2540       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.408       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.223       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12040E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.2539       1.0000         .10000E-03   10000.    
    12 'norm      '    4.2172       1.0000         .10000E-03   10000.    
    13 'norm      '    .11773E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .65038       1.0000         .10000E-03   10000.    
    15 'Prefactor '    51.147       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .70477       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0593       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=   4198.957     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1747 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0765        3.8401       -.60666E-07   -.43996E-03
   2  Prefactor     .10275E-03    12.500        .22924E-05** at limit **
   3  Prefactor     17.682        9.6865        .58244E-07   -.99951E-04
   4  Prefactor     2.3457        67.529       -.12098E-04   -.98744E-04
   5  Prefactor     .10000E-03    35.772        .66352E-07** at limit **
   6  Prefactor     32.324        50.717        .28145E-05    .24812E-04
   7  Prefactor     15.259        55.718       -.83923E-06    .12331E-04
   8  Prefactor     .10000E-03    26.344        .35780E-06** at limit **
   9  Prefactor     .10000E-03    11.638        .13918E-06** at limit **
  10  norm          .10000E-03    4.7325        .40582E-06** at limit **
  11  norm          6.2528        5.5840        .14303E-06    .67372E-04
  12  norm          4.2165        2.7701        .13801E-07    .90335E-05
  13  norm          .10000E-03    14.753        .18944E-06** at limit **
  14  norm          .64963        2.3561        .75127E-06    .22134E-03
  15  Prefactor     51.173        49.646       -.17229E-06    .21813E-04
  16  Prefactor     .10000E-03    7.6790       -.69665E-09** at limit **
  17  Normalizat    .70377        .29411        .56634E-05   -.97820E-04
  18  Prefactor     1.0599        .16497       -.26695E-05   -.95531E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.07646
  Prefactor  = 0.000102753
  Prefactor  = 17.6823
  Prefactor  = 2.3457
  Prefactor  = 0.0001
  Prefactor  = 32.3235
  Prefactor  = 15.2594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.25284
  norm       = 4.2165
  norm       = 0.0001
  norm       = 0.649632
  Prefactor  = 51.1732
  Prefactor  = 0.0001
  Normalizat = 0.703771
  Prefactor  = 1.05989
 **********
 **   18 **HESSE 
 **********

 FCN=   4198.957     FROM HESSE     STATUS=OK           248 CALLS     1995 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0765        3.7696        .10456E-03   -1.5257    
   2  Prefactor     .10275E-03    156.60        .37553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.682        9.6740        .95259E-04   -1.4867    
   4  Prefactor     2.3457        69.163        .27366E-03   -1.5402    
   5  Prefactor     .10000E-03    35.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.324        51.468        .70386E-04   -1.4570    
   7  Prefactor     15.259        55.739        .10265E-03   -1.4927    
   8  Prefactor     .10000E-03    26.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.7599        .13764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.2528        5.5706        .13703E-03   -1.5208    
  12  norm          4.2165        2.7679        .84316E-04   -1.5297    
  13  norm          .10000E-03    14.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .64963        2.3630        .17312E-03   -1.5547    
  15  Prefactor     51.173        49.647        .28038E-03   -1.4276    
  16  Prefactor     .10000E-03    7.6910        .17538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .70377        .31166        .34329E-03   -1.0374    
  18  Prefactor     1.0599        .17745        .17917E-03   -.90759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66151e-08
Minuit parameter uncertainties:
  1  3.76976
  2  0.0416375
  3  9.6749
  4  25.5063
  5  2.57349e-05
  6  51.5387
  7  55.9298
  8  4.48081e-05
  9  3.58141e-06
  10  1.69223e-05
  11  5.57103
  12  2.76797
  13  7.48335e-06
  14  2.36338
  15  49.6869
  16  4.10756e-06
  17  0.312445
  18  0.177549
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.000e-04  1.692e-05  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.060e+00  1.775e-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.038e-01  3.124e-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: 8.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/416252/likelihoodResults_416102401_416361601_4FGL_J0940.9-1335_daily_bin682.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): 102
logL (Free Index) = 4198.95842448
delta logL = -0.000999766516543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4198.9574247
delta logL = 1.26992745209e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2914       1.0000          .0000       5.0000    
     3 'Normalizat'    .70378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0599       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=   4198.957     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      237 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    996.69        .13807E-02** at limit **
   2  alpha         2.1011        3.0657        .16534       -.17465E-07
   3  Normalizat    .70377        .14724        .34328E-03    .34111E-05
   4  Prefactor     1.0599        .93407E-01    .17917E-03    .99619E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.10106
  Normalizat = 0.703773
  Prefactor  = 1.05989
 **********
 **   18 **HESSE 
 **********

 FCN=   4198.957     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9418        .27615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1011        3.6750        .66134E-02   -.16026    
   3  Normalizat    .70377        .26951        .13731E-04   -1.0374    
   4  Prefactor     1.0599        .17112        .71668E-05   -.90759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96017e-11
Minuit parameter uncertainties:
  1  6.75346e-05
  2  226.661
  3  0.270016
  4  0.171209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/416252': 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) = 4198.95742433
delta logL = 3.84128725273e-07

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.000e-04  6.753e-05  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  2.101e+00  2.267e+02  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.060e+00  1.712e-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.038e-01  2.700e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/416252/cmap_HighResolution_416102401_416361601_4FGL_J0940.9-1335_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-05', job_status='DONE', photon_flux_upper_limit='8.72e-08', time_completed='2021-08-31 21:51:37.038000', job_id='416252', GAL2='1.06', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630471897.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='682' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 21:51:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 416252: <4FGL_J0940.9-1335_daily_bin682> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin682 145.244 -13.5891 416102401 416361601 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 :                                   480.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            651 sec.

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

