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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin1073
RA = 145.244, Dec = -13.5891
tmin = 517449601, tmax = 517708801
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='418058', job_status='RUN', time_executed='2021-08-31 21:49:39.977608', time_epoch_executed='1630471779.98' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='1073'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/418058

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/418058/ft1_4FGL_J0940.9-1335_daily_bin1073.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/418058/ft2_4FGL_J0940.9-1335_daily_bin1073.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/418058/ft1_4FGL_J0940.9-1335_daily_bin1073.fits outfile=/scratch/kocevski/418058/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin1073.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=517449601.0 tmax=517708801.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.66
user 5.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/418058/ft1_filtered_4FGL_J0940.9-1335_daily_bin1073.fits" evtable="EVENTS" scfile=/scratch/kocevski/418058/ft2_4FGL_J0940.9-1335_daily_bin1073.fits sctable="SC_DATA" outfile=/scratch/kocevski/418058/ltcube_517449601_517708801_4FGL_J0940.9-1335_daily_bin1073.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/418058/ft2_4FGL_J0940.9-1335_daily_bin1073.fits
.....................!
real 12.17
user 11.66
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/418058/ft1_filtered_4FGL_J0940.9-1335_daily_bin1073.fits evtable="EVENTS" scfile=/scratch/kocevski/418058/ft2_4FGL_J0940.9-1335_daily_bin1073.fits sctable="SC_DATA" expcube=/scratch/kocevski/418058/ltcube_517449601_517708801_4FGL_J0940.9-1335_daily_bin1073.fits outfile=/scratch/kocevski/418058/expmap_517449601_517708801_4FGL_J0940.9-1335_daily_bin1073.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/418058/ltcube_517449601_517708801_4FGL_J0940.9-1335_daily_bin1073.fits
.....................!
real 191.16
user 185.54
sys 3.98

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/418058/ft1_filtered_4FGL_J0940.9-1335_daily_bin1073.fits scfile=/scratch/kocevski/418058/ft2_4FGL_J0940.9-1335_daily_bin1073.fits outfile=/scratch/kocevski/418058/cmap_517449601_517708801_4FGL_J0940.9-1335_daily_bin1073.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/418058/ft1_filtered_4FGL_J0940.9-1335_daily_bin1073.fits scfile=/scratch/kocevski/418058/ft2_4FGL_J0940.9-1335_daily_bin1073.fits outfile=/scratch/kocevski/418058/cmap_HighResolution_517449601_517708801_4FGL_J0940.9-1335_daily_bin1073.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/418058/ft1_filtered_4FGL_J0940.9-1335_daily_bin1073.fits evtable="EVENTS" scfile=/scratch/kocevski/418058/ft2_4FGL_J0940.9-1335_daily_bin1073.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/418058/Model_4FGL_J0940.9-1335_daily_bin1073.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/418058/ft1_filtered_4FGL_J0940.9-1335_daily_bin1073.fits.....................!
real 60.75
user 59.04
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16965E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .54873       1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.084       1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.332       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10902E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    58.742       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5830       1.0000         .10000E-03   10000.    
    10 'norm      '    .11554E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.5579       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2807       1.0000         .10000E-03   10000.    
    13 'norm      '    13.031       1.0000         .10000E-03   10000.    
    14 'norm      '    .35460       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .79358       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0743       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=   5526.180     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     2010 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10010E-03    48.809        .22277E-02** at limit **
   2  Prefactor     .10000E-03    7.2493        .18142E-02** at limit **
   3  Prefactor     .10000E-03    5.4734        .16897E-02** at limit **
   4  Prefactor     .52256        224.82        .60431E-02    .27260E-04
   5  Prefactor     55.043        48.502        .54046E-04   -.93901E-04
   6  Prefactor     48.420        54.687        .28840E-03    .22888E-03
   7  Prefactor     .10000E-03    35.437        .18142E-02** at limit **
   8  Prefactor     58.780        40.843        .26173E-03    .15073E-04
   9  Prefactor     4.5802        16.588        .18803E-03   -.34827E-04
  10  norm          .10000E-03    6.5524        .18142E-02** at limit **
  11  norm          4.5580        3.7340        .12598E-03   -.80226E-04
  12  norm          3.2802        2.8120        .11057E-03   -.15371E-03
  13  norm          13.022        13.050        .11096E-03   -.78686E-04
  14  norm          .35453        1.1085        .13288E-03    .16923E-03
  15  Prefactor     .10000E-03    18.958        .18142E-02** at limit **
  16  Prefactor     .10000E-03    4.2833        .14980E-02** at limit **
  17  Normalizat    .79372        .26365        .33287E-03   -.32138E-03
  18  Prefactor     1.0743        .16278        .18325E-03   -.28798E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.522564
  Prefactor  = 55.0425
  Prefactor  = 48.4203
  Prefactor  = 0.0001
  Prefactor  = 58.7796
  Prefactor  = 4.58016
  norm       = 0.0001
  norm       = 4.55797
  norm       = 3.28021
  norm       = 13.0216
  norm       = 0.354528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.793724
  Prefactor  = 1.07426
 **********
 **   18 **HESSE 
 **********

 FCN=   5526.180     FROM HESSE     STATUS=OK           228 CALLS     2238 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10010E-03    50.599        .89109E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.2499        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4754        .33795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .52256        217.70        .24172E-03   -1.5563    
   5  Prefactor     55.043        48.491        .10809E-04   -1.4223    
   6  Prefactor     48.420        53.254        .11536E-04   -1.4315    
   7  Prefactor     .10000E-03    35.444        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     58.780        40.836        .10469E-04   -1.4173    
   9  Prefactor     4.5802        16.582        .75211E-05   -1.5280    
  10  norm          .10000E-03    6.5549        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.5580        3.7339        .50392E-05   -1.5281    
  12  norm          3.2802        2.8117        .44230E-05   -1.5346    
  13  norm          13.022        13.047        .44385E-05   -1.4986    
  14  norm          .35453        1.1081        .53151E-05   -1.5589    
  15  Prefactor     .10000E-03    18.958        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.2840        .29961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .79372        .26320        .13315E-04   -1.0030    
  18  Prefactor     1.0743        .16283        .36650E-04   -.90293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96063e-09
Minuit parameter uncertainties:
  1  0.00456392
  2  4.13194e-05
  3  3.81067e-05
  4  21.4085
  5  48.5262
  6  53.3067
  7  0.000148417
  8  40.8556
  9  16.5986
  10  0.000100108
  11  3.73411
  12  2.81176
  13  13.0498
  14  1.1082
  15  2.67832e-05
  16  2.27371e-05
  17  0.26362
  18  0.162909
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.000e-04  1.001e-04  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.074e+00  1.629e-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.937e-01  2.636e-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.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/418058/likelihoodResults_517449601_517708801_4FGL_J0940.9-1335_daily_bin1073.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) = 5526.18073206
delta logL = -0.000727465127056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5526.12057103
delta logL = 0.0594335645246

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10059       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .76662       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0847       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=   5526.121     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      332 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10052        11.588        .14069E-01    .20417E-02
   2  alpha         5.0000        4.4190        .46267    ** at limit **
   3  Normalizat    .76656        .60417E-01    .76395E-01   -.10623E-05
   4  Prefactor     1.0847        .34855E-01    .38201E-01   -.14781E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.100524
  alpha      = 5
  Normalizat = 0.766558
  Prefactor  = 1.08471
 **********
 **   18 **HESSE 
 **********

 FCN=   5526.121     FROM HESSE     STATUS=OK            35 CALLS      367 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10052        .33910        .57026E-03   -1.5645    
   2  alpha         5.0000        4.9872        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .76656        .26641        .33817E-03   -1.0132    
   4  Prefactor     1.0847        .16429        .18244E-03   -.89957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09192e-08
Minuit parameter uncertainties:
  1  0.339105
  2  5.77974e-06
  3  0.266863
  4  0.164365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/418058': 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) = 5526.12057073
delta logL = 0.0594338702322

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.005e-01  3.391e-01  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  5.000e+00  5.780e-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:  1.085e+00  1.644e-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.666e-01  2.669e-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/418058/cmap_HighResolution_517449601_517708801_4FGL_J0940.9-1335_daily_bin1073.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-05', job_status='DONE', photon_flux_upper_limit='8.75e-08', time_completed='2021-08-31 21:58:58.374427', job_id='418058', GAL2='1.08', fit_tolerance='1e-08', EG2='0.77', EG='0.79', time_epoch_completed='1630472338.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='5.94e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1073' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 21:58:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 418058: <4FGL_J0940.9-1335_daily_bin1073> in cluster <slac> Done

Job <4FGL_J0940.9-1335_daily_bin1073> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 21:46:00 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 21:46:01 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:46:01 2021
Terminated at Tue Aug 31 21:58:59 2021
Results reported at Tue Aug 31 21:58:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin1073 145.244 -13.5891 517449601 517708801 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 :                                   551.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

