/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 149 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 = 7435
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0940.9-1335_daily_bin360
RA = 145.244, Dec = -13.5891
tmin = 332640001, tmax = 332899201
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='414575', job_status='RUN', time_executed='2021-08-31 21:38:04.794050', time_epoch_executed='1630471084.79' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414575

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414575/ft1_4FGL_J0940.9-1335_daily_bin360.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414575/ft2_4FGL_J0940.9-1335_daily_bin360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414575/ft1_4FGL_J0940.9-1335_daily_bin360.fits outfile=/scratch/kocevski/414575/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin360.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=332640001.0 tmax=332899201.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.38
user 3.14
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414575/ft2_4FGL_J0940.9-1335_daily_bin360.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/414575/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin360.fits evtable="EVENTS" outfile="/scratch/kocevski/414575/ft1_filtered_4FGL_J0940.9-1335_daily_bin360.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414575/ft1_filtered_4FGL_J0940.9-1335_daily_bin360.fits" evtable="EVENTS" scfile=/scratch/kocevski/414575/ft2_4FGL_J0940.9-1335_daily_bin360.fits sctable="SC_DATA" outfile=/scratch/kocevski/414575/ltcube_332640001_332899201_4FGL_J0940.9-1335_daily_bin360.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/414575/ft2_4FGL_J0940.9-1335_daily_bin360.fits
.....................!
real 12.03
user 11.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414575/ft1_filtered_4FGL_J0940.9-1335_daily_bin360.fits evtable="EVENTS" scfile=/scratch/kocevski/414575/ft2_4FGL_J0940.9-1335_daily_bin360.fits sctable="SC_DATA" expcube=/scratch/kocevski/414575/ltcube_332640001_332899201_4FGL_J0940.9-1335_daily_bin360.fits outfile=/scratch/kocevski/414575/expmap_332640001_332899201_4FGL_J0940.9-1335_daily_bin360.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/414575/ltcube_332640001_332899201_4FGL_J0940.9-1335_daily_bin360.fits
.....................!
real 189.46
user 184.71
sys 4.12

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/414575/ft1_filtered_4FGL_J0940.9-1335_daily_bin360.fits scfile=/scratch/kocevski/414575/ft2_4FGL_J0940.9-1335_daily_bin360.fits outfile=/scratch/kocevski/414575/cmap_332640001_332899201_4FGL_J0940.9-1335_daily_bin360.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.87
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414575/ft1_filtered_4FGL_J0940.9-1335_daily_bin360.fits scfile=/scratch/kocevski/414575/ft2_4FGL_J0940.9-1335_daily_bin360.fits outfile=/scratch/kocevski/414575/cmap_HighResolution_332640001_332899201_4FGL_J0940.9-1335_daily_bin360.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.85
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/414575/ft1_filtered_4FGL_J0940.9-1335_daily_bin360.fits evtable="EVENTS" scfile=/scratch/kocevski/414575/ft2_4FGL_J0940.9-1335_daily_bin360.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414575/Model_4FGL_J0940.9-1335_daily_bin360.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/414575/ft1_filtered_4FGL_J0940.9-1335_daily_bin360.fits.....................!
real 60.99
user 56.21
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1920       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7019       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9589       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.910       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14620E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11039E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20858E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    36.657       1.0000         .10000E-03   10000.    
    11 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4977       1.0000         .10000E-03   10000.    
    13 'norm      '    .12387E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .75335E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    70.617       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10657E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.6579       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .71609       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5083.230     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1597 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1923        2.2150        .43397E-07    .13697E-05
   2  Prefactor     .10000E-03    8.1698       -.14899E-06** at limit **
   3  Prefactor     3.7001        8.3261       -.20890E-06    .68758E-04
   4  Prefactor     8.9478        6.5346        .22315E-06   -.93387E-02
   5  Prefactor     16.889        39.720       -.64748E-06    .19101E-02
   6  Prefactor     .10000E-03    36.603       -.44783E-06** at limit **
   7  Prefactor     .10000E-03    12.937        .37950E-06** at limit **
   8  Prefactor     2.1263        299.95        .23242E-04   -.62967E-04
   9  Prefactor     .10000E-03    7.5922       -.64986E-07** at limit **
  10  norm          36.400        14.930       -.55811E-06   -.36685E-03
  11  norm          .10000E-03    1.9973       -.34275E-07** at limit **
  12  norm          2.4985        2.2492        .10708E-06    .24552E-06
  13  norm          .10000E-03    68.268       -.87488E-05** at limit **
  14  norm          .10000E-03    18.567       -.30448E-05** at limit **
  15  Prefactor     70.738        25.312        .29663E-06    .12843E-01
  16  Prefactor     .10000E-03    5.3348       -.33318E-07** at limit **
  17  Normalizat    1.6585        .28002       -.18804E-05   -.16841E-03
  18  Prefactor     .71567        .16686       -.42492E-06   -.17259E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.19228
  Prefactor  = 0.0001
  Prefactor  = 3.70014
  Prefactor  = 8.94782
  Prefactor  = 16.8893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.12632
  Prefactor  = 0.0001
  norm       = 36.4004
  norm       = 0.0001
  norm       = 2.49848
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 70.7383
  Prefactor  = 0.0001
  Normalizat = 1.6585
  Prefactor  = 0.715673
 **********
 **   18 **HESSE 
 **********

 FCN=   5083.230     FROM HESSE     STATUS=OK           290 CALLS     1887 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1923        2.2051        .69492E-02   -1.5412    
   2  Prefactor     .10000E-03    8.1538        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7001        8.3555        .52475E-02   -1.5323    
   4  Prefactor     8.9478        26.259        .33477E-02   -1.5110    
   5  Prefactor     16.889        46.640        .24349E-02   -1.4886    
   6  Prefactor     .10000E-03    36.860        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.914        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.1263        321.69        .91269E-02   -1.5416    
   9  Prefactor     .10000E-03    7.5662        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          36.400        15.661        .16549E-02   -1.4501    
  11  norm          .10000E-03    1.9846        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4985        2.2559        .64650E-02   -1.5392    
  13  norm          .10000E-03    13.428        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .95424        .51566E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     70.738        58.738        .11942E-02   -1.4024    
  16  Prefactor     .10000E-03    5.3278        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.6585        .25424        .61317E-01   -.73417    
  18  Prefactor     .71567        .14460        .42615E-01   -1.0292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47048e-06
Minuit parameter uncertainties:
  1  2.20523
  2  4.84423e-06
  3  8.35814
  4  26.2925
  5  46.7405
  6  1.98777e-05
  7  1.33403e-05
  8  52.5965
  9  2.46495e-06
  10  15.6629
  11  5.3013e-07
  12  2.25593
  13  0.000321534
  14  2.68291e-05
  15  58.7864
  16  9.59181e-07
  17  0.254443
  18  0.144679
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  3.640e+01  1.566e+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:  7.157e-01  1.447e-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.659e+00  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.73
Ra Dec: 145.244 -13.589
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.77e-07 +/- 7.63e-08
Energy Flux (Fixed Index): 6.20e-05 +/- 2.67e-05

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) = 5083.22967899
delta logL = 0.000187867784916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5083.22963702
delta logL = 0.000229836087783

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    36.499       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2922       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71522       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=   5083.230     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      223 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          36.511        59.974        .16584E-02    .25297E-03
   2  alpha         2.2922        1.4709        .22214        .13741E-03
   3  Normalizat    1.6596        .28273        .61302E-01   -.56088E-04
   4  Prefactor     .71524        .15954        .42603E-01   -.54636E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 36.5109
  alpha      = 2.29219
  Normalizat = 1.65964
  Prefactor  = 0.71524
 **********
 **   18 **HESSE 
 **********

 FCN=   5083.230     FROM HESSE     STATUS=OK            29 CALLS      252 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          36.511        14.250        .66337E-04   -1.4499    
   2  alpha         2.2922        .39127        .92724E-02   -.83221E-01
   3  Normalizat    1.6596        .28389        .27109E-03   -.73386    
   4  Prefactor     .71524        .16612        .23186E-03   -1.0293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16357e-10
Minuit parameter uncertainties:
  1  14.2509
  2  0.392901
  3  0.284165
  4  0.166239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414575': 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) = 5083.22963656
delta logL = 0.000230294001085

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  3.651e+01  1.425e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  2.292e+00  3.929e-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.152e-01  1.662e-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.660e+00  2.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.70
Ra Dec: 145.244 -13.589
Photon Index (Free Index): 2.29 +/- 0.39
Photon Flux (Free Index): 1.76e-07 +/- 7.93e-08
Energy Flux (Free Index): 6.22e-05 +/- 2.44e-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/414575/cmap_HighResolution_332640001_332899201_4FGL_J0940.9-1335_daily_bin360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.77e-07', energy_flux2='6.22e-05', photon_flux_error='7.63e-08', dlogl='2.30e-04', energy_flux='6.20e-05', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-08-31 21:45:59.707340', photon_index_error2='0.39', photon_index2='2.29', ts='19.73', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='2.44e-05', EG='1.66', time_epoch_completed='1630471559.71', return_code='0', job_id='414575', GAL2='0.72', EG2='1.66', return_code2='0', energy_flux_error='2.67e-05', photon_flux_error2='7.93e-08', ts2='19.70', photon_index='2.30' WHERE bin_id='360' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 21:45:59 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin360 145.244 -13.5891 332640001 332899201 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 :                                   468.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            636 sec.

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

