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


Performing analysis on: 4FGL_J0940.0-2828_daily_bin164
RA = 145.012, Dec = -28.4803
tmin = 281836801, tmax = 282096001
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='386739', job_status='RUN', time_executed='2021-08-31 20:05:43.172128', time_epoch_executed='1630465543.17' WHERE source_name='4FGL J0940.0-2828' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386739

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386739/ft1_4FGL_J0940.0-2828_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386739/ft2_4FGL_J0940.0-2828_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386739/ft1_4FGL_J0940.0-2828_daily_bin164.fits outfile=/scratch/kocevski/386739/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin164.fits ra=145.012 dec=-28.4803 rad=12.0 tmin=281836801.0 tmax=282096001.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.98
user 3.74
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386739/ft1_filtered_4FGL_J0940.0-2828_daily_bin164.fits" evtable="EVENTS" scfile=/scratch/kocevski/386739/ft2_4FGL_J0940.0-2828_daily_bin164.fits sctable="SC_DATA" outfile=/scratch/kocevski/386739/ltcube_281836801_282096001_4FGL_J0940.0-2828_daily_bin164.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/386739/ft2_4FGL_J0940.0-2828_daily_bin164.fits
.....................!
real 12.40
user 11.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386739/ft1_filtered_4FGL_J0940.0-2828_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/386739/ft2_4FGL_J0940.0-2828_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/386739/ltcube_281836801_282096001_4FGL_J0940.0-2828_daily_bin164.fits outfile=/scratch/kocevski/386739/expmap_281836801_282096001_4FGL_J0940.0-2828_daily_bin164.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/386739/ltcube_281836801_282096001_4FGL_J0940.0-2828_daily_bin164.fits
.....................!
real 193.58
user 187.70
sys 4.07

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/386739/ft1_filtered_4FGL_J0940.0-2828_daily_bin164.fits scfile=/scratch/kocevski/386739/ft2_4FGL_J0940.0-2828_daily_bin164.fits outfile=/scratch/kocevski/386739/cmap_281836801_282096001_4FGL_J0940.0-2828_daily_bin164.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/386739/ft1_filtered_4FGL_J0940.0-2828_daily_bin164.fits scfile=/scratch/kocevski/386739/ft2_4FGL_J0940.0-2828_daily_bin164.fits outfile=/scratch/kocevski/386739/cmap_HighResolution_281836801_282096001_4FGL_J0940.0-2828_daily_bin164.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.604       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.892       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3057       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.574       1.0000         .10000E-03   10000.    
     7 'norm      '    10.172       1.0000         .10000E-03   10000.    
     8 'norm      '    10.913       1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4574       1.0000         .10000E-03   10000.    
    11 'norm      '    11.624       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11537E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10344E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .89778       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1090       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=   6679.384     FROM MIGRAD    STATUS=CONVERGED    332 CALLS     1574 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.704       -.90575E-05** at limit **
   2  Prefactor     13.604        8.8745        .47717E-06    .58430E-05
   3  Prefactor     15.916        15.840       -.83799E-05    .13921E-04
   4  Prefactor     8.2946        42.799       -.14507E-04   -.80133E-05
   5  Prefactor     .10000E-03    21.042       -.71311E-05** at limit **
   6  Prefactor     11.567        20.186        .37912E-05   -.99648E-05
   7  norm          10.173        9.8195       -.14405E-05   -.16427E-02
   8  norm          10.833        32.359       -.11225E-04   -.15298E-04
   9  norm          .10000E-03    5.9567       -.88859E-07** at limit **
  10  norm          1.4566        1.6549       -.11597E-06   -.54663E-03
  11  norm          11.613        19.190        .10112E-04   -.19833E-04
  12  Prefactor     .10000E-03    23.200        .13818E-04** at limit **
  13  Prefactor     .10000E-03    11.351       -.26966E-06** at limit **
  14  norm          .10000E-03    8.1401       -.52688E-06** at limit **
  15  norm          .10000E-03    5.6532       -.12732E-06** at limit **
  16  Normalizat    .89851        .28386       -.72917E-06    .68348E-05
  17  Prefactor     1.1088        .10244        .98147E-06   -.98174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.6039
  Prefactor  = 15.9159
  Prefactor  = 8.29464
  Prefactor  = 0.0001
  Prefactor  = 11.5667
  norm       = 10.1728
  norm       = 10.8326
  norm       = 0.0001
  norm       = 1.45661
  norm       = 11.6127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.898506
  Prefactor  = 1.10878
 **********
 **   18 **HESSE 
 **********

 FCN=   6679.384     FROM HESSE     STATUS=OK           225 CALLS     1799 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.604        8.9037        .10860E-03   -1.4970    
   3  Prefactor     15.916        15.760        .10047E-03   -1.4910    
   4  Prefactor     8.2946        42.910        .13911E-03   -1.5132    
   5  Prefactor     .10000E-03    21.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.567        20.159        .11775E-03   -1.5028    
   7  norm          10.173        10.075        .62816E-03   -1.5070    
   8  norm          10.833        32.459        .12128E-03   -1.5050    
   9  norm          .10000E-03    5.9712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4566        1.6377        .10636E-03   -1.5467    
  11  norm          11.613        19.020        .11750E-03   -1.5026    
  12  Prefactor     .10000E-03    23.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.1673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.6742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .89851        .30562        .47307E-03   -.96513    
  17  Prefactor     1.1088        .11230        .15941E-03   -.89186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88177e-09
Minuit parameter uncertainties:
  1  2.37893e-06
  2  8.90452
  3  15.7638
  4  37.7742
  5  8.03101e-05
  6  20.1713
  7  10.0763
  8  32.5115
  9  1.2578e-06
  10  1.63777
  11  19.0299
  12  7.66478e-05
  13  8.70451e-05
  14  7.6465e-05
  15  4.25779e-05
  16  0.306214
  17  0.112322
Done.

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

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  1.017e+01  1.008e+01  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.109e+00  1.123e-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:  8.985e-01  3.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.48
Ra Dec: 145.012 -28.480
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 5.86e-08 +/- 5.80e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 2.06e-05

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

Saving results to:
/scratch/kocevski/386739/likelihoodResults_281836801_282096001_4FGL_J0940.0-2828_daily_bin164.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) = 6679.07537957
delta logL = 0.309108058973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6679.07165922
delta logL = 0.312828415033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7923       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3908       1.0000          .0000       5.0000    
     3 'Normalizat'    .83169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1235       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=   6679.072     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      244 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7808        71.011        .45945E-02    .89111E-03
   2  alpha         3.3940        4.1915        .43607        .91859E-04
   3  Normalizat    .83148        .98656E-01    .11050       -.39175E-04
   4  Prefactor     1.1236        .33371E-01    .36755E-01   -.33619E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.78076
  alpha      = 3.39401
  Normalizat = 0.83148
  Prefactor  = 1.12355
 **********
 **   18 **HESSE 
 **********

 FCN=   6679.072     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7808        16.265        .13216E-03   -1.5271    
   2  alpha         3.3940        3.7978        .15857E-01    .36570    
   3  Normalizat    .83148        .32033        .48999E-03   -.98911    
   4  Prefactor     1.1236        .11423        .15846E-03   -.88717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63097e-10
Minuit parameter uncertainties:
  1  16.2798
  2  2.60161
  3  0.321059
  4  0.114253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386739': 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) = 6679.07165521
delta logL = 0.312832424998

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  4.781e+00  1.628e+01  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  3.394e+00  2.602e+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.124e+00  1.143e-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:  8.315e-01  3.211e-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): 3.39 +/- 2.60
Photon Flux (Free Index): 1.17e-07 +/- 1.19e-07
Energy Flux (Free Index): 2.22e-05 +/- 1.85e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/386739/cmap_HighResolution_281836801_282096001_4FGL_J0940.0-2828_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.55e-05', comment='SUCCESS', photon_flux='5.86e-08', energy_flux2='2.22e-05', photon_flux_error='5.80e-08', dlogl='3.13e-01', energy_flux='2.08e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-08-31 20:15:42.593223', photon_index_error2='2.60', photon_index2='3.39', ts='1.48', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.85e-07', energy_flux_error2='1.85e-05', EG='0.90', time_epoch_completed='1630466142.59', return_code='0', job_id='386739', GAL2='1.12', EG2='0.83', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='1.19e-07', ts2='2.19', photon_index='2.33' WHERE bin_id='164' AND source_name='4FGL J0940.0-2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:15:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 386739: <4FGL_J0940.0-2828_daily_bin164> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.0-2828_daily_bin164 145.012 -28.4803 281836801 282096001 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 :                                   594.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            622 sec.

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

