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


Performing analysis on: 4FGL_J0940.0-2828_daily_bin1387
RA = 145.012, Dec = -28.4803
tmin = 598838401, tmax = 599097601
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='392087', job_status='RUN', time_executed='2021-08-31 20:22:20.266616', time_epoch_executed='1630466540.27' WHERE source_name='4FGL J0940.0-2828' and cadence='daily' and bin_id='1387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392087

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392087/ft1_4FGL_J0940.0-2828_daily_bin1387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392087/ft2_4FGL_J0940.0-2828_daily_bin1387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392087/ft1_4FGL_J0940.0-2828_daily_bin1387.fits outfile=/scratch/kocevski/392087/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin1387.fits ra=145.012 dec=-28.4803 rad=12.0 tmin=598838401.0 tmax=599097601.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 2.87
user 2.64
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/392087/ft2_4FGL_J0940.0-2828_daily_bin1387.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/392087/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin1387.fits evtable="EVENTS" outfile="/scratch/kocevski/392087/ft1_filtered_4FGL_J0940.0-2828_daily_bin1387.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/392087/ft1_filtered_4FGL_J0940.0-2828_daily_bin1387.fits" evtable="EVENTS" scfile=/scratch/kocevski/392087/ft2_4FGL_J0940.0-2828_daily_bin1387.fits sctable="SC_DATA" outfile=/scratch/kocevski/392087/ltcube_598838401_599097601_4FGL_J0940.0-2828_daily_bin1387.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/392087/ft2_4FGL_J0940.0-2828_daily_bin1387.fits
.....................!
real 12.24
user 11.88
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392087/ft1_filtered_4FGL_J0940.0-2828_daily_bin1387.fits evtable="EVENTS" scfile=/scratch/kocevski/392087/ft2_4FGL_J0940.0-2828_daily_bin1387.fits sctable="SC_DATA" expcube=/scratch/kocevski/392087/ltcube_598838401_599097601_4FGL_J0940.0-2828_daily_bin1387.fits outfile=/scratch/kocevski/392087/expmap_598838401_599097601_4FGL_J0940.0-2828_daily_bin1387.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/392087/ltcube_598838401_599097601_4FGL_J0940.0-2828_daily_bin1387.fits
.....................!
real 191.65
user 186.59
sys 4.69

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/392087/ft1_filtered_4FGL_J0940.0-2828_daily_bin1387.fits scfile=/scratch/kocevski/392087/ft2_4FGL_J0940.0-2828_daily_bin1387.fits outfile=/scratch/kocevski/392087/cmap_598838401_599097601_4FGL_J0940.0-2828_daily_bin1387.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392087/ft1_filtered_4FGL_J0940.0-2828_daily_bin1387.fits scfile=/scratch/kocevski/392087/ft2_4FGL_J0940.0-2828_daily_bin1387.fits outfile=/scratch/kocevski/392087/cmap_HighResolution_598838401_599097601_4FGL_J0940.0-2828_daily_bin1387.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/392087/ft1_filtered_4FGL_J0940.0-2828_daily_bin1387.fits evtable="EVENTS" scfile=/scratch/kocevski/392087/ft2_4FGL_J0940.0-2828_daily_bin1387.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/392087/Model_4FGL_J0940.0-2828_daily_bin1387.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/392087/ft1_filtered_4FGL_J0940.0-2828_daily_bin1387.fits.....................!
real 105.42
user 103.97
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/392087/ft1_filtered_4FGL_J0940.0-2828_daily_bin1387.fits', '/scratch/kocevski/392087/ft2_4FGL_J0940.0-2828_daily_bin1387.fits', expMap='/scratch/kocevski/392087/expmap_598838401_599097601_4FGL_J0940.0-2828_daily_bin1387.fits', expCube='/scratch/kocevski/392087/ltcube_598838401_599097601_4FGL_J0940.0-2828_daily_bin1387.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/392087/Model_4FGL_J0940.0-2828_daily_bin1387.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/392087/ft1_filtered_4FGL_J0940.0-2828_daily_bin1387.fits
Spacecraft file(s): /scratch/kocevski/392087/ft2_4FGL_J0940.0-2828_daily_bin1387.fits
Exposure map: /scratch/kocevski/392087/expmap_598838401_599097601_4FGL_J0940.0-2828_daily_bin1387.fits
Exposure cube: /scratch/kocevski/392087/ltcube_598838401_599097601_4FGL_J0940.0-2828_daily_bin1387.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/392087/Model_4FGL_J0940.0-2828_daily_bin1387.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) = 9665.6520845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31986E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3353       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.141       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25924E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4296       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9021       1.0000         .10000E-03   10000.    
     8 'norm      '    .10863E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.6664       1.0000         .10000E-03   10000.    
    10 'norm      '    .14625       1.0000         .10000E-03   10000.    
    11 'norm      '    5.2836       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.694       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4731       1.0000         .10000E-03   10000.    
    14 'norm      '    9.6670       1.0000         .10000E-03   10000.    
    15 'norm      '    .11067E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1314       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .94490       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.

 FCN=   9665.645     FROM MIGRAD    STATUS=CONVERGED    327 CALLS     1610 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.827        .20565E-04** at limit **
   2  Prefactor     9.3283        7.5207       -.17925E-05   -.15887E-03
   3  Prefactor     13.175        13.626       -.84598E-05   -.56398E-04
   4  Prefactor     .10000E-03    23.363       -.68124E-05** at limit **
   5  Prefactor     .10000E-03    39.844        .79861E-05** at limit **
   6  Prefactor     3.4223        13.913       -.10847E-05   -.74194E-04
   7  norm          2.9109        4.2850       -.15248E-05   -.55445E-03
   8  norm          .10000E-03    3.6262       -.16575E-06** at limit **
   9  norm          9.6794        8.3182       -.10696E-05    .57484E-04
  10  norm          .14689        .62816       -.74963E-06    .56808E-03
  11  norm          5.3324        11.035       -.14350E-05   -.77452E-04
  12  Prefactor     20.660        24.274       -.21070E-04    .46018E-04
  13  Prefactor     7.5247        11.662       -.11545E-05    .78485E-05
  14  norm          9.6970        9.6482       -.31407E-06    .35715E-04
  15  norm          .10000E-03    3.5402       -.21198E-08** at limit **
  16  Normalizat    1.1311        .21376        .68124E-05    .10598E-03
  17  Prefactor     .94489        .75041E-01    .36929E-06    .43683E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.32828
  Prefactor  = 13.1753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.4223
  norm       = 2.91089
  norm       = 0.0001
  norm       = 9.67942
  norm       = 0.146888
  norm       = 5.33237
  Prefactor  = 20.66
  Prefactor  = 7.52471
  norm       = 9.69701
  norm       = 0.0001
  Normalizat = 1.13109
  Prefactor  = 0.944894
 **********
 **   18 **HESSE 
 **********

 FCN=   9665.645     FROM HESSE     STATUS=OK           229 CALLS     1839 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.828        .21363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.3283        7.5866        .13117E-03   -1.5097    
   3  Prefactor     13.175        13.659        .11050E-03   -1.4982    
   4  Prefactor     .10000E-03    23.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.214        .21450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4223        13.930        .21842E-03   -1.5338    
   7  norm          2.9109        4.2883        .23852E-03   -1.5367    
   8  norm          .10000E-03    3.6299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.6794        8.3178        .12889E-03   -1.5086    
  10  norm          .14689        3.2536        .14527E-02   -1.5631    
  11  norm          5.3324        11.014        .17486E-03   -1.5246    
  12  Prefactor     20.660        24.235        .88047E-04   -1.4799    
  13  Prefactor     7.5247        11.638        .14671E-03   -1.5159    
  14  norm          9.6970        9.6329        .12889E-03   -1.5085    
  15  norm          .10000E-03    3.5571        .18052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1311        .24135        .39410E-03   -.88760    
  17  Prefactor     .94489        .85418E-01    .15656E-03   -.94590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04518e-09
Minuit parameter uncertainties:
  1  0.000107255
  2  7.58737
  3  13.6622
  4  6.49587e-05
  5  0.000162425
  6  13.8146
  7  4.28871
  8  5.84376e-06
  9  8.31878
  10  1.38224
  11  11.0186
  12  24.2464
  13  11.6418
  14  9.63448
  15  8.35935e-06
  16  0.241586
  17  0.0854298
Done.

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

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  2.911e+00  4.289e+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:  9.449e-01  8.543e-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:  1.131e+00  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.69
Ra Dec: 145.012 -28.480
Photon Flux Upper Limit: 8.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/392087/likelihoodResults_598838401_599097601_4FGL_J0940.0-2828_daily_bin1387.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) = 9665.64358909
delta logL = 0.00110191775821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9665.64342009
delta logL = 0.0012709180919

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9725       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2671       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94448       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9665.643     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9782        4.6763        .11775E-02    .51966E-03
   2  alpha         2.2687        1.1894        .38458E-01    .76020E-04
   3  Normalizat    1.1320        .22253        .39397E-03   -.17891E-05
   4  Prefactor     .94472        .81949E-01    .15657E-03    .44728E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.97822
  alpha      = 2.26873
  Normalizat = 1.13197
  Prefactor  = 0.944721
 **********
 **   18 **HESSE 
 **********

 FCN=   9665.643     FROM HESSE     STATUS=OK            27 CALLS      277 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9782        4.5476        .23550E-03   -1.5363    
   2  alpha         2.2687        1.1601        .76916E-02   -.92639E-01
   3  Normalizat    1.1320        .22258        .15759E-04   -.88732    
   4  Prefactor     .94472        .81974E-01    .62628E-05   -.94595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37097e-12
Minuit parameter uncertainties:
  1  4.54817
  2  1.20682
  3  0.222764
  4  0.0819844
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392087': 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) = 9665.64341159
delta logL = 0.00127942261133

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  2.978e+00  4.548e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  2.269e+00  1.207e+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:  9.447e-01  8.198e-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:  1.132e+00  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.69
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/392087/cmap_HighResolution_598838401_599097601_4FGL_J0940.0-2828_daily_bin1387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-05', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2021-08-31 20:34:54.448779', job_id='392087', GAL2='0.94', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630467294.45', return_code2='0', ts='0.69', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.28e-03', ts2='0.69', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1387' AND source_name='4FGL J0940.0-2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:34:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 392087: <4FGL_J0940.0-2828_daily_bin1387> in cluster <slac> Done

Job <4FGL_J0940.0-2828_daily_bin1387> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 20:20:52 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 20:20:53 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:20:53 2021
Terminated at Tue Aug 31 20:34:55 2021
Results reported at Tue Aug 31 20:34:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.0-2828_daily_bin1387 145.012 -28.4803 598838401 599097601 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 :                                   719.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             315.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            843 sec.

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

