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


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1213
RA = 145.586, Dec = -8.0076
tmin = 553737601, tmax = 553996801
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='447550', job_status='RUN', time_executed='2021-08-31 23:15:12.247582', time_epoch_executed='1630476912.25' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1213'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447550

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447550/ft1_4FGL_J0942.3-0800_daily_bin1213.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447550/ft2_4FGL_J0942.3-0800_daily_bin1213.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447550/ft1_4FGL_J0942.3-0800_daily_bin1213.fits outfile=/scratch/kocevski/447550/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1213.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=553737601.0 tmax=553996801.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 4.57
user 2.35
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447550/ft2_4FGL_J0942.3-0800_daily_bin1213.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/447550/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1213.fits evtable="EVENTS" outfile="/scratch/kocevski/447550/ft1_filtered_4FGL_J0942.3-0800_daily_bin1213.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 1.97
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447550/ft1_filtered_4FGL_J0942.3-0800_daily_bin1213.fits" evtable="EVENTS" scfile=/scratch/kocevski/447550/ft2_4FGL_J0942.3-0800_daily_bin1213.fits sctable="SC_DATA" outfile=/scratch/kocevski/447550/ltcube_553737601_553996801_4FGL_J0942.3-0800_daily_bin1213.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/447550/ft2_4FGL_J0942.3-0800_daily_bin1213.fits
.....................!
real 14.16
user 12.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447550/ft1_filtered_4FGL_J0942.3-0800_daily_bin1213.fits evtable="EVENTS" scfile=/scratch/kocevski/447550/ft2_4FGL_J0942.3-0800_daily_bin1213.fits sctable="SC_DATA" expcube=/scratch/kocevski/447550/ltcube_553737601_553996801_4FGL_J0942.3-0800_daily_bin1213.fits outfile=/scratch/kocevski/447550/expmap_553737601_553996801_4FGL_J0942.3-0800_daily_bin1213.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/447550/ltcube_553737601_553996801_4FGL_J0942.3-0800_daily_bin1213.fits
.....................!
real 203.35
user 186.79
sys 4.06

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/447550/ft1_filtered_4FGL_J0942.3-0800_daily_bin1213.fits scfile=/scratch/kocevski/447550/ft2_4FGL_J0942.3-0800_daily_bin1213.fits outfile=/scratch/kocevski/447550/cmap_553737601_553996801_4FGL_J0942.3-0800_daily_bin1213.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.67
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447550/ft1_filtered_4FGL_J0942.3-0800_daily_bin1213.fits scfile=/scratch/kocevski/447550/ft2_4FGL_J0942.3-0800_daily_bin1213.fits outfile=/scratch/kocevski/447550/cmap_HighResolution_553737601_553996801_4FGL_J0942.3-0800_daily_bin1213.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.68
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447550/ft1_filtered_4FGL_J0942.3-0800_daily_bin1213.fits evtable="EVENTS" scfile=/scratch/kocevski/447550/ft2_4FGL_J0942.3-0800_daily_bin1213.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447550/Model_4FGL_J0942.3-0800_daily_bin1213.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/447550/ft1_filtered_4FGL_J0942.3-0800_daily_bin1213.fits.....................!
real 76.87
user 73.50
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/447550/ft1_filtered_4FGL_J0942.3-0800_daily_bin1213.fits', '/scratch/kocevski/447550/ft2_4FGL_J0942.3-0800_daily_bin1213.fits', expMap='/scratch/kocevski/447550/expmap_553737601_553996801_4FGL_J0942.3-0800_daily_bin1213.fits', expCube='/scratch/kocevski/447550/ltcube_553737601_553996801_4FGL_J0942.3-0800_daily_bin1213.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/447550/Model_4FGL_J0942.3-0800_daily_bin1213.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/447550/ft1_filtered_4FGL_J0942.3-0800_daily_bin1213.fits
Spacecraft file(s): /scratch/kocevski/447550/ft2_4FGL_J0942.3-0800_daily_bin1213.fits
Exposure map: /scratch/kocevski/447550/expmap_553737601_553996801_4FGL_J0942.3-0800_daily_bin1213.fits
Exposure cube: /scratch/kocevski/447550/ltcube_553737601_553996801_4FGL_J0942.3-0800_daily_bin1213.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/447550/Model_4FGL_J0942.3-0800_daily_bin1213.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) = 7539.04939548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12623E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21468       1.0000         .10000E-03   10000.    
     4 'norm      '    8.4495       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.233       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1062       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.823       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .67034       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3715       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1506       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98537       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=   7539.045     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1900 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7947        .41373E-01** at limit **
   2  Prefactor     .10000E-03    18.611        .90712E-02** at limit **
   3  Prefactor     .92577E-01    4.8107        .10044        .15343E-03
   4  norm          8.4494        7.6326        .34477E-02    .17783E-02
   5  Prefactor     .10000E-03    17.160        .90712E-02** at limit **
   6  Prefactor     46.233        45.169        .14742E-02    .93626E-03
   7  Prefactor     6.1033        12.752        .40618E-02    .26766E-03
   8  Prefactor     26.822        36.241        .19338E-02   -.44957E-03
   9  Prefactor     .10000E-03    7.1970        .90712E-02** at limit **
  10  Prefactor     .10000E-03    3.2222        .90712E-02** at limit **
  11  norm          .10000E-03    1.9199        .90712E-02** at limit **
  12  norm          .10000E-03    1.6502        .90712E-02** at limit **
  13  norm          .10000E-03    .21014        .90712E-03** at limit **
  14  norm          .67086        1.3036        .26444E-01    .12072E-02
  15  norm          5.3698        6.0374        .43349E-02    .54426E-03
  16  Prefactor     .10000E-03    13.837        .90712E-02** at limit **
  17  Prefactor     .10000E-03    17.904        .90712E-02** at limit **
  18  Normalizat    1.1505        .18542        .62298E-01    .82250E-05
  19  Prefactor     .98559        .12453        .46084E-01    .40208E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0925773
  norm       = 8.44942
  Prefactor  = 0.000100001
  Prefactor  = 46.2332
  Prefactor  = 6.10328
  Prefactor  = 26.8223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.670858
  norm       = 5.36985
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.15052
  Prefactor  = 0.985593
 **********
 **   18 **HESSE 
 **********

 FCN=   7539.045     FROM HESSE     STATUS=OK           274 CALLS     2174 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.5007        .22619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.208        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .92577E-01    9.6236        .60979E-01   -1.5647    
   4  norm          8.4494        7.6312        .68955E-03   -1.5127    
   5  Prefactor     .10000E-03    17.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.233        45.355        .58968E-04   -1.4347    
   7  Prefactor     6.1033        12.746        .16247E-03   -1.5214    
   8  Prefactor     26.822        36.427        .77351E-04   -1.4672    
   9  Prefactor     .10000E-03    7.2005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2269        .15221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9294        .11747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.6824        .10888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .21030        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .67086        1.0730        .13340E-02   -1.5544    
  15  norm          5.3698        6.0344        .17340E-03   -1.5244    
  16  Prefactor     .10000E-03    13.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1505        .22426        .27556E-03   -.88146    
  19  Prefactor     .98559        .15040        .20437E-03   -.93211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.94197e-09
Minuit parameter uncertainties:
  1  6.45209e-06
  2  0.000210628
  3  1.88707
  4  7.63211
  5  0.000275238
  6  45.3893
  7  12.7513
  8  36.4571
  9  3.14443e-06
  10  2.74525e-06
  11  2.49516e-06
  12  1.3803e-06
  13  3.4123e-07
  14  1.07303
  15  6.03503
  16  3.53477e-05
  17  0.000363675
  18  0.224444
  19  0.150466
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.000e-04  1.380e-06  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:  9.856e-01  1.505e-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:  1.151e+00  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.586 -8.008
Photon Flux Upper Limit: 4.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447550/likelihoodResults_553737601_553996801_4FGL_J0942.3-0800_daily_bin1213.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): 102
logL (Free Index) = 7539.04472768
delta logL = -0.000174705586687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7539.04455528
delta logL = -2.31396916206e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9208       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98543       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=   7539.045     FROM MIGRAD    STATUS=FAILED        89 CALLS      287 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10208E-03    82.077        .15501E-02** at limit **
   2  alpha         2.7492        3.5028        .50000        .15251E-04
   3  Normalizat    1.1505        .30883E-01    .27556E-03    .36422E-03
   4  Prefactor     .98559        .21503E-01    .20437E-03    .20232E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7539.045     FROM SIMPLEX   STATUS=UNCHANGED    143 CALLS      430 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10208E-03    82.077        .22060E-03** at limit **
   2  alpha         2.7492        3.5028        .47208E-03    .15251E-04
   3  Normalizat    1.1505        .30883E-01    .62092E-05    .36422E-03
   4  Prefactor     .98559        .21503E-01    .43866E-05    .20232E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7539.045     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      510 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3220        .62002E-04** at limit **
   2  alpha         2.6070        3.4103        .50000        .15702E-05
   3  Normalizat    1.1505        .21381        .11022E-04   -.58420E-03
   4  Prefactor     .98559        .14892        .81748E-05   -.92759E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.60699
  Normalizat = 1.15052
  Prefactor  = 0.985591
 **********
 **   18 **HESSE 
 **********

 FCN=   7539.045     FROM HESSE     STATUS=OK            27 CALLS      537 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0586        .12400E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6070        3.2442        .50000        .42810E-01
   3  Normalizat    1.1505        .21386        .22045E-05   -.88146    
   4  Prefactor     .98559        .14898        .16350E-05   -.93211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.65979e-09
Minuit parameter uncertainties:
  1  2.05959e-05
  2  123.927
  3  0.214022
  4  0.149043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447550': 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) = 7539.04454766
delta logL = 5.31196565134e-06

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.000e-04  2.060e-05  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  2.607e+00  1.239e+02  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:  9.856e-01  1.490e-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:  1.151e+00  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.586 -8.008

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/447550/cmap_HighResolution_553737601_553996801_4FGL_J0942.3-0800_daily_bin1213.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', job_status='DONE', photon_flux_upper_limit='4.05e-08', time_completed='2021-08-31 23:26:13.817618', job_id='447550', GAL2='0.99', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630477573.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.31e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1213' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:26:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 447550: <4FGL_J0942.3-0800_daily_bin1213> in cluster <slac> Done

Job <4FGL_J0942.3-0800_daily_bin1213> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 23:11:51 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:11:52 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:11:52 2021
Terminated at Tue Aug 31 23:26:14 2021
Results reported at Tue Aug 31 23:26:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1213 145.586 -8.0076 553737601 553996801 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 :                                   621.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            863 sec.

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

