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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin1014
RA = 145.244, Dec = -13.5891
tmin = 502156801, tmax = 502416001
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='417967', job_status='RUN', time_executed='2021-08-31 21:48:36.504710', time_epoch_executed='1630471716.5' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/417967

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/417967/ft1_4FGL_J0940.9-1335_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/417967/ft2_4FGL_J0940.9-1335_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/417967/ft1_4FGL_J0940.9-1335_daily_bin1014.fits outfile=/scratch/kocevski/417967/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin1014.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=502156801.0 tmax=502416001.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 4.11
user 3.82
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/417967/ft2_4FGL_J0940.9-1335_daily_bin1014.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/417967/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin1014.fits evtable="EVENTS" outfile="/scratch/kocevski/417967/ft1_filtered_4FGL_J0940.9-1335_daily_bin1014.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.61
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/417967/ft1_filtered_4FGL_J0940.9-1335_daily_bin1014.fits" evtable="EVENTS" scfile=/scratch/kocevski/417967/ft2_4FGL_J0940.9-1335_daily_bin1014.fits sctable="SC_DATA" outfile=/scratch/kocevski/417967/ltcube_502156801_502416001_4FGL_J0940.9-1335_daily_bin1014.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/417967/ft2_4FGL_J0940.9-1335_daily_bin1014.fits
.....................!
real 11.92
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/417967/ft1_filtered_4FGL_J0940.9-1335_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/417967/ft2_4FGL_J0940.9-1335_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/417967/ltcube_502156801_502416001_4FGL_J0940.9-1335_daily_bin1014.fits outfile=/scratch/kocevski/417967/expmap_502156801_502416001_4FGL_J0940.9-1335_daily_bin1014.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/417967/ltcube_502156801_502416001_4FGL_J0940.9-1335_daily_bin1014.fits
.....................!
real 189.97
user 185.04
sys 4.43

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/417967/ft1_filtered_4FGL_J0940.9-1335_daily_bin1014.fits scfile=/scratch/kocevski/417967/ft2_4FGL_J0940.9-1335_daily_bin1014.fits outfile=/scratch/kocevski/417967/cmap_502156801_502416001_4FGL_J0940.9-1335_daily_bin1014.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/417967/ft1_filtered_4FGL_J0940.9-1335_daily_bin1014.fits scfile=/scratch/kocevski/417967/ft2_4FGL_J0940.9-1335_daily_bin1014.fits outfile=/scratch/kocevski/417967/cmap_HighResolution_502156801_502416001_4FGL_J0940.9-1335_daily_bin1014.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39448       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3211       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.712       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.663       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.5584       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3791       1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2494       1.0000         .10000E-03   10000.    
    14 'norm      '    3.3292       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.312       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .58760       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2811       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=   6123.024     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     1550 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37857        2.2223        .52144E-06   -.68012E-03
   2  Prefactor     .10000E-03    6.4280       -.79946E-06** at limit **
   3  Prefactor     5.3221        5.8049       -.25633E-05    .36073E-03
   4  Prefactor     18.716        16.153       -.15324E-06    .11831E-04
   5  Prefactor     .10000E-03    76.684       -.29203E-05** at limit **
   6  Prefactor     .10000E-03    52.486        .78551E-06** at limit **
   7  Prefactor     .10000E-03    8.9648       -.23000E-05** at limit **
   8  Prefactor     13.663        22.262       -.41220E-07    .11477E-05
   9  Prefactor     .10000E-03    9.6858        .76238E-06** at limit **
  10  norm          6.5580        7.6676       -.16623E-08   -.10929E-03
  11  norm          1.3790        3.0010       -.79456E-06   -.71125E-03
  12  norm          .10000E-03    1.2369       -.45666E-07** at limit **
  13  norm          3.2482        10.486       -.32329E-05   -.82538E-04
  14  norm          3.3291        1.7982        .15869E-07   -.19358E-03
  15  Prefactor     .10000E-03    12.483       -.95188E-06** at limit **
  16  Prefactor     16.312        11.919       -.73515E-06    .61214E-04
  17  Normalizat    .58760        .21714        .39595E-06    .13672E-04
  18  Prefactor     1.2811        .13949       -.27364E-06    .93810E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.378575
  Prefactor  = 0.0001
  Prefactor  = 5.32208
  Prefactor  = 18.7164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6627
  Prefactor  = 0.0001
  norm       = 6.55803
  norm       = 1.37896
  norm       = 0.0001
  norm       = 3.24824
  norm       = 3.32907
  Prefactor  = 0.0001
  Prefactor  = 16.3117
  Normalizat = 0.587596
  Prefactor  = 1.28113
 **********
 **   18 **HESSE 
 **********

 FCN=   6123.024     FROM HESSE     STATUS=OK           252 CALLS     1802 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37857        11.570        .22066E-02   -1.5585    
   2  Prefactor     .10000E-03    6.4295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3221        5.6305        .17423E-03   -1.5247    
   4  Prefactor     18.716        16.183        .92589E-04   -1.4842    
   5  Prefactor     .10000E-03    77.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    52.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.8994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.663        22.242        .10836E-03   -1.4969    
   9  Prefactor     .10000E-03    9.7195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.5580        7.6563        .15670E-03   -1.5196    
  11  norm          1.3790        3.0915        .20099E-03   -1.5473    
  12  norm          .10000E-03    3.7464        .16869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2482        10.712        .22468E-03   -1.5347    
  14  norm          3.3291        1.7946        .73766E-04   -1.5343    
  15  Prefactor     .10000E-03    12.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.312        11.920        .99166E-04   -1.4900    
  17  Normalizat    .58760        .23670        .37885E-03   -1.0851    
  18  Prefactor     1.2811        .15434        .17571E-03   -.83870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49653e-09
Minuit parameter uncertainties:
  1  4.18604
  2  1.84763e-05
  3  5.6311
  4  16.1868
  5  0.000296449
  6  7.05345e-06
  7  6.41205e-05
  8  22.256
  9  1.39577e-05
  10  7.65746
  11  3.09181
  12  7.51934e-05
  13  10.7188
  14  1.79465
  15  3.00986e-05
  16  11.9216
  17  0.237106
  18  0.154391
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  6.558e+00  7.657e+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:  1.281e+00  1.544e-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:  5.876e-01  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 145.244 -13.589
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.20e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.30e-05

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

Saving results to:
/scratch/kocevski/417967/likelihoodResults_502156801_502416001_4FGL_J0940.9-1335_daily_bin1014.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) = 6121.95907839
delta logL = 1.06489393348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6121.95775404
delta logL = 1.06621828908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1235       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6566       1.0000          .0000       5.0000    
     3 'Normalizat'    .51472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3087       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=   6121.958     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      270 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1216        41.779        .57352E-02    .43236E-03
   2  alpha         3.6565        4.3230        .33791        .54150E-04
   3  Normalizat    .51479        .75446E-01    .90939E-01    .42639E-04
   4  Prefactor     1.3087        .49220E-01    .32460E-01   -.67878E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.12165
  alpha      = 3.65645
  Normalizat = 0.514794
  Prefactor  = 1.3087
 **********
 **   18 **HESSE 
 **********

 FCN=   6121.958     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1216        6.7746        .86399E-04   -1.5355    
   2  alpha         3.6565        1.3707        .14294E-01    .48090    
   3  Normalizat    .51479        .23539        .40294E-03   -1.1173    
   4  Prefactor     1.3087        .15431        .17398E-03   -.83049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17155e-11
Minuit parameter uncertainties:
  1  6.77629
  2  1.47782
  3  0.235848
  4  0.154368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/417967': 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) = 6121.95775312
delta logL = 1.06621921108

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  3.122e+00  6.776e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  3.656e+00  1.478e+00  0.000e+00  5.000e+00 ( 1.000e+00)
249         beta:  1.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.309e+00  1.544e-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:  5.148e-01  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.36
Ra Dec: 145.244 -13.589
Photon Index (Free Index): 3.66 +/- 1.48
Photon Flux (Free Index): 9.03e-08 +/- 6.09e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.08e-05

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/417967/cmap_HighResolution_502156801_502416001_4FGL_J0940.9-1335_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-05', comment='SUCCESS', photon_flux='3.20e-08', energy_flux2='1.52e-05', photon_flux_error='3.73e-08', dlogl='1.07e+00', energy_flux='1.12e-05', photon_flux2='9.03e-08', job_status='DONE', time_completed='2021-08-31 21:57:35.676204', photon_index_error2='1.48', photon_index2='3.66', ts='1.07', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.08e-05', EG='0.59', time_epoch_completed='1630472255.68', return_code='0', job_id='417967', GAL2='1.31', EG2='0.51', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='6.09e-08', ts2='3.36', photon_index='2.30' WHERE bin_id='1014' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 21:57:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 417967: <4FGL_J0940.9-1335_daily_bin1014> in cluster <slac> Done

Job <4FGL_J0940.9-1335_daily_bin1014> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 21:45:49 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 21:45:51 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:51 2021
Terminated at Tue Aug 31 21:57:36 2021
Results reported at Tue Aug 31 21:57:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin1014 145.244 -13.5891 502156801 502416001 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 :                                   535.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            707 sec.

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

