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


Performing analysis on: 4FGL_J0940.0-2828_daily_bin469
RA = 145.012, Dec = -28.4803
tmin = 360892801, tmax = 361152001
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='388386', job_status='RUN', time_executed='2021-08-31 20:14:03.072101', time_epoch_executed='1630466043.07' WHERE source_name='4FGL J0940.0-2828' and cadence='daily' and bin_id='469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/388386

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/388386/ft1_4FGL_J0940.0-2828_daily_bin469.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/388386/ft2_4FGL_J0940.0-2828_daily_bin469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/388386/ft1_4FGL_J0940.0-2828_daily_bin469.fits outfile=/scratch/kocevski/388386/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin469.fits ra=145.012 dec=-28.4803 rad=12.0 tmin=360892801.0 tmax=361152001.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.51
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/388386/ft1_filtered_4FGL_J0940.0-2828_daily_bin469.fits" evtable="EVENTS" scfile=/scratch/kocevski/388386/ft2_4FGL_J0940.0-2828_daily_bin469.fits sctable="SC_DATA" outfile=/scratch/kocevski/388386/ltcube_360892801_361152001_4FGL_J0940.0-2828_daily_bin469.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/388386/ft2_4FGL_J0940.0-2828_daily_bin469.fits
.....................!
real 12.77
user 12.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/388386/ft1_filtered_4FGL_J0940.0-2828_daily_bin469.fits evtable="EVENTS" scfile=/scratch/kocevski/388386/ft2_4FGL_J0940.0-2828_daily_bin469.fits sctable="SC_DATA" expcube=/scratch/kocevski/388386/ltcube_360892801_361152001_4FGL_J0940.0-2828_daily_bin469.fits outfile=/scratch/kocevski/388386/expmap_360892801_361152001_4FGL_J0940.0-2828_daily_bin469.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/388386/ltcube_360892801_361152001_4FGL_J0940.0-2828_daily_bin469.fits
.....................!
real 193.20
user 188.01
sys 4.58

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/388386/ft1_filtered_4FGL_J0940.0-2828_daily_bin469.fits scfile=/scratch/kocevski/388386/ft2_4FGL_J0940.0-2828_daily_bin469.fits outfile=/scratch/kocevski/388386/cmap_360892801_361152001_4FGL_J0940.0-2828_daily_bin469.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/388386/ft1_filtered_4FGL_J0940.0-2828_daily_bin469.fits scfile=/scratch/kocevski/388386/ft2_4FGL_J0940.0-2828_daily_bin469.fits outfile=/scratch/kocevski/388386/cmap_HighResolution_360892801_361152001_4FGL_J0940.0-2828_daily_bin469.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/388386/ft1_filtered_4FGL_J0940.0-2828_daily_bin469.fits evtable="EVENTS" scfile=/scratch/kocevski/388386/ft2_4FGL_J0940.0-2828_daily_bin469.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/388386/Model_4FGL_J0940.0-2828_daily_bin469.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/388386/ft1_filtered_4FGL_J0940.0-2828_daily_bin469.fits.....................!
real 87.17
user 85.49
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.3571       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.892       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29652E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4017       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1701       1.0000         .10000E-03   10000.    
    11 'norm      '    7.4343       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.247       1.0000         .10000E-03   10000.    
    15 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1998       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0571       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=   7615.964     FROM MIGRAD    STATUS=CONVERGED    322 CALLS     1569 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.707        .21908E-07** at limit **
   2  Prefactor     1.3579        4.4853        .16042E-05    .22150E-04
   3  Prefactor     13.894        17.290       -.78474E-06    .36152E-06
   4  Prefactor     .10000E-03    151.36        .85881E-06** at limit **
   5  Prefactor     2.3438        202.64        .57093E-06   -.66006E-05
   6  Prefactor     .10000E-03    20.170        .38755E-06** at limit **
   7  norm          .10000E-03    6.8600       -.99302E-06** at limit **
   8  norm          .10000E-03    14.646        .15575E-06** at limit **
   9  norm          .10000E-03    4.3196        .40701E-07** at limit **
  10  norm          2.1707        1.7770        .14189E-06   -.42085E-05
  11  norm          7.4427        14.970        .46802E-06   -.71305E-05
  12  Prefactor     .10000E-03    38.748        .40149E-06** at limit **
  13  Prefactor     .10000E-03    11.945        .28490E-07** at limit **
  14  norm          13.262        14.009        .32099E-06   -.17852E-04
  15  norm          .10000E-03    14.150        .25899E-06** at limit **
  16  Normalizat    1.1994        .26060       -.13349E-05   -.22604E-04
  17  Prefactor     1.0572        .93688E-01   -.39152E-06   -.69122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.35789
  Prefactor  = 13.8936
  Prefactor  = 0.0001
  Prefactor  = 2.34381
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.17074
  norm       = 7.44272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2615
  norm       = 0.0001
  Normalizat = 1.19936
  Prefactor  = 1.05716
 **********
 **   18 **HESSE 
 **********

 FCN=   7615.964     FROM HESSE     STATUS=OK           221 CALLS     1790 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.3579        4.4847        .32744E-03   -1.5475    
   3  Prefactor     13.894        17.255        .10747E-03   -1.4962    
   4  Prefactor     .10000E-03    153.32        .21395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3438        206.08        .26421E-03   -1.5402    
   6  Prefactor     .10000E-03    20.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.8168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    14.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.3238        .17715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1707        1.7745        .10001E-03   -1.5413    
  11  norm          7.4427        14.941        .14709E-03   -1.5162    
  12  Prefactor     .10000E-03    38.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.262        13.964        .11005E-03   -1.4979    
  15  norm          .10000E-03    14.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1994        .28982        .42312E-03   -.86623    
  17  Prefactor     1.0572        .10507        .16470E-03   -.90848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0217e-11
Minuit parameter uncertainties:
  1  4.79641e-06
  2  4.48582
  3  17.261
  4  1.62497e-05
  5  44.1119
  6  1.92392e-05
  7  2.23177e-05
  8  2.11837e-05
  9  2.40213e-06
  10  1.77459
  11  14.949
  12  6.35684e-05
  13  7.35763e-07
  14  13.9678
  15  1.34573e-05
  16  0.290206
  17  0.105093
Done.

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

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  1.000e-04  2.232e-05  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.057e+00  1.051e-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:  1.199e+00  2.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/388386/likelihoodResults_360892801_361152001_4FGL_J0940.0-2828_daily_bin469.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) = 7615.96445158
delta logL = -0.0006992003091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7615.96375322
delta logL = -8.43853740662e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3620       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0573       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=   7615.964     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.3793        .90712E-02** at limit **
   2  alpha         2.3951        3.5997        .41231       -.23691E-04
   3  Normalizat    1.1994        .24869        .95510E-01   -.15748E-03
   4  Prefactor     1.0572        .92152E-01    .39501E-01   -.25285E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.39511
  Normalizat = 1.19936
  Prefactor  = 1.05716
 **********
 **   18 **HESSE 
 **********

 FCN=   7615.964     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.5255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3951        3.5313        .50000       -.41967E-01
   3  Normalizat    1.1994        .27615        .42312E-03   -.86623    
   4  Prefactor     1.0572        .10263        .16470E-03   -.90848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17697e-10
Minuit parameter uncertainties:
  1  7.7117e-05
  2  2.51578
  3  0.276483
  4  0.102647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/388386': 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) = 7615.96375176
delta logL = 6.15109456703e-07

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  1.000e-04  7.712e-05  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  2.395e+00  2.516e+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.057e+00  1.026e-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:  1.199e+00  2.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/388386/cmap_HighResolution_360892801_361152001_4FGL_J0940.0-2828_daily_bin469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-05', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-08-31 20:24:31.392064', job_id='388386', GAL2='1.06', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630466671.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='6.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='469' AND source_name='4FGL J0940.0-2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:24:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 388386: <4FGL_J0940.0-2828_daily_bin469> in cluster <slac> Done

Job <4FGL_J0940.0-2828_daily_bin469> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 20:10:25 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 20:10:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 20:10:26 2021
Terminated at Tue Aug 31 20:24:32 2021
Results reported at Tue Aug 31 20:24:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.0-2828_daily_bin469 145.012 -28.4803 360892801 361152001 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 :                                   623.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            847 sec.

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

