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


Performing analysis on: 4FGL_J0940.0-2828_daily_bin159
RA = 145.012, Dec = -28.4803
tmin = 280540801, tmax = 280800001
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='386732', job_status='RUN', time_executed='2021-08-31 20:05:39.725291', time_epoch_executed='1630465539.73' WHERE source_name='4FGL J0940.0-2828' and cadence='daily' and bin_id='159'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386732

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386732/ft1_4FGL_J0940.0-2828_daily_bin159.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386732/ft2_4FGL_J0940.0-2828_daily_bin159.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386732/ft1_4FGL_J0940.0-2828_daily_bin159.fits outfile=/scratch/kocevski/386732/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin159.fits ra=145.012 dec=-28.4803 rad=12.0 tmin=280540801.0 tmax=280800001.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.53
user 3.29
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/386732/ft2_4FGL_J0940.0-2828_daily_bin159.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386732/ft2_4FGL_J0940.0-2828_daily_bin159.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/386732/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin159.fits evtable="EVENTS" outfile="/scratch/kocevski/386732/ft1_filtered_4FGL_J0940.0-2828_daily_bin159.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.55
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386732/ft1_filtered_4FGL_J0940.0-2828_daily_bin159.fits" evtable="EVENTS" scfile=/scratch/kocevski/386732/ft2_4FGL_J0940.0-2828_daily_bin159.fits sctable="SC_DATA" outfile=/scratch/kocevski/386732/ltcube_280540801_280800001_4FGL_J0940.0-2828_daily_bin159.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/386732/ft2_4FGL_J0940.0-2828_daily_bin159.fits
.....................!
real 12.38
user 11.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386732/ft1_filtered_4FGL_J0940.0-2828_daily_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/386732/ft2_4FGL_J0940.0-2828_daily_bin159.fits sctable="SC_DATA" expcube=/scratch/kocevski/386732/ltcube_280540801_280800001_4FGL_J0940.0-2828_daily_bin159.fits outfile=/scratch/kocevski/386732/expmap_280540801_280800001_4FGL_J0940.0-2828_daily_bin159.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/386732/ltcube_280540801_280800001_4FGL_J0940.0-2828_daily_bin159.fits
.....................!
real 194.30
user 185.77
sys 5.67

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
Extended source Puppis A in ROI with RadialDisk spatial model.
Extended source Vela X in ROI with RadialDisk spatial model.
Extended source Vela Junior in ROI with RadialDisk spatial model.
Added 184 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0940.0-2828 @ 145.012 -28.4803

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/386732/ft1_filtered_4FGL_J0940.0-2828_daily_bin159.fits scfile=/scratch/kocevski/386732/ft2_4FGL_J0940.0-2828_daily_bin159.fits outfile=/scratch/kocevski/386732/cmap_280540801_280800001_4FGL_J0940.0-2828_daily_bin159.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.012 yref=-28.4803 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386732/ft1_filtered_4FGL_J0940.0-2828_daily_bin159.fits scfile=/scratch/kocevski/386732/ft2_4FGL_J0940.0-2828_daily_bin159.fits outfile=/scratch/kocevski/386732/cmap_HighResolution_280540801_280800001_4FGL_J0940.0-2828_daily_bin159.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.012 yref=-28.4803 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386732/ft1_filtered_4FGL_J0940.0-2828_daily_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/386732/ft2_4FGL_J0940.0-2828_daily_bin159.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386732/Model_4FGL_J0940.0-2828_daily_bin159.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
adding source Puppis A
adding source Vela Junior
adding source Vela X
Working on...
/scratch/kocevski/386732/ft1_filtered_4FGL_J0940.0-2828_daily_bin159.fits.....................!
real 127.83
user 125.38
sys 2.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/386732/ft1_filtered_4FGL_J0940.0-2828_daily_bin159.fits', '/scratch/kocevski/386732/ft2_4FGL_J0940.0-2828_daily_bin159.fits', expMap='/scratch/kocevski/386732/expmap_280540801_280800001_4FGL_J0940.0-2828_daily_bin159.fits', expCube='/scratch/kocevski/386732/ltcube_280540801_280800001_4FGL_J0940.0-2828_daily_bin159.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/386732/Model_4FGL_J0940.0-2828_daily_bin159.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0940.0-2828'

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  1.600e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  2.330e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
329         beta:  1.766e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  7.494e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/386732/ft1_filtered_4FGL_J0940.0-2828_daily_bin159.fits
Spacecraft file(s): /scratch/kocevski/386732/ft2_4FGL_J0940.0-2828_daily_bin159.fits
Exposure map: /scratch/kocevski/386732/expmap_280540801_280800001_4FGL_J0940.0-2828_daily_bin159.fits
Exposure cube: /scratch/kocevski/386732/ltcube_280540801_280800001_4FGL_J0940.0-2828_daily_bin159.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/386732/Model_4FGL_J0940.0-2828_daily_bin159.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) = 11517.6183667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12440E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9365       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3662       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.333       1.0000         .10000E-03   10000.    
     7 'norm      '    4.4461       1.0000         .10000E-03   10000.    
     8 'norm      '    9.8134       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6847       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.989       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3612       1.0000         .10000E-03   10000.    
    14 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .95625       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0367       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11517.62     FROM MIGRAD    STATUS=CONVERGED    333 CALLS     1592 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    92.782         .0000    ** at limit **
   2  Prefactor     1.9371        4.6901         .0000        .29807E-01
   3  Prefactor     .10000E-03    21.132         .0000    ** at limit **
   4  Prefactor     .10000E-03    44.979         .0000    ** at limit **
   5  Prefactor     4.3696        30.125         .0000       -.91842E-04
   6  Prefactor     15.333        12.796         .0000        .18940E-03
   7  norm          4.4459        5.5845         .0000       -.22378E-02
   8  norm          9.8141        11.437         .0000        .10396E-02
   9  norm          .10000E-03    4.0045         .0000    ** at limit **
  10  norm          2.6848        1.3214         .0000        .26674E-03
  11  norm          .10000E-03    1.9525         .0000    ** at limit **
  12  Prefactor     25.992        21.697         .0000       -.15706E-04
  13  Prefactor     6.3629        10.518         .0000        .14235E-02
  14  norm          .10000E-03    5.8427         .0000    ** at limit **
  15  norm          .10000E-03    2.1880         .0000    ** at limit **
  16  Normalizat    .95621        .19028         .0000        .74631E-04
  17  Prefactor     1.0367        .70599E-01     .0000        .19386E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.93707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.36956
  Prefactor  = 15.333
  norm       = 4.44587
  norm       = 9.81409
  norm       = 0.0001
  norm       = 2.68477
  norm       = 0.0001
  Prefactor  = 25.9918
  Prefactor  = 6.36289
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.956215
  Prefactor  = 1.03674
 **********
 **   18 **HESSE 
 **********

 FCN=   11517.62     FROM HESSE     STATUS=OK           223 CALLS     1815 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    94.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9371        4.7041        .14920E-02   -1.5430    
   3  Prefactor     .10000E-03    21.858        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3696        29.999        .19276E-03   -1.5290    
   6  Prefactor     15.333        12.823        .10228E-03   -1.4925    
   7  norm          4.4459        5.5731        .19097E-03   -1.5286    
   8  norm          9.8141        11.439        .63959E-03   -1.5081    
   9  norm          .10000E-03    4.0150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6848        1.3238        .82641E-04   -1.5380    
  11  norm          .10000E-03    1.9547        .14644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.992        21.751        .78580E-04   -1.4688    
  13  Prefactor     6.3629        10.506        .79571E-03   -1.5203    
  14  norm          .10000E-03    5.9517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1979        .15501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .95621        .21110        .41169E-03   -.94512    
  17  Prefactor     1.0367        .78884E-01    .15163E-03   -.91515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20368e-09
Minuit parameter uncertainties:
  1  0.000323112
  2  4.70498
  3  1.61886e-06
  4  0.00017012
  5  22.9144
  6  12.8254
  7  5.57371
  8  11.4416
  9  6.89442e-06
  10  1.32383
  11  2.16727e-06
  12  21.758
  13  10.5091
  14  4.68758e-06
  15  1.10501e-06
  16  0.211288
  17  0.0788924
Done.

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

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  4.446e+00  5.574e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  2.330e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
329         beta:  1.766e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  7.494e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  1.037e+00  7.889e-02  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  9.562e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.94
Ra Dec: 145.012 -28.480
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386732/likelihoodResults_280540801_280800001_4FGL_J0940.0-2828_daily_bin159.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) = 11517.6137977
delta logL = 0.00279895964377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11517.613489
delta logL = 0.00310767355404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3638       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1764       1.0000          .0000       5.0000    
     3 'Normalizat'    .96110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0360       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+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=   11517.61     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      285 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3631        5.7418        .19281E-03    .15802E-04
   2  alpha         2.1764        1.6988        .48220E-01   -.58838E-05
   3  Normalizat    .96135        .20761        .41069E-03   -.63668E-04
   4  Prefactor     1.0359        .76742E-01    .15168E-03    .11843E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.36308
  alpha      = 2.1764
  Normalizat = 0.961346
  Prefactor  = 1.03595
 **********
 **   18 **HESSE 
 **********

 FCN=   11517.61     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3631        6.0036        .77125E-05   -1.5290    
   2  alpha         2.1764        1.7583        .19288E-02   -.12980    
   3  Normalizat    .96135        .20778        .16428E-04   -.94337    
   4  Prefactor     1.0359        .76705E-01    .60670E-05   -.91541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95508e-11
Minuit parameter uncertainties:
  1  6.0044
  2  1.95457
  3  0.207952
  4  0.0767129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386732': 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) = 11517.6134882
delta logL = 0.00310843398074

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  4.363e+00  6.004e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  2.176e+00  1.955e+00  0.000e+00  5.000e+00 ( 1.000e+00)
329         beta:  1.766e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  7.494e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  1.036e+00  7.671e-02  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  9.613e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.94
Ra Dec: 145.012 -28.480

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/386732/cmap_HighResolution_280540801_280800001_4FGL_J0940.0-2828_daily_bin159.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-08-31 20:19:32.431843', job_id='386732', GAL2='1.04', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630466372.43', return_code2='0', ts='0.94', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.11e-03', ts2='0.94', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='159' AND source_name='4FGL J0940.0-2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:19:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 386732: <4FGL_J0940.0-2828_daily_bin159> in cluster <slac> Done

Job <4FGL_J0940.0-2828_daily_bin159> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 20:05:20 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 20:05:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 20:05:22 2021
Terminated at Tue Aug 31 20:19:33 2021
Results reported at Tue Aug 31 20:19:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.0-2828_daily_bin159 145.012 -28.4803 280540801 280800001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0940.0-2828 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   828.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             381.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            853 sec.

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

