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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin747
RA = 354.904, Dec = 2.7102
tmin = 432950401, tmax = 433209601
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='73118', job_status='RUN', time_executed='2021-09-30 02:43:15.245290', time_epoch_executed='1632994995.25' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73118/ft1_4FGL_J2339.6+0242_daily_bin747.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73118/ft2_4FGL_J2339.6+0242_daily_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73118/ft1_4FGL_J2339.6+0242_daily_bin747.fits outfile=/scratch/kocevski/73118/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin747.fits ra=354.904 dec=2.7102 rad=12.0 tmin=432950401.0 tmax=433209601.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 5.65
user 5.34
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73118/ft2_4FGL_J2339.6+0242_daily_bin747.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/73118/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin747.fits evtable="EVENTS" outfile="/scratch/kocevski/73118/ft1_filtered_4FGL_J2339.6+0242_daily_bin747.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73118/ft1_filtered_4FGL_J2339.6+0242_daily_bin747.fits" evtable="EVENTS" scfile=/scratch/kocevski/73118/ft2_4FGL_J2339.6+0242_daily_bin747.fits sctable="SC_DATA" outfile=/scratch/kocevski/73118/ltcube_432950401_433209601_4FGL_J2339.6+0242_daily_bin747.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/73118/ft2_4FGL_J2339.6+0242_daily_bin747.fits
.....................!
real 11.96
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73118/ft1_filtered_4FGL_J2339.6+0242_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/73118/ft2_4FGL_J2339.6+0242_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/73118/ltcube_432950401_433209601_4FGL_J2339.6+0242_daily_bin747.fits outfile=/scratch/kocevski/73118/expmap_432950401_433209601_4FGL_J2339.6+0242_daily_bin747.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/73118/ltcube_432950401_433209601_4FGL_J2339.6+0242_daily_bin747.fits
.....................!
real 190.84
user 185.43
sys 5.10

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/73118/ft1_filtered_4FGL_J2339.6+0242_daily_bin747.fits scfile=/scratch/kocevski/73118/ft2_4FGL_J2339.6+0242_daily_bin747.fits outfile=/scratch/kocevski/73118/cmap_432950401_433209601_4FGL_J2339.6+0242_daily_bin747.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .45204E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.448       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.135       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    90.246       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.406       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.486       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8918       1.0000         .10000E-03   10000.    
    13 'norm      '    .79420       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4009       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    22.165       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .41880E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .71743       1.0000         .10000E-03   10000.    
    26 'Prefactor '    73.200       1.0000         .10000E-03   10000.    
    27 'Prefactor '    55.221       1.0000         .10000E-03   10000.    
    28 'Prefactor '    20.068       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .49777       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1674       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=   3303.954     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3923 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.584        .11045E-06** at limit **
   2  Prefactor     .10000E-03    58.299        .45245E-05** at limit **
   3  Prefactor     .10000E-03    154.63        .52368E-04** at limit **
   4  Prefactor     .10000E-03    2.8744        .61836E-07** at limit **
   5  norm          .10000E-03    2.1673        .37587E-06** at limit **
   6  norm          13.450        8.8804       -.26223E-06    .62615E-04
   7  Prefactor     17.138        19.990       -.40082E-06    .68375E-04
   8  norm          .10000E-03    15.987        .67185E-06** at limit **
   9  Prefactor     90.272        69.877       -.32599E-05   -.29136E-04
  10  Prefactor     33.412        25.258       -.34339E-06   -.20816E-06
  11  Prefactor     16.489        19.462       -.27975E-06    .54486E-05
  12  Prefactor     5.8525        17.387        .50478E-05   -.14163E-03
  13  norm          .79437        1.1392       -.92444E-07   -.40582E-04
  14  norm          3.3946        9.9244       -.10187E-05   -.30128E-03
  15  Prefactor     .10000E-03    4.2637       -.11428E-06** at limit **
  16  Prefactor     .10000E-03    45.155       -.33019E-05** at limit **
  17  norm          .10000E-03    3.1991       -.66456E-07** at limit **
  18  Prefactor     .10000E-03    5.8875       -.70665E-07** at limit **
  19  Prefactor     .10000E-03    74.730        .11288E-05** at limit **
  20  Prefactor     .10000E-03    11.216        .78149E-07** at limit **
  21  Prefactor     .10000E-03    18.796       -.18055E-05** at limit **
  22  norm          22.168        22.050       -.16542E-06    .60831E-06
  23  norm          .10000E-03    21.844        .15469E-05** at limit **
  24  Prefactor     .10007E-03    511.95        .46983E-04** at limit **
  25  Prefactor     .71710        3.3951       -.34610E-05   -.40693E-03
  26  Prefactor     73.220        66.575       -.17859E-05    .41135E-04
  27  Prefactor     55.240        44.257       -.15843E-05    .39507E-04
  28  Prefactor     20.070        19.268       -.65770E-08    .99718E-04
  29  Normalizat    .49731        .29453        .73074E-05    .99807E-04
  30  Prefactor     1.1675        .20105        .37370E-06    .16803E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.4503
  Prefactor  = 17.1385
  norm       = 0.0001
  Prefactor  = 90.2723
  Prefactor  = 33.4123
  Prefactor  = 16.489
  Prefactor  = 5.85251
  norm       = 0.794366
  norm       = 3.39459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.1676
  norm       = 0.0001
  Prefactor  = 0.00010007
  Prefactor  = 0.717102
  Prefactor  = 73.2201
  Prefactor  = 55.2403
  Prefactor  = 20.07
  Normalizat = 0.497314
  Prefactor  = 1.16749
 **********
 **   18 **HESSE 
 **********

 FCN=   3303.954     FROM HESSE     STATUS=OK           580 CALLS     4503 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    58.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    150.73        .46910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8811        .95166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.2235        .16430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.450        8.8731        .10922E-03   -1.4974    
   7  Prefactor     17.138        19.940        .96756E-04   -1.4880    
   8  norm          .10000E-03    16.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     90.272        69.917        .42298E-04   -1.3805    
  10  Prefactor     33.412        25.241        .69331E-04   -1.4551    
  11  Prefactor     16.489        19.458        .98642E-04   -1.4896    
  12  Prefactor     5.8525        17.103        .16544E-03   -1.5224    
  13  norm          .79437        1.1357        .49673E-04   -1.5530    
  14  norm          3.3946        9.7457        .21938E-03   -1.5339    
  15  Prefactor     .10000E-03    4.2671        .11592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.2017        .10041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9446        .13618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    74.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          22.168        22.051        .85078E-04   -1.4766    
  23  norm          .10000E-03    21.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10007E-03    504.80        .19437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .71710        3.3868        .20815E-03   -1.5539    
  26  Prefactor     73.220        66.427        .46926E-04   -1.3994    
  27  Prefactor     55.240        44.249        .53979E-04   -1.4220    
  28  Prefactor     20.070        19.248        .89408E-04   -1.4812    
  29  Normalizat    .49731        .31146        .38565E-03   -1.1254    
  30  Prefactor     1.1675        .21832        .18964E-03   -.87338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03385e-10
Minuit parameter uncertainties:
  1  0.000107679
  2  2.67435e-05
  3  0.000793044
  4  1.12846e-05
  5  2.02623e-05
  6  8.87393
  7  19.9473
  8  7.63786e-05
  9  69.9804
  10  25.2495
  11  19.4654
  12  17.117
  13  1.1357
  14  9.75029
  15  6.71349e-06
  16  0.000206185
  17  7.55945e-06
  18  4.25645e-05
  19  5.08478e-05
  20  1.5834e-05
  21  8.93982e-05
  22  22.0591
  23  9.77341e-05
  24  0.0120224
  25  3.11691
  26  66.4942
  27  44.2753
  28  19.2537
  29  0.312559
  30  0.218486
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.322e+01  6.649e+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.167e+00  2.185e-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.973e-01  3.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 8.86e-08 +/- 8.04e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 2.22e-05

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

Saving results to:
/scratch/kocevski/73118/likelihoodResults_432950401_433209601_4FGL_J2339.6+0242_daily_bin747.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) = 3303.70447385
delta logL = 0.249567054404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3303.69889999
delta logL = 0.255140913011

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.718       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1470       1.0000          .0000       10.000    
     3 'Normalizat'    .46339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1849       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=   3303.699     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      288 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.725        72.213        .63601E-04   -.49335E-04
   2  Index         3.1470        1.1088        .48707E-02   -.13043E-04
   3  Normalizat    .46339        .29887        .39849E-03    .61923E-04
   4  Prefactor     1.1848        .21702        .18836E-03    .16827E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.7251
  Index      = 3.14701
  Normalizat = 0.46339
  Prefactor  = 1.18482
 **********
 **   18 **HESSE 
 **********

 FCN=   3303.699     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.725        61.345        .25440E-05   -1.4447    
   2  Index         3.1470        .94318        .19483E-03   -.37965    
   3  Normalizat    .46339        .29868        .15940E-04   -1.1414    
   4  Prefactor     1.1848        .21662        .37673E-04   -.86800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58068e-11
Minuit parameter uncertainties:
  1  61.4422
  2  0.949787
  3  0.299712
  4  0.216782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73118': 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) = 3303.69889966
delta logL = 0.255141239322

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.973e+01  6.144e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.147e+00  9.498e-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:  1.185e+00  2.168e-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.634e-01  2.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.15 +/- 0.95
Photon Flux (Free Index): 1.19e-07 +/- 9.52e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.80e-05

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/73118/cmap_HighResolution_432950401_433209601_4FGL_J2339.6+0242_daily_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.99e-02', comment='SUCCESS', photon_flux='8.86e-08', energy_flux2='2.21e-05', photon_flux_error='8.04e-08', dlogl='2.55e-01', energy_flux='2.44e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-30 02:56:54.745146', photon_index_error2='0.95', photon_index2='3.15', ts='1.83', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='2.55e-07', energy_flux_error2='1.80e-05', EG='0.50', time_epoch_completed='1632995814.75', return_code='0', job_id='73118', GAL2='1.18', EG2='0.46', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='9.52e-08', ts2='2.39', photon_index='2.55' WHERE bin_id='747' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:56:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 73118: <4FGL_J2339.6+0242_daily_bin747> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin747> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:40:25 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:40:27 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:40:27 2021
Terminated at Thu Sep 30 02:56:55 2021
Results reported at Thu Sep 30 02:56:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin747 354.904 2.7102 432950401 433209601 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 :                                   574.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

