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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin478
RA = 354.904, Dec = 2.7102
tmin = 363225601, tmax = 363484801
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='71681', job_status='RUN', time_executed='2021-09-30 02:38:19.058234', time_epoch_executed='1632994699.06' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71681

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71681/ft1_4FGL_J2339.6+0242_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71681/ft2_4FGL_J2339.6+0242_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71681/ft1_4FGL_J2339.6+0242_daily_bin478.fits outfile=/scratch/kocevski/71681/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin478.fits ra=354.904 dec=2.7102 rad=12.0 tmin=363225601.0 tmax=363484801.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 7.06
user 6.78
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71681/ft1_filtered_4FGL_J2339.6+0242_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/71681/ft2_4FGL_J2339.6+0242_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/71681/ltcube_363225601_363484801_4FGL_J2339.6+0242_daily_bin478.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/71681/ft2_4FGL_J2339.6+0242_daily_bin478.fits
.....................!
real 11.69
user 11.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71681/ft1_filtered_4FGL_J2339.6+0242_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/71681/ft2_4FGL_J2339.6+0242_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/71681/ltcube_363225601_363484801_4FGL_J2339.6+0242_daily_bin478.fits outfile=/scratch/kocevski/71681/expmap_363225601_363484801_4FGL_J2339.6+0242_daily_bin478.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/71681/ltcube_363225601_363484801_4FGL_J2339.6+0242_daily_bin478.fits
.....................!
real 191.12
user 186.42
sys 4.31

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/71681/ft1_filtered_4FGL_J2339.6+0242_daily_bin478.fits scfile=/scratch/kocevski/71681/ft2_4FGL_J2339.6+0242_daily_bin478.fits outfile=/scratch/kocevski/71681/cmap_363225601_363484801_4FGL_J2339.6+0242_daily_bin478.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71681/ft1_filtered_4FGL_J2339.6+0242_daily_bin478.fits scfile=/scratch/kocevski/71681/ft2_4FGL_J2339.6+0242_daily_bin478.fits outfile=/scratch/kocevski/71681/cmap_HighResolution_363225601_363484801_4FGL_J2339.6+0242_daily_bin478.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10244E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .61148       1.0000         .10000E-03   10000.    
     5 'norm      '    6.0013       1.0000         .10000E-03   10000.    
     6 'norm      '    6.2241       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2470       1.0000         .10000E-03   10000.    
     8 'norm      '    22.458       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53987       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.997       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0739       1.0000         .10000E-03   10000.    
    14 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.980       1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.627       1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.015       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .38497E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    21.554       1.0000         .10000E-03   10000.    
    23 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .43644       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.871       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .96001       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80469       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=   3461.075     FROM MIGRAD    STATUS=CONVERGED   1405 CALLS     4563 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2516        .17466E-02** at limit **
   2  Prefactor     .10000E-03    25.363        .18142E-02** at limit **
   3  Prefactor     .10000E-03    12.902        .18142E-02** at limit **
   4  Prefactor     .60939        28.172        .36118E-02    .24692E-03
   5  norm          6.0015        4.6831        .10521E-03    .11459E-03
   6  norm          6.2252        8.6657        .16091E-03    .72137E-04
   7  Prefactor     6.2432        15.327        .16061E-03    .10759E-04
   8  norm          22.462        23.441        .84522E-04    .21454E-04
   9  Prefactor     .10000E-03    14.067        .18142E-02** at limit **
  10  Prefactor     .58636        88.272        .39411E-02    .55177E-03
  11  Prefactor     .10000E-03    15.791        .18142E-02** at limit **
  12  Prefactor     16.011        18.180        .10014E-03   -.57900E-05
  13  norm          3.0734        1.6756        .52626E-04    .15122E-04
  14  norm          .10000E-03    11.513        .36285E-03** at limit **
  15  Prefactor     16.978        13.371        .97197E-04   -.34505E-05
  16  Prefactor     41.870        103.80        .31066E-03    .82889E-05
  17  norm          .10000E-03    12.309        .18142E-02** at limit **
  18  Prefactor     12.015        8.8837        .11557E-03    .88535E-05
  19  Prefactor     .10000E-03    223.39        .21281E-02** at limit **
  20  Prefactor     .10000E-03    6.0730        .14150E-02** at limit **
  21  Prefactor     .10000E-03    10.177        .18142E-02** at limit **
  22  norm          21.553        22.011        .86275E-04   -.42167E-05
  23  norm          .10000E-03    9.0168        .17254E-02** at limit **
  24  Prefactor     .10000E-03    163.78        .19391    ** at limit **
  25  Prefactor     12.871        7.5395        .11165E-03    .19173E-03
  26  Prefactor     .10000E-03    16.628        .18142E-02** at limit **
  27  Prefactor     .10000E-03    10.058        .18142E-02** at limit **
  28  Prefactor     .10000E-03    15.894        .18142E-02** at limit **
  29  Normalizat    .95992        .34731        .29450E-03   -.95156E-05
  30  Prefactor     .80469        .20903        .21639E-03    .15007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.609386
  norm       = 6.00154
  norm       = 6.22518
  Prefactor  = 6.24322
  norm       = 22.4616
  Prefactor  = 0.0001
  Prefactor  = 0.586365
  Prefactor  = 0.0001
  Prefactor  = 16.0111
  norm       = 3.07344
  norm       = 0.0001
  Prefactor  = 16.9776
  Prefactor  = 41.8698
  norm       = 0.0001
  Prefactor  = 12.0148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.553
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.95992
  Prefactor  = 0.804695
 **********
 **   18 **HESSE 
 **********

 FCN=   3461.075     FROM HESSE     STATUS=OK           570 CALLS     5133 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2521        .34931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.903        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .60939        28.256        .14447E-03   -1.5552    
   5  norm          6.0015        4.6815        .42086E-05   -1.5218    
   6  norm          6.2252        8.6633        .64363E-05   -1.5209    
   7  Prefactor     6.2432        15.325        .64243E-05   -1.5208    
   8  norm          22.462        23.436        .33809E-05   -1.4760    
   9  Prefactor     .10000E-03    14.067        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .58636        88.782        .78823E-03   -1.5555    
  11  Prefactor     .10000E-03    15.792        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.011        18.184        .40055E-05   -1.4907    
  13  norm          3.0734        1.6755        .21050E-05   -1.5357    
  14  norm          .10000E-03    11.513        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.978        13.370        .38879E-05   -1.4884    
  16  Prefactor     41.870        103.76        .12426E-04   -1.4413    
  17  norm          .10000E-03    12.317        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.015        8.8830        .46227E-05   -1.5015    
  19  Prefactor     .10000E-03    223.40        .42562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.0731        .28300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.177        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          21.553        22.011        .34510E-05   -1.4779    
  23  norm          .10000E-03    9.0169        .34507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    186.27        .17958       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.871        7.5385        .44660E-05   -1.4990    
  26  Prefactor     .10000E-03    16.628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    15.897        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .95992        .34743        .11780E-04   -.94386    
  30  Prefactor     .80469        .20922        .43277E-04   -.99556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7721e-10
Minuit parameter uncertainties:
  1  5.92242e-06
  2  2.75975e-06
  3  6.01782e-06
  4  8.30258
  5  4.6818
  6  8.66509
  7  15.3344
  8  23.4454
  9  1.20318e-06
  10  14.451
  11  9.62289e-05
  12  18.19
  13  1.67549
  14  2.49057e-05
  15  13.372
  16  104.214
  17  3.14565e-05
  18  8.88401
  19  0.000100411
  20  7.1113e-05
  21  4.50825e-06
  22  22.0191
  23  3.19592e-05
  24  0.000304619
  25  7.53903
  26  6.91065e-05
  27  4.84651e-06
  28  1.59489e-06
  29  0.348252
  30  0.209428
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  6.911e-05  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.047e-01  2.094e-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:  9.599e-01  3.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 9.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71681/likelihoodResults_363225601_363484801_4FGL_J2339.6+0242_daily_bin478.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3461.07539771
delta logL = -0.000286085463813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3461.07511455
delta logL = -2.92554932457e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0930       1.0000          .0000       10.000    
     3 'Normalizat'    .95992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80469       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=   3461.075     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      296 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    100.84        .17068E-01** at limit **
   2  Index         1.8429        6.6298        .50000        .39246E-06
   3  Normalizat    .95992        .12976E-01    .29450E-03    .79484E-04
   4  Prefactor     .80469        .88585E-02    .21639E-03    .11322E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100047
  Index      = 1.84294
  Normalizat = 0.959924
  Prefactor  = 0.804693
 **********
 **   18 **HESSE 
 **********

 FCN=   3461.075     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      325 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    555.02        .29958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8429        7.8849        .50000       -.68337    
   3  Normalizat    .95992        .31204E-01    .11780E-04   -.94385    
   4  Prefactor     .80469        .21303E-01    .43277E-04   -.99556    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.91266e-09
Minuit parameter uncertainties:
  1  0.0103299
  2  1115.84
  3  0.0312044
  4  0.0213034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71681': 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) = 3461.07511045
delta logL = 1.16963883556e-06

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  1.033e-02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  1.843e+00  1.116e+03  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.047e-01  2.130e-02  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:  9.599e-01  3.120e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/71681/cmap_HighResolution_363225601_363484801_4FGL_J2339.6+0242_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.40e-03', job_status='DONE', photon_flux_upper_limit='9.48e-08', time_completed='2021-09-30 02:48:40.486265', job_id='71681', GAL2='0.80', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632995320.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='478' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:48:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 71681: <4FGL_J2339.6+0242_daily_bin478> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin478 354.904 2.7102 363225601 363484801 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 :                                   617.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

