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


Performing analysis on: 4FGL_J0940.0-2828_daily_bin1279
RA = 145.012, Dec = -28.4803
tmin = 570844801, tmax = 571104001
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='391930', job_status='RUN', time_executed='2021-08-31 20:22:20.663749', time_epoch_executed='1630466540.66' WHERE source_name='4FGL J0940.0-2828' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/391930

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/391930/ft1_4FGL_J0940.0-2828_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/391930/ft2_4FGL_J0940.0-2828_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/391930/ft1_4FGL_J0940.0-2828_daily_bin1279.fits outfile=/scratch/kocevski/391930/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin1279.fits ra=145.012 dec=-28.4803 rad=12.0 tmin=570844801.0 tmax=571104001.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.00
user 2.79
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/391930/ft1_filtered_4FGL_J0940.0-2828_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/391930/ft2_4FGL_J0940.0-2828_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/391930/ltcube_570844801_571104001_4FGL_J0940.0-2828_daily_bin1279.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/391930/ft2_4FGL_J0940.0-2828_daily_bin1279.fits
.....................!
real 13.04
user 12.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/391930/ft1_filtered_4FGL_J0940.0-2828_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/391930/ft2_4FGL_J0940.0-2828_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/391930/ltcube_570844801_571104001_4FGL_J0940.0-2828_daily_bin1279.fits outfile=/scratch/kocevski/391930/expmap_570844801_571104001_4FGL_J0940.0-2828_daily_bin1279.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/391930/ltcube_570844801_571104001_4FGL_J0940.0-2828_daily_bin1279.fits
.....................!
real 192.20
user 187.43
sys 4.35

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/391930/ft1_filtered_4FGL_J0940.0-2828_daily_bin1279.fits scfile=/scratch/kocevski/391930/ft2_4FGL_J0940.0-2828_daily_bin1279.fits outfile=/scratch/kocevski/391930/cmap_570844801_571104001_4FGL_J0940.0-2828_daily_bin1279.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/391930/ft1_filtered_4FGL_J0940.0-2828_daily_bin1279.fits scfile=/scratch/kocevski/391930/ft2_4FGL_J0940.0-2828_daily_bin1279.fits outfile=/scratch/kocevski/391930/cmap_HighResolution_570844801_571104001_4FGL_J0940.0-2828_daily_bin1279.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.58
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/391930/ft1_filtered_4FGL_J0940.0-2828_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/391930/ft2_4FGL_J0940.0-2828_daily_bin1279.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/391930/Model_4FGL_J0940.0-2828_daily_bin1279.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/391930/ft1_filtered_4FGL_J0940.0-2828_daily_bin1279.fits.....................!
real 100.47
user 99.05
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.182       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.026       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.692       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4538       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0668       1.0000         .10000E-03   10000.    
     9 'norm      '    3.9906       1.0000         .10000E-03   10000.    
    10 'norm      '    .94184       1.0000         .10000E-03   10000.    
    11 'norm      '    19.000       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25477       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2121       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3498       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .85778       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=   8769.867     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1408 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.428       -.17155E-05** at limit **
   2  Prefactor     12.185        7.3051       -.24486E-06    .27885E-04
   3  Prefactor     17.021        14.384       -.59075E-07    .45193E-04
   4  Prefactor     17.821        66.189       -.26142E-04    .68093E-04
   5  Prefactor     .10000E-03    16.001       -.35292E-06** at limit **
   6  Prefactor     .10000E-03    24.276        .22372E-05** at limit **
   7  norm          1.4513        5.9848        .19268E-04   -.11628E-03
   8  norm          2.0718        30.467        .10179E-04   -.47698E-04
   9  norm          3.9902        8.3628       -.24228E-06    .23754E-04
  10  norm          .94247        1.7164       -.64513E-06   -.22093E-02
  11  norm          18.994        11.640        .96395E-07    .19645E-03
  12  Prefactor     .10000E-03    38.760       -.28483E-06** at limit **
  13  Prefactor     .35175        8.3902       -.17893E-05    .16607E-03
  14  norm          .10000E-03    3.8085       -.23057E-06** at limit **
  15  norm          5.2089        8.6888        .70536E-06    .85146E-04
  16  Normalizat    1.3495        .24554       -.70422E-05   -.92724E-04
  17  Prefactor     .85785        .76911E-01    .23434E-05    .10252E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.1845
  Prefactor  = 17.0208
  Prefactor  = 17.821
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 1.45132
  norm       = 2.07178
  norm       = 3.99018
  norm       = 0.942473
  norm       = 18.9944
  Prefactor  = 0.000100002
  Prefactor  = 0.351751
  norm       = 0.0001
  norm       = 5.20885
  Normalizat = 1.34947
  Prefactor  = 0.857855
 **********
 **   18 **HESSE 
 **********

 FCN=   8769.867     FROM HESSE     STATUS=OK           229 CALLS     1637 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.185        7.3598        .11477E-03   -1.5010    
   3  Prefactor     17.021        14.384        .97065E-04   -1.4883    
   4  Prefactor     17.821        66.274        .95219E-04   -1.4863    
   5  Prefactor     .10000E-03    16.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4513        6.0464        .17858E-02   -1.5467    
   8  norm          2.0718        30.805        .14369E-02   -1.5420    
   9  norm          3.9902        8.3492        .20190E-03   -1.5308    
  10  norm          .94247        1.4719        .15782E-02   -1.5514    
  11  norm          18.994        11.624        .91885E-04   -1.4836    
  12  Prefactor     .10000E-03    39.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .35175        63.054        .52145E-02   -1.5589    
  14  norm          .10000E-03    3.8133        .17841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2089        8.6778        .17607E-03   -1.5251    
  16  Normalizat    1.3495        .26936        .39415E-03   -.82102    
  17  Prefactor     .85785        .87372E-01    .15978E-03   -.97630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01113e-09
Minuit parameter uncertainties:
  1  0.000131363
  2  7.36034
  3  14.3874
  4  66.5498
  5  9.33127e-05
  6  0.000642669
  7  5.92541
  8  15.987
  9  8.35167
  10  1.47191
  11  11.6258
  12  0.000522168
  13  9.42771
  14  1.76591e-05
  15  8.67992
  16  0.269642
  17  0.0873857
Done.

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

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  1.451e+00  5.925e+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:  8.579e-01  8.739e-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.349e+00  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/391930/likelihoodResults_570844801_571104001_4FGL_J0940.0-2828_daily_bin1279.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) = 8768.96911741
delta logL = 0.897563451703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8768.91070341
delta logL = 0.955977448773

Fit tolerance = 1e-08

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

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

 FCN=   8768.911     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      351 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31943        7.8636        .88402E-02    .23193E-02
   2  alpha         5.0000        4.5019        .46268    ** at limit **
   3  Normalizat    1.2324        .12645        .92481E-01    .27878E-04
   4  Prefactor     .87959        .37854E-01    .44743E-01    .20806E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.319426
  alpha      = 5
  Normalizat = 1.23245
  Prefactor  = 0.879591
 **********
 **   18 **HESSE 
 **********

 FCN=   8768.911     FROM HESSE     STATUS=OK            37 CALLS      388 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31943        .30837        .40591E-03   -1.5595    
   2  alpha         5.0000        3.0818        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2324        .26430        .40963E-03   -.85606    
   4  Prefactor     .87959        .84703E-01    .15798E-03   -.96858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95608e-12
Minuit parameter uncertainties:
  1  0.308368
  2  6.40573e-06
  3  0.264591
  4  0.0847161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/391930': 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) = 8768.91069457
delta logL = 0.955986289273

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  3.194e-01  3.084e-01  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  5.000e+00  6.406e-06  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:  8.796e-01  8.472e-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.232e+00  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.19
Ra Dec: 145.012 -28.480
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.09e-07 +/- 1.05e-07
Energy Flux (Free Index): 1.52e-05 +/- 1.47e-05

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/391930/cmap_HighResolution_570844801_571104001_4FGL_J0940.0-2828_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-05', comment='SUCCESS', energy_flux2='1.52e-05', dlogl='9.56e-01', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-08-31 20:34:11.017661', photon_index_error2='0.00', photon_index2='5.00', ts='0.07', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='9.82e-08', energy_flux_error2='1.47e-05', EG='1.35', time_epoch_completed='1630467251.02', return_code='0', job_id='391930', GAL2='0.88', EG2='1.23', return_code2='0', photon_flux_error2='1.05e-07', ts2='2.19', photon_index='2.33' WHERE bin_id='1279' AND source_name='4FGL J0940.0-2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:34:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 391930: <4FGL_J0940.0-2828_daily_bin1279> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.0-2828_daily_bin1279 145.012 -28.4803 570844801 571104001 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 :                                   676.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            810 sec.

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

