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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin1239
RA = 145.244, Dec = -13.5891
tmin = 560476801, tmax = 560736001
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='419586', job_status='RUN', time_executed='2021-08-31 21:51:43.024934', time_epoch_executed='1630471903.02' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='1239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/419586

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/419586/ft1_4FGL_J0940.9-1335_daily_bin1239.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/419586/ft2_4FGL_J0940.9-1335_daily_bin1239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/419586/ft1_4FGL_J0940.9-1335_daily_bin1239.fits outfile=/scratch/kocevski/419586/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin1239.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=560476801.0 tmax=560736001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.75
user 3.51
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/419586/ft1_filtered_4FGL_J0940.9-1335_daily_bin1239.fits" evtable="EVENTS" scfile=/scratch/kocevski/419586/ft2_4FGL_J0940.9-1335_daily_bin1239.fits sctable="SC_DATA" outfile=/scratch/kocevski/419586/ltcube_560476801_560736001_4FGL_J0940.9-1335_daily_bin1239.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/419586/ft2_4FGL_J0940.9-1335_daily_bin1239.fits
.....................!
real 12.14
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/419586/ft1_filtered_4FGL_J0940.9-1335_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/419586/ft2_4FGL_J0940.9-1335_daily_bin1239.fits sctable="SC_DATA" expcube=/scratch/kocevski/419586/ltcube_560476801_560736001_4FGL_J0940.9-1335_daily_bin1239.fits outfile=/scratch/kocevski/419586/expmap_560476801_560736001_4FGL_J0940.9-1335_daily_bin1239.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/419586/ltcube_560476801_560736001_4FGL_J0940.9-1335_daily_bin1239.fits
.....................!
real 193.11
user 187.60
sys 4.86

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/419586/ft1_filtered_4FGL_J0940.9-1335_daily_bin1239.fits scfile=/scratch/kocevski/419586/ft2_4FGL_J0940.9-1335_daily_bin1239.fits outfile=/scratch/kocevski/419586/cmap_560476801_560736001_4FGL_J0940.9-1335_daily_bin1239.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/419586/ft1_filtered_4FGL_J0940.9-1335_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/419586/ft2_4FGL_J0940.9-1335_daily_bin1239.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/419586/Model_4FGL_J0940.9-1335_daily_bin1239.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/419586/ft1_filtered_4FGL_J0940.9-1335_daily_bin1239.fits.....................!
real 97.99
user 95.57
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4211       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1525       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.7320       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .36601       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.666       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0130       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3634       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .78631       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=   9915.609     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1758 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1594       -.20609E-07** at limit **
   2  Prefactor     .10000E-03    11.465        .16469E-05** at limit **
   3  Prefactor     .10000E-03    1.5839       -.34450E-09** at limit **
   4  Prefactor     7.4225        13.924        .21159E-06   -.22036E-03
   5  Prefactor     .10000E-03    31.129       -.16314E-06** at limit **
   6  Prefactor     .10000E-03    14.418       -.80213E-06** at limit **
   7  Prefactor     .10000E-03    11.512       -.12463E-05** at limit **
   8  Prefactor     2.1533        7.9147        .88258E-06   -.52829E-03
   9  Prefactor     .10000E-03    19.188        .48182E-06** at limit **
  10  norm          5.7323        4.6546        .12705E-07   -.99718E-03
  11  norm          .10000E-03    2.6950        .81138E-08** at limit **
  12  norm          .10000E-03    .55036        .55988E-08** at limit **
  13  norm          .10000E-03    3.6264       -.78243E-08** at limit **
  14  norm          .36589        .68682        .26461E-07   -.31947E-03
  15  Prefactor     34.660        32.665       -.62616E-05   -.55487E-04
  16  Prefactor     4.0130        3.8889        .88109E-06    .10214E-03
  17  Normalizat    1.3632        .15458        .25731E-06   -.54519E-04
  18  Prefactor     .78648        .93957E-01   -.10091E-06   -.69193E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.42246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15333
  Prefactor  = 0.0001
  norm       = 5.73225
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.365895
  Prefactor  = 34.6597
  Prefactor  = 4.01303
  Normalizat = 1.36315
  Prefactor  = 0.786484
 **********
 **   18 **HESSE 
 **********

 FCN=   9915.609     FROM HESSE     STATUS=OK           244 CALLS     2002 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2024        .20832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5879        .12238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4225        14.391        .73613E-03   -1.5163    
   5  Prefactor     .10000E-03    31.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.1533        21.156        .14041E-02   -1.5414    
   9  Prefactor     .10000E-03    19.968        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.7323        4.7273        .83883E-03   -1.5229    
  11  norm          .10000E-03    2.7998        .31907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .55838        .72121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.6586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .36589        .57901        .10911E-02   -1.5587    
  15  Prefactor     34.660        32.784        .68062E-04   -1.4530    
  16  Prefactor     4.0130        3.8978        .18871E-03   -1.5307    
  17  Normalizat    1.3632        .18368        .25334E-03   -.81700    
  18  Prefactor     .78648        .11179        .19966E-03   -1.0023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86225e-09
Minuit parameter uncertainties:
  1  6.50325e-06
  2  1.22307e-05
  3  3.70143e-07
  4  14.3981
  5  1.37878e-05
  6  9.90756e-06
  7  1.06151e-05
  8  13.5051
  9  1.62879e-05
  10  4.72758
  11  2.41916e-07
  12  3.42071e-07
  13  5.89806e-07
  14  0.579015
  15  32.8007
  16  3.89804
  17  0.183771
  18  0.111824
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  5.732e+00  4.728e+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:  7.865e-01  1.118e-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.363e+00  1.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.56
Ra Dec: 145.244 -13.589
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.79e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 9.77e-06 +/- 8.06e-06

TS (Fixed Index): 2.56
Ra Dec: 145.244 -13.589
Photon Flux Upper Limit: 8.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/419586/likelihoodResults_560476801_560736001_4FGL_J0940.9-1335_daily_bin1239.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) = 9915.60559244
delta logL = 0.00314467335375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9915.60516098
delta logL = 0.00357613580309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6131       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3717       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78742       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=   9915.605     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      236 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6136        4.9524        .16956E-03   -.15888E-02
   2  alpha         2.3720        .86014        .23984E-01   -.11865E-03
   3  Normalizat    1.3608        .18170        .25353E-03    .23522E-03
   4  Prefactor     .78743        .11156        .19956E-03    .41599E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.61361
  alpha      = 2.37201
  Normalizat = 1.36078
  Prefactor  = 0.787431
 **********
 **   18 **HESSE 
 **********

 FCN=   9915.605     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6136        4.8265        .67824E-05   -1.5234    
   2  alpha         2.3720        .83854        .95937E-03   -.51219E-01
   3  Normalizat    1.3608        .18167        .50706E-04   -.81770    
   4  Prefactor     .78743        .11157        .39911E-04   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01647e-09
Minuit parameter uncertainties:
  1  4.82684
  2  0.855164
  3  0.181757
  4  0.111601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/419586': 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) = 9915.60516085
delta logL = 0.00357626371442

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  5.614e+00  4.827e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  2.372e+00  8.552e-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:  7.874e-01  1.116e-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.361e+00  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.56
Ra Dec: 145.244 -13.589
Photon Index (Free Index): 2.37 +/- 0.86
Photon Flux (Free Index): 2.96e-08 +/- 3.05e-08
Energy Flux (Free Index): 9.61e-06 +/- 7.96e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/419586/cmap_HighResolution_560476801_560736001_4FGL_J0940.9-1335_daily_bin1239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-05', comment='SUCCESS', photon_flux='2.79e-08', energy_flux2='9.61e-06', photon_flux_error='2.30e-08', dlogl='3.58e-03', energy_flux='9.77e-06', photon_flux2='2.96e-08', job_status='DONE', time_completed='2021-08-31 22:03:30.567053', photon_index_error2='0.86', photon_index2='2.37', ts='2.56', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='8.00e-08', energy_flux_error2='7.96e-06', EG='1.36', time_epoch_completed='1630472610.57', return_code='0', job_id='419586', GAL2='0.79', EG2='1.36', return_code2='0', energy_flux_error='8.06e-06', photon_flux_error2='3.05e-08', ts2='2.56', photon_index='2.30' WHERE bin_id='1239' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:03:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 419586: <4FGL_J0940.9-1335_daily_bin1239> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin1239 145.244 -13.5891 560476801 560736001 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 :                                   702.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            762 sec.

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

