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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin389
RA = 354.904, Dec = 2.7102
tmin = 340156801, tmax = 340416001
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='71521', job_status='RUN', time_executed='2021-09-30 02:39:14.793864', time_epoch_executed='1632994754.79' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71521

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71521/ft1_4FGL_J2339.6+0242_daily_bin389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71521/ft2_4FGL_J2339.6+0242_daily_bin389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71521/ft1_4FGL_J2339.6+0242_daily_bin389.fits outfile=/scratch/kocevski/71521/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin389.fits ra=354.904 dec=2.7102 rad=12.0 tmin=340156801.0 tmax=340416001.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.33
user 3.09
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71521/ft2_4FGL_J2339.6+0242_daily_bin389.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/71521/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin389.fits evtable="EVENTS" outfile="/scratch/kocevski/71521/ft1_filtered_4FGL_J2339.6+0242_daily_bin389.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71521/ft1_filtered_4FGL_J2339.6+0242_daily_bin389.fits" evtable="EVENTS" scfile=/scratch/kocevski/71521/ft2_4FGL_J2339.6+0242_daily_bin389.fits sctable="SC_DATA" outfile=/scratch/kocevski/71521/ltcube_340156801_340416001_4FGL_J2339.6+0242_daily_bin389.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/71521/ft2_4FGL_J2339.6+0242_daily_bin389.fits
.....................!
real 12.16
user 11.80
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71521/ft1_filtered_4FGL_J2339.6+0242_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/71521/ft2_4FGL_J2339.6+0242_daily_bin389.fits sctable="SC_DATA" expcube=/scratch/kocevski/71521/ltcube_340156801_340416001_4FGL_J2339.6+0242_daily_bin389.fits outfile=/scratch/kocevski/71521/expmap_340156801_340416001_4FGL_J2339.6+0242_daily_bin389.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/71521/ltcube_340156801_340416001_4FGL_J2339.6+0242_daily_bin389.fits
.....................!
real 191.05
user 185.16
sys 5.24

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/71521/ft1_filtered_4FGL_J2339.6+0242_daily_bin389.fits scfile=/scratch/kocevski/71521/ft2_4FGL_J2339.6+0242_daily_bin389.fits outfile=/scratch/kocevski/71521/cmap_340156801_340416001_4FGL_J2339.6+0242_daily_bin389.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.68
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71521/ft1_filtered_4FGL_J2339.6+0242_daily_bin389.fits scfile=/scratch/kocevski/71521/ft2_4FGL_J2339.6+0242_daily_bin389.fits outfile=/scratch/kocevski/71521/cmap_HighResolution_340156801_340416001_4FGL_J2339.6+0242_daily_bin389.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 2.08
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/71521/ft1_filtered_4FGL_J2339.6+0242_daily_bin389.fits', '/scratch/kocevski/71521/ft2_4FGL_J2339.6+0242_daily_bin389.fits', expMap='/scratch/kocevski/71521/expmap_340156801_340416001_4FGL_J2339.6+0242_daily_bin389.fits', expCube='/scratch/kocevski/71521/ltcube_340156801_340416001_4FGL_J2339.6+0242_daily_bin389.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/71521/Model_4FGL_J2339.6+0242_daily_bin389.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/71521/ft1_filtered_4FGL_J2339.6+0242_daily_bin389.fits
Spacecraft file(s): /scratch/kocevski/71521/ft2_4FGL_J2339.6+0242_daily_bin389.fits
Exposure map: /scratch/kocevski/71521/expmap_340156801_340416001_4FGL_J2339.6+0242_daily_bin389.fits
Exposure cube: /scratch/kocevski/71521/ltcube_340156801_340416001_4FGL_J2339.6+0242_daily_bin389.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/71521/Model_4FGL_J2339.6+0242_daily_bin389.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) = 4925.02778585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6790       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.0019       1.0000         .10000E-03   10000.    
     6 'norm      '    .17028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.373       1.0000         .10000E-03   10000.    
     8 'norm      '    22.950       1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.395       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4898       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7697       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.884       1.0000         .10000E-03   10000.    
    17 'norm      '    7.4861       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.848       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6319       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0916       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    37.165       1.0000         .10000E-03   10000.    
    27 'Prefactor '    30.459       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85335       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78043       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=   4924.988     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     4460 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.077       -.81428E-07** at limit **
   2  Prefactor     4.7053        126.07        .12806E-04    .70854E-04
   3  Prefactor     .10000E-03    27.953        .36644E-06** at limit **
   4  Prefactor     .10000E-03    3.1103        .29100E-06** at limit **
   5  norm          4.0037        3.5295        .24947E-06   -.15302E-03
   6  norm          .10000E-03    4.5661       -.21513E-06** at limit **
   7  Prefactor     17.371        17.463        .24276E-06    .20521E-04
   8  norm          22.954        13.932        .16457E-06   -.50210E-05
   9  Prefactor     40.403        34.874        .94043E-06    .83224E-04
  10  Prefactor     3.4898        8.6925        .74193E-05   -.39368E-03
  11  Prefactor     .10000E-03    12.695        .12040E-05** at limit **
  12  Prefactor     .10000E-03    3.1429       -.11882E-06** at limit **
  13  norm          1.7698        .99368        .17433E-06    .85720E-04
  14  norm          .10000E-03    1.6514       -.19825E-07** at limit **
  15  Prefactor     .10000E-03    5.4253       -.74331E-06** at limit **
  16  Prefactor     27.889        50.899        .17070E-05    .29492E-04
  17  norm          7.4882        7.7990        .22552E-05   -.33014E-03
  18  Prefactor     .10000E-03    2.3218       -.16750E-06** at limit **
  19  Prefactor     33.674        260.55       -.34649E-04   -.85830E-04
  20  Prefactor     6.6328        7.5324        .65240E-06    .67773E-04
  21  Prefactor     3.0937        33.084       -.88854E-06   -.10084E-04
  22  norm          .10000E-03    9.7145       -.16557E-06** at limit **
  23  norm          .10000E-03    8.2062       -.35654E-06** at limit **
  24  Prefactor     .10000E-03    46.193       -.23859E-06** at limit **
  25  Prefactor     .10000E-03    3.5026       -.15742E-05** at limit **
  26  Prefactor     37.166        46.507        .57710E-06    .14858E-04
  27  Prefactor     30.469        29.251        .13863E-05    .10842E-03
  28  Prefactor     .10000E-03    5.5459        .48129E-06** at limit **
  29  Normalizat    .85318        .21411       -.22979E-05    .61677E-04
  30  Prefactor     .78051        .13774        .16150E-06   -.12194E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 4.70531
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.00372
  norm       = 0.000100001
  Prefactor  = 17.371
  norm       = 22.9538
  Prefactor  = 40.4026
  Prefactor  = 3.48982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.76978
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8893
  norm       = 7.48818
  Prefactor  = 0.0001
  Prefactor  = 33.6739
  Prefactor  = 6.63282
  Prefactor  = 3.09365
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 37.1659
  Prefactor  = 30.4689
  Prefactor  = 0.0001
  Normalizat = 0.853177
  Prefactor  = 0.780509
 **********
 **   18 **HESSE 
 **********

 FCN=   4924.988     FROM HESSE     STATUS=OK           584 CALLS     5044 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7053        127.87        .18604E-03   -1.5274    
   3  Prefactor     .10000E-03    28.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1161        .12083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.0037        3.5294        .11402E-03   -1.5308    
   6  norm          .10000E-03    9.6168        .28351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.371        17.177        .96089E-04   -1.4874    
   8  norm          22.954        13.932        .83613E-04   -1.4749    
   9  Prefactor     40.403        34.915        .63068E-04   -1.4436    
  10  Prefactor     3.4898        8.9197        .10822E-02   -1.5334    
  11  Prefactor     .10000E-03    12.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.1469        .12150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7698        .99404        .49782E-04   -1.5442    
  14  norm          .10000E-03    1.6536        .88068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4616        .15972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.889        50.903        .75869E-04   -1.4651    
  17  norm          7.4882        7.8289        .73289E-03   -1.5161    
  18  Prefactor     .10000E-03    2.3308        .10439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.674        285.80        .34439E-03   -1.4547    
  20  Prefactor     6.6328        7.5381        .15582E-03   -1.5193    
  21  Prefactor     3.0937        32.798        .23065E-03   -1.5356    
  22  norm          .10000E-03    9.7331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.2088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    46.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.5282        .12721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     37.166        46.526        .65742E-04   -1.4488    
  27  Prefactor     30.469        29.287        .72598E-04   -1.4603    
  28  Prefactor     .10000E-03    5.5567        .16146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .85318        .24512        .27705E-03   -.98125    
  30  Prefactor     .78051        .15887        .19820E-03   -1.0045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04985e-09
Minuit parameter uncertainties:
  1  0.000212798
  2  49.1738
  3  9.3995e-05
  4  1.55856e-06
  5  3.52956
  6  0.00020752
  7  17.1815
  8  13.9344
  9  34.9327
  10  8.92307
  11  0.000107057
  12  1.93217e-06
  13  0.994047
  14  2.17339e-06
  15  6.2883e-05
  16  50.9824
  17  7.82992
  18  1.16423e-05
  19  197.49
  20  7.5392
  21  20.1599
  22  1.39691e-05
  23  3.95868e-05
  24  1.81734e-05
  25  9.39869e-05
  26  46.5715
  27  29.3005
  28  3.20223e-05
  29  0.245441
  30  0.158967
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.717e+01  4.657e+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:  7.805e-01  1.590e-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:  8.532e-01  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.84
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71521/likelihoodResults_340156801_340416001_4FGL_J2339.6+0242_daily_bin389.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) = 4924.94970773
delta logL = 0.0383938192535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4924.93775106
delta logL = 0.0503504902917

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.184       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8348       1.0000          .0000       10.000    
     3 'Normalizat'    .84120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78582       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4924.938     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.178        49.438        .72927E-04    .37342E-03
   2  Index         2.8348        1.0075        .84088E-02    .16160E-03
   3  Normalizat    .84164        .23006        .27897E-03   -.43784E-03
   4  Prefactor     .78551        .15590        .19761E-03   -.65509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.178
  Index      = 2.83476
  Normalizat = 0.841639
  Prefactor  = 0.785512
 **********
 **   18 **HESSE 
 **********

 FCN=   4924.938     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.178        45.586        .14585E-04   -1.4609    
   2  Index         2.8348        .92844        .33635E-03   -.44787    
   3  Normalizat    .84164        .23010        .55794E-04   -.98542    
   4  Prefactor     .78551        .15582        .39522E-04   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35749e-09
Minuit parameter uncertainties:
  1  45.6385
  2  0.935134
  3  0.230371
  4  0.155911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71521': 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) = 4924.937749
delta logL = 0.0503525547283

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.018e+01  4.564e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.835e+00  9.351e-01  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:  7.855e-01  1.559e-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:  8.416e-01  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.84
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/71521/cmap_HighResolution_340156801_340416001_4FGL_J2339.6+0242_daily_bin389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.63e-07', time_completed='2021-09-30 02:51:19.553548', job_id='71521', GAL2='0.79', fit_tolerance='1e-08', EG2='0.84', EG='0.85', time_epoch_completed='1632995479.55', return_code2='0', ts='0.84', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.04e-02', ts2='0.94', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='389' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 71521: <4FGL_J2339.6+0242_daily_bin389> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin389> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 02:35:17 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:35:19 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:19 2021
Terminated at Thu Sep 30 02:51:20 2021
Results reported at Thu Sep 30 02:51:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin389 354.904 2.7102 340156801 340416001 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 :                                   720.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            963 sec.

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

