/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 29 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).

nnumber of points = 7408
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0940.9-1335_daily_bin1632
RA = 145.244, Dec = -13.5891
tmin = 662342401, tmax = 662601601
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='620021', job_status='RUN', time_executed='2021-12-31 00:11:05.899071', time_epoch_executed='1640938265.9' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='1632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620021

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620021/ft1_4FGL_J0940.9-1335_daily_bin1632.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620021/ft2_4FGL_J0940.9-1335_daily_bin1632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620021/ft1_4FGL_J0940.9-1335_daily_bin1632.fits outfile=/scratch/kocevski/620021/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin1632.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=662342401.0 tmax=662601601.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 21.11
user 2.68
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/620021/ft1_filtered_4FGL_J0940.9-1335_daily_bin1632.fits" evtable="EVENTS" scfile=/scratch/kocevski/620021/ft2_4FGL_J0940.9-1335_daily_bin1632.fits sctable="SC_DATA" outfile=/scratch/kocevski/620021/ltcube_662342401_662601601_4FGL_J0940.9-1335_daily_bin1632.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/620021/ft2_4FGL_J0940.9-1335_daily_bin1632.fits
.....................!
real 22.72
user 11.96
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620021/ft1_filtered_4FGL_J0940.9-1335_daily_bin1632.fits evtable="EVENTS" scfile=/scratch/kocevski/620021/ft2_4FGL_J0940.9-1335_daily_bin1632.fits sctable="SC_DATA" expcube=/scratch/kocevski/620021/ltcube_662342401_662601601_4FGL_J0940.9-1335_daily_bin1632.fits outfile=/scratch/kocevski/620021/expmap_662342401_662601601_4FGL_J0940.9-1335_daily_bin1632.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/620021/ltcube_662342401_662601601_4FGL_J0940.9-1335_daily_bin1632.fits
.....................!
real 204.16
user 185.43
sys 4.65

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/620021/ft1_filtered_4FGL_J0940.9-1335_daily_bin1632.fits scfile=/scratch/kocevski/620021/ft2_4FGL_J0940.9-1335_daily_bin1632.fits outfile=/scratch/kocevski/620021/cmap_662342401_662601601_4FGL_J0940.9-1335_daily_bin1632.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/620021/ft1_filtered_4FGL_J0940.9-1335_daily_bin1632.fits scfile=/scratch/kocevski/620021/ft2_4FGL_J0940.9-1335_daily_bin1632.fits outfile=/scratch/kocevski/620021/cmap_HighResolution_662342401_662601601_4FGL_J0940.9-1335_daily_bin1632.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/620021/ft1_filtered_4FGL_J0940.9-1335_daily_bin1632.fits evtable="EVENTS" scfile=/scratch/kocevski/620021/ft2_4FGL_J0940.9-1335_daily_bin1632.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/620021/Model_4FGL_J0940.9-1335_daily_bin1632.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/620021/ft1_filtered_4FGL_J0940.9-1335_daily_bin1632.fits.....................!
real 47.58
user 46.26
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5553       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.533       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.809       1.0000         .10000E-03   10000.    
    10 'norm      '    11.345       1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .13741E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10391E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0643       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .89332       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=   4064.672     FROM MIGRAD    STATUS=CONVERGED    363 CALLS     1507 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4750       -.26472E-07** at limit **
   2  Prefactor     .10000E-03    5.4845        .11208E-07** at limit **
   3  Prefactor     6.5542        13.437       -.29916E-05   -.60388E-04
   4  Prefactor     .10000E-03    18.661        .21232E-05** at limit **
   5  Prefactor     19.394        39.752       -.15758E-03    .60500E-04
   6  Prefactor     .10000E-03    48.588       -.37471E-04** at limit **
   7  Prefactor     .10001E-03    82.966        .83412E-04** at limit **
   8  Prefactor     .10000E-03    18.705       -.12303E-05** at limit **
   9  Prefactor     14.807        15.405        .25670E-05    .87872E-04
  10  norm          11.343        10.054       -.17021E-05   -.88266E-04
  11  norm          .10000E-03    2.5585       -.13813E-06** at limit **
  12  norm          .10000E-03    1.8935       -.88719E-06** at limit **
  13  norm          .10000E-03    4.5505       -.14592E-06** at limit **
  14  norm          .10000E-03    .93666       -.80114E-06** at limit **
  15  Prefactor     .10000E-03    52.627        .14435E-04** at limit **
  16  Prefactor     .10000E-03    9.8458       -.44338E-06** at limit **
  17  Normalizat    1.0644        .24624        .14202E-04   -.10843E-04
  18  Prefactor     .89326        .14480        .36069E-05    .33540E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.55422
  Prefactor  = 0.0001
  Prefactor  = 19.3935
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 14.8074
  norm       = 11.3431
  norm       = 0.0001
  norm       = 0.000100003
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.06445
  Prefactor  = 0.893261
 **********
 **   18 **HESSE 
 **********

 FCN=   4064.672     FROM HESSE     STATUS=OK           240 CALLS     1747 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4760        .75616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4868        .14583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5542        13.431        .15674E-03   -1.5196    
   4  Prefactor     .10000E-03    18.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.394        39.807        .90624E-04   -1.4827    
   6  Prefactor     .10000E-03    48.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    83.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.807        15.406        .10408E-03   -1.4938    
  10  norm          11.343        10.057        .11894E-03   -1.5034    
  11  norm          .10000E-03    2.5684        .99583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.7952        .17048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.5553        .13282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.4226        .11934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    52.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.8939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0644        .29159        .29140E-03   -.90902    
  18  Prefactor     .89326        .17246        .18656E-03   -.96377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18491e-09
Minuit parameter uncertainties:
  1  2.71793e-06
  2  1.23911e-05
  3  13.4368
  4  7.76913e-05
  5  39.862
  6  0.000205951
  7  0.00136623
  8  1.74758e-05
  9  15.4098
  10  10.0587
  11  3.03028e-05
  12  0.000226185
  13  3.19772e-05
  14  0.000120426
  15  0.000297793
  16  0.000153751
  17  0.292028
  18  0.17256
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.134e+01  1.006e+01  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:  8.933e-01  1.726e-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:  1.064e+00  2.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.93
Ra Dec: 145.244 -13.589
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 4.90e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.71e-05

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

Saving results to:
/scratch/kocevski/620021/likelihoodResults_662342401_662601601_4FGL_J0940.9-1335_daily_bin1632.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) = 4064.47964352
delta logL = 0.192512553197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4064.47028371
delta logL = 0.201872361639

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6050       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8403       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0358       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90480       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=   4064.470     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      289 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6071        10.603        .13665E-03   -.17250E-02
   2  alpha         2.8406        .96432        .14142E-01   -.17888E-03
   3  Normalizat    1.0358        .29521        .29484E-03    .33070E-03
   4  Prefactor     .90478        .17367        .18547E-03    .69699E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.60711
  alpha      = 2.84064
  Normalizat = 1.03578
  Prefactor  = 0.904783
 **********
 **   18 **HESSE 
 **********

 FCN=   4064.470     FROM HESSE     STATUS=OK            23 CALLS      312 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6071        9.9259        .54660E-05   -1.5121    
   2  alpha         2.8406        .90504        .56569E-03    .13668    
   3  Normalizat    1.0358        .29522        .58968E-04   -.91841    
   4  Prefactor     .90478        .17364        .37094E-04   -.95974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12942e-09
Minuit parameter uncertainties:
  1  9.92781
  2  0.926495
  3  0.295692
  4  0.173743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620021': 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) = 4064.47028337
delta logL = 0.201872701167

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  9.048e-01  1.737e-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:  1.036e+00  2.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.35
Ra Dec: 145.244 -13.589
Photon Index (Free Index): 2.84 +/- 0.93
Photon Flux (Free Index): 7.98e-08 +/- 7.18e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.51e-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/620021/cmap_HighResolution_662342401_662601601_4FGL_J0940.9-1335_daily_bin1632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-05', comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='1.83e-05', photon_flux_error='4.90e-08', dlogl='2.02e-01', energy_flux='1.93e-05', photon_flux2='7.98e-08', job_status='DONE', time_completed='2021-12-31 00:20:09.384745', photon_index_error2='0.93', photon_index2='2.84', ts='1.93', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.51e-05', EG='1.06', time_epoch_completed='1640938809.38', return_code='0', job_id='620021', GAL2='0.90', EG2='1.04', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='7.18e-08', ts2='2.35', photon_index='2.30' WHERE bin_id='1632' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 31 00:20:09 PST 2021

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 620159: <4FGL_J0940.9-1335_daily_bin1632> in cluster <slac> Done

Job <4FGL_J0940.9-1335_daily_bin1632> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Dec 31 00:06:39 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 31 00:07:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 31 00:07:06 2021
Terminated at Fri Dec 31 00:19:46 2021
Results reported at Fri Dec 31 00:19:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin1632 145.244 -13.5891 662342401 662601601 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 :                                   474.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             220.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            787 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 620021: <4FGL_J0940.9-1335_daily_bin1632> in cluster <slac> Done

Job <4FGL_J0940.9-1335_daily_bin1632> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Fri Dec 31 00:06:32 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 31 00:06:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 31 00:06:54 2021
Terminated at Fri Dec 31 00:20:09 2021
Results reported at Fri Dec 31 00:20:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin1632 145.244 -13.5891 662342401 662601601 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 :                                   450.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            817 sec.

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

