/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 118 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 = 7404
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0940.0-2828_daily_bin104
RA = 145.012, Dec = -28.4803
tmin = 266284801, tmax = 266544001
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='385665', job_status='RUN', time_executed='2021-08-31 20:03:19.628222', time_epoch_executed='1630465399.63' WHERE source_name='4FGL J0940.0-2828' and cadence='daily' and bin_id='104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385665

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385665/ft1_4FGL_J0940.0-2828_daily_bin104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385665/ft2_4FGL_J0940.0-2828_daily_bin104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385665/ft1_4FGL_J0940.0-2828_daily_bin104.fits outfile=/scratch/kocevski/385665/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin104.fits ra=145.012 dec=-28.4803 rad=12.0 tmin=266284801.0 tmax=266544001.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 1.40
user 1.21
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385665/ft1_filtered_4FGL_J0940.0-2828_daily_bin104.fits" evtable="EVENTS" scfile=/scratch/kocevski/385665/ft2_4FGL_J0940.0-2828_daily_bin104.fits sctable="SC_DATA" outfile=/scratch/kocevski/385665/ltcube_266284801_266544001_4FGL_J0940.0-2828_daily_bin104.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/385665/ft2_4FGL_J0940.0-2828_daily_bin104.fits
.....................!
real 12.89
user 12.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385665/ft1_filtered_4FGL_J0940.0-2828_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/385665/ft2_4FGL_J0940.0-2828_daily_bin104.fits sctable="SC_DATA" expcube=/scratch/kocevski/385665/ltcube_266284801_266544001_4FGL_J0940.0-2828_daily_bin104.fits outfile=/scratch/kocevski/385665/expmap_266284801_266544001_4FGL_J0940.0-2828_daily_bin104.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/385665/ltcube_266284801_266544001_4FGL_J0940.0-2828_daily_bin104.fits
.....................!
real 191.19
user 185.81
sys 4.98

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/385665/ft1_filtered_4FGL_J0940.0-2828_daily_bin104.fits scfile=/scratch/kocevski/385665/ft2_4FGL_J0940.0-2828_daily_bin104.fits outfile=/scratch/kocevski/385665/cmap_266284801_266544001_4FGL_J0940.0-2828_daily_bin104.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385665/ft1_filtered_4FGL_J0940.0-2828_daily_bin104.fits scfile=/scratch/kocevski/385665/ft2_4FGL_J0940.0-2828_daily_bin104.fits outfile=/scratch/kocevski/385665/cmap_HighResolution_266284801_266544001_4FGL_J0940.0-2828_daily_bin104.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385665/ft1_filtered_4FGL_J0940.0-2828_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/385665/ft2_4FGL_J0940.0-2828_daily_bin104.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385665/Model_4FGL_J0940.0-2828_daily_bin104.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/385665/ft1_filtered_4FGL_J0940.0-2828_daily_bin104.fits.....................!
real 125.64
user 123.84
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.400       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5451       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.408       1.0000         .10000E-03   10000.    
     7 'norm      '    6.6898       1.0000         .10000E-03   10000.    
     8 'norm      '    17.254       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.497       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2570       1.0000         .10000E-03   10000.    
    14 'norm      '    .53608       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0408       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98422       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=   11639.52     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1608 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.401        48.964       -.30372E-07   -.20920E-05
   2  Prefactor     9.5454        6.3081       -.22192E-07    .24574E-04
   3  Prefactor     .10000E-03    9.0344        .39143E-06** at limit **
   4  Prefactor     .10000E-03    45.302        .61149E-05** at limit **
   5  Prefactor     .10000E-03    43.300       -.48292E-05** at limit **
   6  Prefactor     21.407        11.492       -.19700E-06   -.93829E-04
   7  norm          6.6896        5.7035        .18016E-05    .11097E-02
   8  norm          17.254        11.910        .93743E-07    .19027E-04
   9  norm          .10000E-03    7.0298        .11101E-06** at limit **
  10  norm          .10000E-03    .54755        .18751E-06** at limit **
  11  norm          .10000E-03    3.3694        .12229E-06** at limit **
  12  Prefactor     17.499        22.588       -.60196E-06   -.11479E-03
  13  Prefactor     3.2524        20.221       -.15559E-05   -.11302E-03
  14  norm          .52790        13.308        .60421E-05   -.44642E-03
  15  norm          .10000E-03    1.5938       -.23792E-07** at limit **
  16  Normalizat    1.0408        .18128       -.74239E-06   -.96770E-04
  17  Prefactor     .98420        .69706E-01    .93226E-07   -.66585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.401
  Prefactor  = 9.54539
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 21.4069
  norm       = 6.68962
  norm       = 17.2538
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.4986
  Prefactor  = 3.25241
  norm       = 0.527905
  norm       = 0.0001
  Normalizat = 1.04081
  Prefactor  = 0.984201
 **********
 **   18 **HESSE 
 **********

 FCN=   11639.52     FROM HESSE     STATUS=OK           227 CALLS     1835 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.401        48.985        .48184E-04   -1.4040    
   2  Prefactor     9.5454        6.3316        .12971E-03   -1.5090    
   3  Prefactor     .10000E-03    9.1371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    44.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.407        11.508        .86568E-04   -1.4782    
   7  norm          6.6896        6.4285        .77570E-03   -1.5191    
   8  norm          17.254        11.916        .96423E-04   -1.4877    
   9  norm          .10000E-03    7.1193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4315        .15252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.3849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.499        22.513        .95749E-04   -1.4871    
  13  Prefactor     3.2524        19.454        .22441E-03   -1.5347    
  14  norm          .52790        21.342        .42507E-02   -1.5563    
  15  norm          .10000E-03    1.5974        .13300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0408        .19733        .38551E-03   -.91675    
  17  Prefactor     .98420        .77180E-01    .15532E-03   -.93258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57917e-09
Minuit parameter uncertainties:
  1  49.0138
  2  6.33201
  3  1.08145e-05
  4  0.000389654
  5  0.00031494
  6  11.5094
  7  6.42916
  8  11.9175
  9  1.60982e-06
  10  8.50286e-06
  11  3.86643e-07
  12  22.5242
  13  15.9165
  14  6.715
  15  2.72823e-06
  16  0.197465
  17  0.0771887
Done.

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

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  6.690e+00  6.429e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  2.330e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
329         beta:  1.766e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  7.494e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  9.842e-01  7.719e-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.041e+00  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 145.012 -28.480
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/385665/likelihoodResults_266284801_266544001_4FGL_J0940.0-2828_daily_bin104.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) = 11636.0645785
delta logL = 3.4567475438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11636.0388752
delta logL = 3.48245077375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1669       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0654       1.0000          .0000       5.0000    
     3 'Normalizat'    .91258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0081       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=   11636.04     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      250 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1707        11.706        .69944E-02    .42746E-03
   2  alpha         4.0644        4.1667        .29862        .67653E-04
   3  Normalizat    .91270        .73463E-01    .92091E-01    .20279E-04
   4  Prefactor     1.0081        .28625E-01    .43614E-01   -.49259E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.17068
  alpha      = 4.06442
  Normalizat = 0.912702
  Prefactor  = 1.00811
 **********
 **   18 **HESSE 
 **********

 FCN=   11636.04     FROM HESSE     STATUS=OK            31 CALLS      281 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1707        2.8183        .62225E-04   -1.5413    
   2  alpha         4.0644        .77321        .13280E-02    .67612    
   3  Normalizat    .91270        .19733        .40790E-03   -.96015    
   4  Prefactor     1.0081        .75812E-01    .15351E-03   -.92460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97137e-12
Minuit parameter uncertainties:
  1  2.81852
  2  0.79506
  3  0.197486
  4  0.07582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385665': 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) = 11636.0388737
delta logL = 3.48245231811

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  2.171e+00  2.819e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  4.064e+00  7.951e-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.008e+00  7.582e-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.127e-01  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.98
Ra Dec: 145.012 -28.480
Photon Index (Free Index): 4.06 +/- 0.80
Photon Flux (Free Index): 1.53e-07 +/- 6.55e-08
Energy Flux (Free Index): 2.45e-05 +/- 1.05e-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/385665/cmap_HighResolution_266284801_266544001_4FGL_J0940.0-2828_daily_bin104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-05', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='2.45e-05', photon_flux_error='3.70e-08', dlogl='3.48e+00', energy_flux='1.37e-05', photon_flux2='1.53e-07', job_status='DONE', time_completed='2021-08-31 20:16:59.284949', photon_index_error2='0.80', photon_index2='4.06', ts='1.46', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.05e-05', EG='1.04', time_epoch_completed='1630466219.29', return_code='0', job_id='385665', GAL2='1.01', EG2='0.91', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='6.55e-08', ts2='8.98', photon_index='2.33' WHERE bin_id='104' AND source_name='4FGL J0940.0-2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:16:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 385665: <4FGL_J0940.0-2828_daily_bin104> in cluster <slac> Done

Job <4FGL_J0940.0-2828_daily_bin104> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 20:01:07 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 20:01:09 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:01:09 2021
Terminated at Tue Aug 31 20:17:00 2021
Results reported at Tue Aug 31 20:17:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.0-2828_daily_bin104 145.012 -28.4803 266284801 266544001 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 :                                   818.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            953 sec.

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

