/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 171 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin418
RA = 354.904, Dec = 2.7102
tmin = 347673601, tmax = 347932801
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='71570', job_status='RUN', time_executed='2021-09-30 02:38:23.297989', time_epoch_executed='1632994703.3' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71570

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71570/ft1_4FGL_J2339.6+0242_daily_bin418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71570/ft2_4FGL_J2339.6+0242_daily_bin418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71570/ft1_4FGL_J2339.6+0242_daily_bin418.fits outfile=/scratch/kocevski/71570/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin418.fits ra=354.904 dec=2.7102 rad=12.0 tmin=347673601.0 tmax=347932801.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.52
user 3.27
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/71570/ft2_4FGL_J2339.6+0242_daily_bin418.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71570/ft2_4FGL_J2339.6+0242_daily_bin418.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/71570/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin418.fits evtable="EVENTS" outfile="/scratch/kocevski/71570/ft1_filtered_4FGL_J2339.6+0242_daily_bin418.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/71570/ft1_filtered_4FGL_J2339.6+0242_daily_bin418.fits" evtable="EVENTS" scfile=/scratch/kocevski/71570/ft2_4FGL_J2339.6+0242_daily_bin418.fits sctable="SC_DATA" outfile=/scratch/kocevski/71570/ltcube_347673601_347932801_4FGL_J2339.6+0242_daily_bin418.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/71570/ft2_4FGL_J2339.6+0242_daily_bin418.fits
.....................!
real 12.14
user 11.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71570/ft1_filtered_4FGL_J2339.6+0242_daily_bin418.fits evtable="EVENTS" scfile=/scratch/kocevski/71570/ft2_4FGL_J2339.6+0242_daily_bin418.fits sctable="SC_DATA" expcube=/scratch/kocevski/71570/ltcube_347673601_347932801_4FGL_J2339.6+0242_daily_bin418.fits outfile=/scratch/kocevski/71570/expmap_347673601_347932801_4FGL_J2339.6+0242_daily_bin418.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/71570/ltcube_347673601_347932801_4FGL_J2339.6+0242_daily_bin418.fits
.....................!
real 191.75
user 185.74
sys 5.60

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 J2339.6+0242 @ 354.904 2.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/71570/ft1_filtered_4FGL_J2339.6+0242_daily_bin418.fits scfile=/scratch/kocevski/71570/ft2_4FGL_J2339.6+0242_daily_bin418.fits outfile=/scratch/kocevski/71570/cmap_347673601_347932801_4FGL_J2339.6+0242_daily_bin418.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=354.904 yref=2.7102 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71570/ft1_filtered_4FGL_J2339.6+0242_daily_bin418.fits scfile=/scratch/kocevski/71570/ft2_4FGL_J2339.6+0242_daily_bin418.fits outfile=/scratch/kocevski/71570/cmap_HighResolution_347673601_347932801_4FGL_J2339.6+0242_daily_bin418.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=354.904 yref=2.7102 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/71570/ft1_filtered_4FGL_J2339.6+0242_daily_bin418.fits evtable="EVENTS" scfile=/scratch/kocevski/71570/ft2_4FGL_J2339.6+0242_daily_bin418.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/71570/Model_4FGL_J2339.6+0242_daily_bin418.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/71570/ft1_filtered_4FGL_J2339.6+0242_daily_bin418.fits.....................!
real 56.62
user 55.23
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/71570/ft1_filtered_4FGL_J2339.6+0242_daily_bin418.fits', '/scratch/kocevski/71570/ft2_4FGL_J2339.6+0242_daily_bin418.fits', expMap='/scratch/kocevski/71570/expmap_347673601_347932801_4FGL_J2339.6+0242_daily_bin418.fits', expCube='/scratch/kocevski/71570/ltcube_347673601_347932801_4FGL_J2339.6+0242_daily_bin418.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/71570/Model_4FGL_J2339.6+0242_daily_bin418.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2339.6+0242'

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  8.280e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/71570/ft1_filtered_4FGL_J2339.6+0242_daily_bin418.fits
Spacecraft file(s): /scratch/kocevski/71570/ft2_4FGL_J2339.6+0242_daily_bin418.fits
Exposure map: /scratch/kocevski/71570/expmap_347673601_347932801_4FGL_J2339.6+0242_daily_bin418.fits
Exposure cube: /scratch/kocevski/71570/ltcube_347673601_347932801_4FGL_J2339.6+0242_daily_bin418.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/71570/Model_4FGL_J2339.6+0242_daily_bin418.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) = 5232.30628383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20147E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .14873E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.424       1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.190       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14945E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6518       1.0000         .10000E-03   10000.    
    14 'norm      '    .11811E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1429       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.746       1.0000         .10000E-03   10000.    
    22 'norm      '    9.7062       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5981       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.1833       1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.713       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0205       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5232.261     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3940 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6461       -.22114E-06** at limit **
   2  Prefactor     .10000E-03    27.540       -.10684E-06** at limit **
   3  Prefactor     .10000E-03    49.541       -.14744E-04** at limit **
   4  Prefactor     .10000E-03    2.4696       -.83420E-07** at limit **
   5  norm          .10000E-03    2.6594       -.53948E-06** at limit **
   6  norm          .10000E-03    4.4975       -.29454E-05** at limit **
   7  Prefactor     13.415        13.166       -.28779E-07    .34880E-04
   8  norm          .10000E-03    6.9976       -.32211E-06** at limit **
   9  Prefactor     56.193        45.587       -.11235E-06    .44642E-05
  10  Prefactor     .10000E-03    7.3793       -.18812E-06** at limit **
  11  Prefactor     .10007E-03    27.852        .78199E-05** at limit **
  12  Prefactor     .10000E-03    8.6134       -.33885E-06** at limit **
  13  norm          1.6517        1.0790        .23622E-07    .40376E-03
  14  norm          .10000E-03    8.1871       -.68141E-06** at limit **
  15  Prefactor     .10000E-03    3.5929       -.85514E-07** at limit **
  16  Prefactor     .10000E-03    21.025       -.22731E-06** at limit **
  17  norm          .10000E-03    2.6905        .63054E-07** at limit **
  18  Prefactor     2.1420        6.0372       -.13894E-05    .20298E-03
  19  Prefactor     .10000E-03    87.622       -.59914E-06** at limit **
  20  Prefactor     .10000E-03    7.3193        .63727E-06** at limit **
  21  Prefactor     25.736        23.985        .80682E-07   -.21861E-04
  22  norm          9.7043        20.341       -.17792E-07    .22917E-04
  23  norm          .10000E-03    12.354       -.43150E-07** at limit **
  24  Prefactor     .10000E-03    93.674       -.16068E-05** at limit **
  25  Prefactor     1.5957        5.0835       -.15213E-05    .10242E-03
  26  Prefactor     3.0946        130.69        .66107E-05    .28792E-04
  27  Prefactor     18.709        22.076       -.88745E-07   -.66710E-04
  28  Prefactor     .10000E-03    16.125        .11727E-06** at limit **
  29  Normalizat    1.0207        .20761        .13889E-05    .26686E-03
  30  Prefactor     .86383        .13706        .53808E-06    .92902E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 13.4147
  norm       = 0.0001
  Prefactor  = 56.1927
  Prefactor  = 0.0001
  Prefactor  = 0.000100071
  Prefactor  = 0.0001
  norm       = 1.65171
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.7365
  norm       = 9.70425
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.59569
  Prefactor  = 3.0946
  Prefactor  = 18.7086
  Prefactor  = 0.0001
  Normalizat = 1.02072
  Prefactor  = 0.863828
 **********
 **   18 **HESSE 
 **********

 FCN=   5232.261     FROM HESSE     STATUS=OK           584 CALLS     4524 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    65.923        .51970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4736        .11102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.7412        .22989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.578        .25593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.415        13.095        .10933E-03   -1.4975    
   8  norm          .10000E-03    7.0283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     56.193        45.588        .53514E-04   -1.4207    
  10  Prefactor     .10000E-03    7.4176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10007E-03    92.527        .51836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.6782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6517        1.0767        .32848E-04   -1.5451    
  14  norm          .10000E-03    8.5785        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.6079        .13390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6968        .11581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1420        6.0204        .28154E-03   -1.5415    
  19  Prefactor     .10000E-03    87.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.3501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.736        23.953        .78949E-04   -1.4693    
  22  norm          9.7043        20.321        .12863E-03   -1.5085    
  23  norm          .10000E-03    12.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    94.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.5957        5.1222        .27014E-03   -1.5455    
  26  Prefactor     3.0946        133.21        .22713E-03   -1.5356    
  27  Prefactor     18.709        22.069        .92587E-04   -1.4843    
  28  Prefactor     .10000E-03    16.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0207        .24186        .27465E-03   -.92339    
  30  Prefactor     .86383        .15882        .20403E-03   -.97417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56535e-09
Minuit parameter uncertainties:
  1  3.54783e-06
  2  2.32042e-06
  3  0.000130199
  4  1.13708e-06
  5  8.0512e-06
  6  0.000448516
  7  13.0979
  8  1.38219e-05
  9  45.616
  10  7.1454e-06
  11  0.00512461
  12  5.04103e-06
  13  1.07673
  14  1.39201e-05
  15  5.00297e-06
  16  8.88444e-05
  17  6.80879e-06
  18  6.02208
  19  8.42433e-05
  20  1.74862e-05
  21  23.9621
  22  20.3357
  23  1.37391e-05
  24  0.000118836
  25  5.12361
  26  40.7027
  27  22.079
  28  8.95787e-06
  29  0.242116
  30  0.158901
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.095e+00  4.070e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  8.638e-01  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.021e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71570/likelihoodResults_347673601_347932801_4FGL_J2339.6+0242_daily_bin418.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) = 5232.24710309
delta logL = 0.013757950228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5232.24507126
delta logL = 0.0157897793733

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6960       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0405       1.0000          .0000       10.000    
     3 'Normalizat'    1.0136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86570       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5232.245     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      356 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6960        53.529        .92849E-03   -.93057E-05
   2  Index         3.0394        2.7056        .70826E-02    .94544E-06
   3  Normalizat    1.0137        .23254        .27530E-03    .82591E-06
   4  Prefactor     .86561        .15791        .20382E-03    .89243E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.69597
  Index      = 3.03936
  Normalizat = 1.01367
  Prefactor  = 0.865615
 **********
 **   18 **HESSE 
 **********

 FCN=   5232.245     FROM HESSE     STATUS=OK            25 CALLS      381 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6960        45.084        .37139E-04   -1.5275    
   2  Index         3.0394        2.5097        .28330E-03   -.40294    
   3  Normalizat    1.0137        .23286        .11012E-04   -.92574    
   4  Prefactor     .86561        .15804        .81530E-05   -.97353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13786e-12
Minuit parameter uncertainties:
  1  29.1291
  2  2.65462
  3  0.233093
  4  0.158125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71570': 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) = 5232.24507099
delta logL = 0.0157900483828

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.696e+00  2.913e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.039e+00  2.655e+00  0.000e+00  1.000e+01 (-1.000e+00)
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  8.656e-01  1.581e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.014e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 354.904 2.710

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/71570/cmap_HighResolution_347673601_347932801_4FGL_J2339.6+0242_daily_bin418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.58e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-30 02:50:11.305276', job_id='71570', GAL2='0.87', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1632995411.31', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.58e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='418' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 71570: <4FGL_J2339.6+0242_daily_bin418> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin418> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 02:35:21 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:35:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:35:23 2021
Terminated at Thu Sep 30 02:50:12 2021
Results reported at Thu Sep 30 02:50:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin418 354.904 2.7102 347673601 347932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2339.6+0242 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   707.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            891 sec.

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

