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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin353
RA = 354.904, Dec = 2.7102
tmin = 330825601, tmax = 331084801
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='70184', job_status='RUN', time_executed='2021-09-30 02:34:27.083002', time_epoch_executed='1632994467.08' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70184

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70184/ft1_4FGL_J2339.6+0242_daily_bin353.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70184/ft2_4FGL_J2339.6+0242_daily_bin353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70184/ft1_4FGL_J2339.6+0242_daily_bin353.fits outfile=/scratch/kocevski/70184/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin353.fits ra=354.904 dec=2.7102 rad=12.0 tmin=330825601.0 tmax=331084801.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.38
user 3.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70184/ft2_4FGL_J2339.6+0242_daily_bin353.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/70184/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin353.fits evtable="EVENTS" outfile="/scratch/kocevski/70184/ft1_filtered_4FGL_J2339.6+0242_daily_bin353.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70184/ft1_filtered_4FGL_J2339.6+0242_daily_bin353.fits" evtable="EVENTS" scfile=/scratch/kocevski/70184/ft2_4FGL_J2339.6+0242_daily_bin353.fits sctable="SC_DATA" outfile=/scratch/kocevski/70184/ltcube_330825601_331084801_4FGL_J2339.6+0242_daily_bin353.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/70184/ft2_4FGL_J2339.6+0242_daily_bin353.fits
.....................!
real 11.74
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70184/ft1_filtered_4FGL_J2339.6+0242_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/70184/ft2_4FGL_J2339.6+0242_daily_bin353.fits sctable="SC_DATA" expcube=/scratch/kocevski/70184/ltcube_330825601_331084801_4FGL_J2339.6+0242_daily_bin353.fits outfile=/scratch/kocevski/70184/expmap_330825601_331084801_4FGL_J2339.6+0242_daily_bin353.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/70184/ltcube_330825601_331084801_4FGL_J2339.6+0242_daily_bin353.fits
.....................!
real 190.94
user 185.11
sys 5.49

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/70184/ft1_filtered_4FGL_J2339.6+0242_daily_bin353.fits scfile=/scratch/kocevski/70184/ft2_4FGL_J2339.6+0242_daily_bin353.fits outfile=/scratch/kocevski/70184/cmap_330825601_331084801_4FGL_J2339.6+0242_daily_bin353.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70184/ft1_filtered_4FGL_J2339.6+0242_daily_bin353.fits scfile=/scratch/kocevski/70184/ft2_4FGL_J2339.6+0242_daily_bin353.fits outfile=/scratch/kocevski/70184/cmap_HighResolution_330825601_331084801_4FGL_J2339.6+0242_daily_bin353.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1530       1.0000         .10000E-03   10000.    
     6 'norm      '    .12501E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.891       1.0000         .10000E-03   10000.    
     8 'norm      '    18.869       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.070       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1076       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3131       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.171       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3469       1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.446       1.0000         .10000E-03   10000.    
    22 'norm      '    4.7464       1.0000         .10000E-03   10000.    
    23 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.534       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.0705       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.316       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.029       1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.191       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .44175       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1481       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=   5841.882     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3893 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3622        .18463E-05** at limit **
   2  Prefactor     .10000E-03    13.833        .27000E-06** at limit **
   3  Prefactor     .10000E-03    6.5617       -.10553E-05** at limit **
   4  Prefactor     .10000E-03    1.8682       -.32661E-06** at limit **
   5  norm          1.1533        1.6696        .70450E-07   -.41937E-03
   6  norm          .10000E-03    2.5747       -.14154E-05** at limit **
   7  Prefactor     20.887        13.706        .68747E-06    .23021E-03
   8  norm          18.870        14.562       -.56364E-06   -.20631E-04
   9  Prefactor     .10000E-03    9.6133        .39292E-05** at limit **
  10  Prefactor     .10000E-03    4.5926       -.11823E-05** at limit **
  11  Prefactor     16.072        17.335        .29770E-07   -.36223E-04
  12  Prefactor     7.1096        7.9973        .38103E-06    .77130E-04
  13  norm          .10000E-03    .35461        .60036E-07** at limit **
  14  norm          1.3113        4.9185       -.32762E-05   -.96997E-03
  15  Prefactor     .10000E-03    10.630       -.55527E-05** at limit **
  16  Prefactor     .10000E-03    50.891        .38574E-04** at limit **
  17  norm          .10000E-03    4.2983       -.92143E-07** at limit **
  18  Prefactor     13.173        7.0310       -.36670E-06    .17807E-04
  19  Prefactor     .10000E-03    57.374       -.41761E-04** at limit **
  20  Prefactor     1.3516        17.425       -.27278E-05   -.44644E-03
  21  Prefactor     37.450        26.731        .33534E-05    .74952E-04
  22  norm          4.7472        12.514       -.65915E-06   -.65304E-04
  23  norm          .10000E-03    10.020        .78890E-06** at limit **
  24  Prefactor     31.527        42.455       -.90044E-05    .11163E-04
  25  Prefactor     2.0694        2.9464        .26815E-06   -.54205E-04
  26  Prefactor     14.307        42.901       -.18566E-04   -.17647E-04
  27  Prefactor     17.032        22.676        .21246E-05    .14342E-04
  28  Prefactor     19.192        15.439       -.11379E-06    .72034E-05
  29  Normalizat    .44160        .21325        .35094E-05    .88580E-04
  30  Prefactor     1.1482        .14135        .41989E-06    .23636E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.15326
  norm       = 0.000100003
  Prefactor  = 20.8867
  norm       = 18.8702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0722
  Prefactor  = 7.10955
  norm       = 0.0001
  norm       = 1.31128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.173
  Prefactor  = 0.0001
  Prefactor  = 1.3516
  Prefactor  = 37.4502
  norm       = 4.74718
  norm       = 0.0001
  Prefactor  = 31.5271
  Prefactor  = 2.06942
  Prefactor  = 14.3072
  Prefactor  = 17.0316
  Prefactor  = 19.1918
  Normalizat = 0.441596
  Prefactor  = 1.14821
 **********
 **   18 **HESSE 
 **********

 FCN=   5841.882     FROM HESSE     STATUS=OK           594 CALLS     4487 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3727        .17281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.5974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8734        .10202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1533        1.4494        .11409E-02   -1.5493    
   6  norm          .10000E-03    5.9381        .23526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.887        13.547        .87631E-04   -1.4794    
   8  norm          18.870        14.544        .92205E-04   -1.4839    
   9  Prefactor     .10000E-03    9.6080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6112        .15997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.072        17.317        .99910E-04   -1.4906    
  12  Prefactor     7.1096        7.9354        .15047E-03   -1.5175    
  13  norm          .10000E-03    .37063        .88622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3113        4.9376        .30513E-03   -1.5479    
  15  Prefactor     .10000E-03    10.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    50.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.3197        .15449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.173        7.0122        .11037E-03   -1.4982    
  19  Prefactor     .10000E-03    56.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3516        16.970        .37723E-03   -1.5475    
  21  Prefactor     37.450        26.661        .65496E-04   -1.4483    
  22  norm          4.7472        12.502        .18469E-03   -1.5272    
  23  norm          .10000E-03    10.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     31.527        42.347        .71353E-04   -1.4584    
  25  Prefactor     2.0694        2.8843        .14411E-03   -1.5420    
  26  Prefactor     14.307        42.697        .10586E-03   -1.4951    
  27  Prefactor     17.032        22.610        .97056E-04   -1.4882    
  28  Prefactor     19.192        15.419        .91429E-04   -1.4832    
  29  Normalizat    .44160        .22314        .37696E-03   -1.1520    
  30  Prefactor     1.1482        .15251        .17724E-03   -.87940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97289e-09
Minuit parameter uncertainties:
  1  5.72024e-06
  2  4.89698e-06
  3  1.35411e-05
  4  2.10803e-06
  5  1.44949
  6  0.000284383
  7  13.5494
  8  14.5472
  9  9.91285e-06
  10  5.16268e-06
  11  17.3227
  12  7.93659
  13  2.57447e-06
  14  4.93913
  15  5.91376e-05
  16  3.49661e-05
  17  1.77123e-05
  18  7.01259
  19  2.82034e-05
  20  9.58157
  21  26.6694
  22  12.5092
  23  4.05671e-05
  24  42.3872
  25  2.88451
  26  42.7882
  27  22.6213
  28  15.4222
  29  0.223595
  30  0.152571
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.431e+01  4.279e+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:  1.148e+00  1.526e-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:  4.416e-01  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/70184/likelihoodResults_330825601_331084801_4FGL_J2339.6+0242_daily_bin353.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) = 5840.32407063
delta logL = 1.55799304252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5840.20369915
delta logL = 1.67836452599

Fit tolerance = 1e-08

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

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

 FCN=   5840.204     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      298 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12408        1.1097        .35187E-02    .57317E-02
   2  Index         6.3968        2.6306        .10942        .26992E-03
   3  Normalizat    .30578        .52801E-01    .10170        .94242E-04
   4  Prefactor     1.2146        .38814E-01    .34296E-01    .62232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.124075
  Index      = 6.39675
  Normalizat = 0.305785
  Prefactor  = 1.21463
 **********
 **   18 **HESSE 
 **********

 FCN=   5840.204     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      331 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12408        2.2121        .15848E-04   -1.5638    
   2  Index         6.3968        3.8454        .43598E-02    .28312    
   3  Normalizat    .30578        .18953        .45030E-03   -1.2249    
   4  Prefactor     1.2146        .13617        .17279E-03   -.85882    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.28987e-10
Minuit parameter uncertainties:
  1  1.04742
  2  4.45956
  3  0.189928
  4  0.136212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70184': 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): 102
logL (Free Index) = 5840.20368543
delta logL = 1.67837824643

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.241e-01  1.047e+00  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  6.397e+00  4.460e+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:  1.215e+00  1.362e-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:  3.058e-01  1.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.02
Ra Dec: 354.904 2.710
Photon Index (Free Index): 6.40 +/- 4.46
Photon Flux (Free Index): 1.17e-07 +/- 7.22e-08
Energy Flux (Free Index): 1.44e-05 +/- 9.63e-06

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/70184/cmap_HighResolution_330825601_331084801_4FGL_J2339.6+0242_daily_bin353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.91e-03', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='1.68e+00', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-30 02:46:59.869478', photon_index_error2='4.46', photon_index2='6.40', ts='0.14', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='9.63e-06', EG='0.44', time_epoch_completed='1632995219.87', return_code='0', job_id='70184', GAL2='1.21', EG2='0.31', return_code2='102', photon_flux_error2='7.22e-08', ts2='4.02', photon_index='2.55' WHERE bin_id='353' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:46:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 70184: <4FGL_J2339.6+0242_daily_bin353> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin353> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:54 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:56 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:30:56 2021
Terminated at Thu Sep 30 02:47:00 2021
Results reported at Thu Sep 30 02:47:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin353 354.904 2.7102 330825601 331084801 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 :                                   750.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             264.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            966 sec.

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

