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


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1361
RA = 145.586, Dec = -8.0076
tmin = 592099201, tmax = 592358401
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='447766', job_status='RUN', time_executed='2021-08-31 23:12:28.965918', time_epoch_executed='1630476748.97' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447766/ft1_4FGL_J0942.3-0800_daily_bin1361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447766/ft2_4FGL_J0942.3-0800_daily_bin1361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447766/ft1_4FGL_J0942.3-0800_daily_bin1361.fits outfile=/scratch/kocevski/447766/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1361.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=592099201.0 tmax=592358401.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.62
user 3.33
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/447766/ft2_4FGL_J0942.3-0800_daily_bin1361.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447766/ft2_4FGL_J0942.3-0800_daily_bin1361.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/447766/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1361.fits evtable="EVENTS" outfile="/scratch/kocevski/447766/ft1_filtered_4FGL_J0942.3-0800_daily_bin1361.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.89
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447766/ft1_filtered_4FGL_J0942.3-0800_daily_bin1361.fits" evtable="EVENTS" scfile=/scratch/kocevski/447766/ft2_4FGL_J0942.3-0800_daily_bin1361.fits sctable="SC_DATA" outfile=/scratch/kocevski/447766/ltcube_592099201_592358401_4FGL_J0942.3-0800_daily_bin1361.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/447766/ft2_4FGL_J0942.3-0800_daily_bin1361.fits
.....................!
real 12.08
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447766/ft1_filtered_4FGL_J0942.3-0800_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/447766/ft2_4FGL_J0942.3-0800_daily_bin1361.fits sctable="SC_DATA" expcube=/scratch/kocevski/447766/ltcube_592099201_592358401_4FGL_J0942.3-0800_daily_bin1361.fits outfile=/scratch/kocevski/447766/expmap_592099201_592358401_4FGL_J0942.3-0800_daily_bin1361.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/447766/ltcube_592099201_592358401_4FGL_J0942.3-0800_daily_bin1361.fits
.....................!
real 193.20
user 187.54
sys 5.08

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
Added 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J0942.3-0800 @ 145.586 -8.0076

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/447766/ft1_filtered_4FGL_J0942.3-0800_daily_bin1361.fits scfile=/scratch/kocevski/447766/ft2_4FGL_J0942.3-0800_daily_bin1361.fits outfile=/scratch/kocevski/447766/cmap_592099201_592358401_4FGL_J0942.3-0800_daily_bin1361.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.586 yref=-8.0076 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447766/ft1_filtered_4FGL_J0942.3-0800_daily_bin1361.fits scfile=/scratch/kocevski/447766/ft2_4FGL_J0942.3-0800_daily_bin1361.fits outfile=/scratch/kocevski/447766/cmap_HighResolution_592099201_592358401_4FGL_J0942.3-0800_daily_bin1361.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.586 yref=-8.0076 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447766/ft1_filtered_4FGL_J0942.3-0800_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/447766/ft2_4FGL_J0942.3-0800_daily_bin1361.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447766/Model_4FGL_J0942.3-0800_daily_bin1361.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
Working on...
/scratch/kocevski/447766/ft1_filtered_4FGL_J0942.3-0800_daily_bin1361.fits.....................!
real 78.04
user 76.44
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/447766/ft1_filtered_4FGL_J0942.3-0800_daily_bin1361.fits', '/scratch/kocevski/447766/ft2_4FGL_J0942.3-0800_daily_bin1361.fits', expMap='/scratch/kocevski/447766/expmap_592099201_592358401_4FGL_J0942.3-0800_daily_bin1361.fits', expCube='/scratch/kocevski/447766/ltcube_592099201_592358401_4FGL_J0942.3-0800_daily_bin1361.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/447766/Model_4FGL_J0942.3-0800_daily_bin1361.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0942.3-0800'

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.319e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  2.008e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
241         beta:  1.442e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
242           Eb:  9.432e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/447766/ft1_filtered_4FGL_J0942.3-0800_daily_bin1361.fits
Spacecraft file(s): /scratch/kocevski/447766/ft2_4FGL_J0942.3-0800_daily_bin1361.fits
Exposure map: /scratch/kocevski/447766/expmap_592099201_592358401_4FGL_J0942.3-0800_daily_bin1361.fits
Exposure cube: /scratch/kocevski/447766/ltcube_592099201_592358401_4FGL_J0942.3-0800_daily_bin1361.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/447766/Model_4FGL_J0942.3-0800_daily_bin1361.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) = 7821.45902033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5552       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6491       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6644       1.0000         .10000E-03   10000.    
     4 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .88732       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0837       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.589       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17304E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .14865E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6729       1.0000         .10000E-03   10000.    
    13 'norm      '    .74753       1.0000         .10000E-03   10000.    
    14 'norm      '    .61587       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1002       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2801       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12116E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .81274       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1270       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7821.450     FROM MIGRAD    STATUS=FAILED       720 CALLS     2289 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5546        2.6440        .14163E-03   -.80190E-04
   2  Prefactor     7.6469        8.5343        .14500E-03   -.11526E-04
   3  Prefactor     7.6621        5.9306        .14485E-03   -.20249E-04
   4  norm          .10000E-03    5.3583        .36285E-02** at limit **
   5  Prefactor     .10000E-03    14.105        .36285E-03** at limit **
   6  Prefactor     .66595        173.16        .73874E-02    .92174E-03
   7  Prefactor     1.0767        25.112        .46176E-03   -.23340E-04
   8  Prefactor     .10000E-03    19.735        .18142E-02** at limit **
   9  Prefactor     16.662        26.894        .98335E-04    .65899E-04
  10  Prefactor     .10000E-03    34.720        .36828E-02** at limit **
  11  norm          .10000E-03    11.463        .32209E-02** at limit **
  12  norm          3.6732        2.4617        .11047E-03    .23257E-04
  13  norm          .74749        .57463        .57162E-03   -.27388E-03
  14  norm          .61559        .77184        .10759E-02   -.82802E-03
  15  norm          3.1015        7.8445        .23031E-03    .73549E-05
  16  Prefactor     2.3265        215.31        .27191E-03   -.86129E-05
  17  Prefactor     .10000E-03    56.737        .18142E-02** at limit **
  18  Normalizat    .81292        .20100        .29450E-03    .27022E-05
  19  Prefactor     1.1270        .14265        .18804E-03    .22513E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7821.450     FROM SIMPLEX   STATUS=UNCHANGED    820 CALLS     3109 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5546        2.6440        .65794E-07   -1.5388    
   2  Prefactor     7.6469        8.5343        .95407E-07   -1.5155    
   3  Prefactor     7.6621        5.9306        .97124E-07   -1.5154    
   4  norm          .10000E-03    5.3583        .37602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.105        .49366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66595        173.16        .19676E-06   -1.5545    
   7  Prefactor     1.0767        25.112        .82689E-07   -1.5500    
   8  Prefactor     .10000E-03    19.735        .71587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.662        26.894        .57546E-07   -1.4891    
  10  Prefactor     .10000E-03    34.720        .59508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.463        .22311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6732        2.4617        .63502E-07   -1.5325    
  13  norm          .74749        .57463        .67035E-07   -1.5535    
  14  norm          .61559        .77184        .69096E-07   -1.5551    
  15  norm          3.1015        7.8445        .10003E-06   -1.5356    
  16  Prefactor     2.3265        215.31        .13266E-05   -1.5403    
  17  Prefactor     .10000E-03    56.737        .57025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .81292        .20100        .42097E-07   -.99591    
  19  Prefactor     1.1270        .14265        .32216E-07   -.88607    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7821.450     FROM MIGRAD    STATUS=CONVERGED    255 CALLS     3364 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5546        2.6438        .56652E-05    .64216E-06
   2  Prefactor     7.6469        8.5337        .57999E-05    .23522E-06
   3  Prefactor     7.6621        5.9300        .57940E-05   -.39243E-06
   4  norm          .10000E-03    5.3992        .72569E-03** at limit **
   5  Prefactor     .10000E-03    14.106        .72569E-04** at limit **
   6  Prefactor     .66609        177.82        .14775E-02    .37047E-04
   7  Prefactor     1.0767        25.078        .18470E-04   -.98481E-06
   8  Prefactor     .10000E-03    19.739        .36285E-03** at limit **
   9  Prefactor     16.661        26.857        .39334E-05    .16764E-04
  10  Prefactor     .10000E-03    36.003        .14731E-03** at limit **
  11  norm          .10000E-03    11.540        .64419E-03** at limit **
  12  norm          3.6732        2.4617        .44189E-05    .20582E-06
  13  norm          .74749        .57425        .22865E-04    .20362E-03
  14  norm          .61560        .77165        .43037E-04    .79248E-06
  15  norm          3.1015        7.8418        .92125E-05    .44426E-05
  16  Prefactor     2.3266        214.91        .10877E-04   -.12543E-06
  17  Prefactor     .10000E-03    56.751        .36285E-03** at limit **
  18  Normalizat    .81292        .20061        .11780E-04    .46324E-05
  19  Prefactor     1.1270        .14275        .37607E-04    .11427E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.55462
  Prefactor  = 7.64692
  Prefactor  = 7.66207
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.666088
  Prefactor  = 1.07672
  Prefactor  = 0.0001
  Prefactor  = 16.6615
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.67318
  norm       = 0.747492
  norm       = 0.615597
  norm       = 3.10152
  Prefactor  = 2.3266
  Prefactor  = 0.0001
  Normalizat = 0.81292
  Prefactor  = 1.12703
 **********
 **   18 **HESSE 
 **********

 FCN=   7821.450     FROM HESSE     STATUS=OK           250 CALLS     3614 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5546        2.6438        .56652E-05   -1.5388    
   2  Prefactor     7.6469        8.5337        .57999E-05   -1.5155    
   3  Prefactor     7.6621        5.9281        .11588E-05   -1.5154    
   4  norm          .10000E-03    5.4009        .14514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.106        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66609        177.61        .29550E-03   -1.5545    
   7  Prefactor     1.0767        25.072        .36941E-05   -1.5500    
   8  Prefactor     .10000E-03    19.740        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.661        26.828        .78668E-06   -1.4891    
  10  Prefactor     .10000E-03    36.005        .29463E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.543        .12884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6732        2.4617        .44189E-05   -1.5325    
  13  norm          .74749        .57421        .22865E-04   -1.5535    
  14  norm          .61560        .77164        .17215E-05   -1.5551    
  15  norm          3.1015        7.8393        .18425E-05   -1.5356    
  16  Prefactor     2.3266        214.80        .10877E-04   -1.5403    
  17  Prefactor     .10000E-03    56.752        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .81292        .20040        .23560E-05   -.99591    
  19  Prefactor     1.1270        .14276        .75215E-05   -.88607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55883e-12
Minuit parameter uncertainties:
  1  2.64394
  2  8.53501
  3  5.92851
  4  2.42053e-07
  5  2.71544e-07
  6  21.8178
  7  10.3958
  8  3.16229e-07
  9  26.8472
  10  2.61521e-05
  11  9.05456e-06
  12  2.46172
  13  0.574211
  14  0.771653
  15  7.84187
  16  44.8759
  17  4.11428e-06
  18  0.200581
  19  0.142813
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  3.673e+00  2.462e+00  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  2.008e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
241         beta:  1.442e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
242           Eb:  9.432e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.127e+00  1.428e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  8.129e-01  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.99
Ra Dec: 145.586 -8.008
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 2.36e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 8.97e-06

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) = 7820.52145021
delta logL = 0.928746495671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7820.51895688
delta logL = 0.931239831784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7604       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2583       1.0000          .0000       5.0000    
     3 'Normalizat'    .82427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7820.519     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7604        2.4377        .52049E-02    .37190E-02
   2  alpha         1.2585        .41087        .40073        .12966E-04
   3  Normalizat    .82434        .16234        .66127E-01    .20396E-03
   4  Prefactor     1.1222        .12069        .36798E-01   -.36480E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.76036
  alpha      = 1.25847
  Normalizat = 0.824343
  Prefactor  = 1.12217
 **********
 **   18 **HESSE 
 **********

 FCN=   7820.519     FROM HESSE     STATUS=OK            29 CALLS      228 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7604        2.6719        .10751E-03   -1.5320    
   2  alpha         1.2585        .48851        .16289E-01   -.51969    
   3  Normalizat    .82434        .18867        .29254E-03   -.99172    
   4  Prefactor     1.1222        .14057        .18833E-03   -.88761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05832e-09
Minuit parameter uncertainties:
  1  2.67195
  2  0.492737
  3  0.188824
  4  0.140616
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447766': 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) = 7820.51895673
delta logL = 0.931239979896

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  3.760e+00  2.672e+00  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  1.258e+00  4.927e-01  0.000e+00  5.000e+00 ( 1.000e+00)
241         beta:  1.442e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
242           Eb:  9.432e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.122e+00  1.406e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  8.243e-01  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.86
Ra Dec: 145.586 -8.008
Photon Index (Free Index): 1.26 +/- 0.49
Photon Flux (Free Index): 1.42e-08 +/- 1.06e-08
Energy Flux (Free Index): 3.50e-05 +/- 3.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/447766/cmap_HighResolution_592099201_592358401_4FGL_J0942.3-0800_daily_bin1361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.36e-08', energy_flux2='3.50e-05', photon_flux_error='1.58e-08', dlogl='9.31e-01', energy_flux='1.34e-05', photon_flux2='1.42e-08', job_status='DONE', time_completed='2021-08-31 23:23:59.462141', photon_index_error2='0.49', photon_index2='1.26', ts='6.99', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='3.47e-05', EG='0.81', time_epoch_completed='1630477439.46', return_code='0', job_id='447766', GAL2='1.12', EG2='0.82', return_code2='0', energy_flux_error='8.97e-06', photon_flux_error2='1.06e-08', ts2='8.86', photon_index='2.01' WHERE bin_id='1361' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:23:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 447766: <4FGL_J0942.3-0800_daily_bin1361> in cluster <slac> Done

Job <4FGL_J0942.3-0800_daily_bin1361> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 23:12:10 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:12:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 23:12:12 2021
Terminated at Tue Aug 31 23:24:00 2021
Results reported at Tue Aug 31 23:24:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1361 145.586 -8.0076 592099201 592358401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0942.3-0800 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   681.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            710 sec.

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

