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


Performing analysis on: 4FGL_J0940.0-2828_daily_bin1439
RA = 145.012, Dec = -28.4803
tmin = 612316801, tmax = 612576001
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='392160', job_status='RUN', time_executed='2021-08-31 20:22:21.702045', time_epoch_executed='1630466541.7' WHERE source_name='4FGL J0940.0-2828' and cadence='daily' and bin_id='1439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392160

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392160/ft1_4FGL_J0940.0-2828_daily_bin1439.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392160/ft2_4FGL_J0940.0-2828_daily_bin1439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392160/ft1_4FGL_J0940.0-2828_daily_bin1439.fits outfile=/scratch/kocevski/392160/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin1439.fits ra=145.012 dec=-28.4803 rad=12.0 tmin=612316801.0 tmax=612576001.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.28
user 3.07
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/392160/ft2_4FGL_J0940.0-2828_daily_bin1439.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/392160/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin1439.fits evtable="EVENTS" outfile="/scratch/kocevski/392160/ft1_filtered_4FGL_J0940.0-2828_daily_bin1439.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/392160/ft1_filtered_4FGL_J0940.0-2828_daily_bin1439.fits" evtable="EVENTS" scfile=/scratch/kocevski/392160/ft2_4FGL_J0940.0-2828_daily_bin1439.fits sctable="SC_DATA" outfile=/scratch/kocevski/392160/ltcube_612316801_612576001_4FGL_J0940.0-2828_daily_bin1439.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/392160/ft2_4FGL_J0940.0-2828_daily_bin1439.fits
.....................!
real 12.10
user 11.75
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392160/ft1_filtered_4FGL_J0940.0-2828_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/392160/ft2_4FGL_J0940.0-2828_daily_bin1439.fits sctable="SC_DATA" expcube=/scratch/kocevski/392160/ltcube_612316801_612576001_4FGL_J0940.0-2828_daily_bin1439.fits outfile=/scratch/kocevski/392160/expmap_612316801_612576001_4FGL_J0940.0-2828_daily_bin1439.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/392160/ltcube_612316801_612576001_4FGL_J0940.0-2828_daily_bin1439.fits
.....................!
real 192.80
user 187.73
sys 4.68

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/392160/ft1_filtered_4FGL_J0940.0-2828_daily_bin1439.fits scfile=/scratch/kocevski/392160/ft2_4FGL_J0940.0-2828_daily_bin1439.fits outfile=/scratch/kocevski/392160/cmap_612316801_612576001_4FGL_J0940.0-2828_daily_bin1439.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392160/ft1_filtered_4FGL_J0940.0-2828_daily_bin1439.fits scfile=/scratch/kocevski/392160/ft2_4FGL_J0940.0-2828_daily_bin1439.fits outfile=/scratch/kocevski/392160/cmap_HighResolution_612316801_612576001_4FGL_J0940.0-2828_daily_bin1439.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.56
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/392160/ft1_filtered_4FGL_J0940.0-2828_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/392160/ft2_4FGL_J0940.0-2828_daily_bin1439.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/392160/Model_4FGL_J0940.0-2828_daily_bin1439.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/392160/ft1_filtered_4FGL_J0940.0-2828_daily_bin1439.fits.....................!
real 101.98
user 100.48
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6783       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.413       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.635       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3585       1.0000         .10000E-03   10000.    
     8 'norm      '    34.784       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1774       1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.642       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39329       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7035       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .96860       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1417       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=   8774.678     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     1608 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.136       -.37814E-06** at limit **
   2  Prefactor     2.6780        6.6447        .16873E-06   -.52361E-03
   3  Prefactor     .10000E-03    4.4439        .28926E-07** at limit **
   4  Prefactor     42.410        38.662       -.43269E-05   -.70533E-04
   5  Prefactor     23.551        36.982       -.70672E-05   -.75506E-04
   6  Prefactor     .10000E-03    18.008        .26403E-06** at limit **
   7  norm          3.3598        5.8336       -.90524E-06   -.68747E-04
   8  norm          34.782        22.798        .22916E-05    .14060E-03
   9  norm          .10000E-03    13.648       -.67380E-07** at limit **
  10  norm          2.1768        1.8308       -.13986E-06    .19518E-04
  11  norm          .10000E-03    6.1536        .15933E-07** at limit **
  12  Prefactor     16.642        19.723       -.74589E-05   -.11527E-03
  13  Prefactor     .40369        10.702       -.26616E-05    .80435E-03
  14  norm          .10000E-03    7.3419        .86840E-07** at limit **
  15  norm          1.6944        5.2116        .49044E-07   -.46811E-03
  16  Normalizat    .96886        .25475        .39361E-05    .77843E-04
  17  Prefactor     1.1417        .91655E-01   -.36183E-06    .39692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.67802
  Prefactor  = 0.0001
  Prefactor  = 42.4105
  Prefactor  = 23.5509
  Prefactor  = 0.0001
  norm       = 3.35983
  norm       = 34.782
  norm       = 0.0001
  norm       = 2.17681
  norm       = 0.0001
  Prefactor  = 16.6418
  Prefactor  = 0.403692
  norm       = 0.0001
  norm       = 1.69437
  Normalizat = 0.96886
  Prefactor  = 1.1417
 **********
 **   18 **HESSE 
 **********

 FCN=   8774.678     FROM HESSE     STATUS=OK           221 CALLS     1829 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6780        8.1916        .12450E-02   -1.5381    
   3  Prefactor     .10000E-03    4.4491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     42.410        38.730        .61555E-04   -1.4405    
   5  Prefactor     23.551        36.958        .82394E-04   -1.4737    
   6  Prefactor     .10000E-03    18.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3598        5.8230        .22082E-03   -1.5341    
   8  norm          34.782        22.842        .67947E-04   -1.4528    
   9  norm          .10000E-03    13.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1768        1.8314        .10812E-03   -1.5413    
  11  norm          .10000E-03    6.1748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.642        19.933        .98179E-04   -1.4892    
  13  Prefactor     .40369        199.33        .55272E-02   -1.5581    
  14  norm          .10000E-03    7.3756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6944        12.152        .16111E-02   -1.5448    
  16  Normalizat    .96886        .27737        .45245E-03   -.94081    
  17  Prefactor     1.1417        .10233        .15936E-03   -.88145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79556e-08
Minuit parameter uncertainties:
  1  1.87603e-05
  2  8.19505
  3  5.90745e-06
  4  38.753
  5  36.9935
  6  9.30527e-06
  7  5.82396
  8  22.8482
  9  6.45623e-06
  10  1.83148
  11  5.54092e-06
  12  19.9406
  13  17.9989
  14  3.56228e-05
  15  9.07748
  16  0.277787
  17  0.102344
Done.

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

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  3.360e+00  5.824e+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.142e+00  1.023e-01  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.689e-01  2.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/392160/likelihoodResults_612316801_612576001_4FGL_J0940.0-2828_daily_bin1439.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) = 8774.52129461
delta logL = 0.157135157484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8774.5099017
delta logL = 0.168528067228

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2251       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6996       1.0000          .0000       5.0000    
     3 'Normalizat'    .97795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1393       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=   8774.510     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      217 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2089        7.3129         .0000        .54921E-02
   2  alpha         1.6980        1.0216         .0000        .12782E-04
   3  Normalizat    .97852        .23464         .0000        .15409E-03
   4  Prefactor     1.1391        .89282E-01     .0000       -.31078E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.20895
  alpha      = 1.69798
  Normalizat = 0.978519
  Prefactor  = 1.13905
 **********
 **   18 **HESSE 
 **********

 FCN=   8774.510     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2089        5.9704        .98020E-03   -1.5298    
   2  alpha         1.6980        .94728        .32572E-01   -.32658    
   3  Normalizat    .97852        .25537        .45041E-03   -.93754    
   4  Prefactor     1.1391        .97618E-01    .15950E-03   -.88228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10502e-10
Minuit parameter uncertainties:
  1  5.97127
  2  0.974564
  3  0.25569
  4  0.0976329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392160': 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) = 8774.50989447
delta logL = 0.16853529754

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  4.209e+00  5.971e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.698e+00  9.746e-01  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.139e+00  9.763e-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.785e-01  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
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/392160/cmap_HighResolution_612316801_612576001_4FGL_J0940.0-2828_daily_bin1439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-05', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-08-31 20:34:33.137783', job_id='392160', GAL2='1.14', fit_tolerance='1e-08', EG2='0.98', EG='0.97', time_epoch_completed='1630467273.14', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.69e-01', ts2='0.78', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1439' AND source_name='4FGL J0940.0-2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:34:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 392160: <4FGL_J0940.0-2828_daily_bin1439> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.0-2828_daily_bin1439 145.012 -28.4803 612316801 612576001 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 :                                   698.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

