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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin369
RA = 354.904, Dec = 2.7102
tmin = 334972801, tmax = 335232001
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='70232', job_status='RUN', time_executed='2021-09-30 02:34:51.535090', time_epoch_executed='1632994491.54' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70232

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70232/ft1_4FGL_J2339.6+0242_daily_bin369.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70232/ft2_4FGL_J2339.6+0242_daily_bin369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70232/ft1_4FGL_J2339.6+0242_daily_bin369.fits outfile=/scratch/kocevski/70232/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin369.fits ra=354.904 dec=2.7102 rad=12.0 tmin=334972801.0 tmax=335232001.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/70232/ft2_4FGL_J2339.6+0242_daily_bin369.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70232/ft2_4FGL_J2339.6+0242_daily_bin369.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/70232/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin369.fits evtable="EVENTS" outfile="/scratch/kocevski/70232/ft1_filtered_4FGL_J2339.6+0242_daily_bin369.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/70232/ft1_filtered_4FGL_J2339.6+0242_daily_bin369.fits" evtable="EVENTS" scfile=/scratch/kocevski/70232/ft2_4FGL_J2339.6+0242_daily_bin369.fits sctable="SC_DATA" outfile=/scratch/kocevski/70232/ltcube_334972801_335232001_4FGL_J2339.6+0242_daily_bin369.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/70232/ft2_4FGL_J2339.6+0242_daily_bin369.fits
.....................!
real 11.64
user 11.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70232/ft1_filtered_4FGL_J2339.6+0242_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/70232/ft2_4FGL_J2339.6+0242_daily_bin369.fits sctable="SC_DATA" expcube=/scratch/kocevski/70232/ltcube_334972801_335232001_4FGL_J2339.6+0242_daily_bin369.fits outfile=/scratch/kocevski/70232/expmap_334972801_335232001_4FGL_J2339.6+0242_daily_bin369.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/70232/ltcube_334972801_335232001_4FGL_J2339.6+0242_daily_bin369.fits
.....................!
real 191.95
user 186.97
sys 4.66

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/70232/ft1_filtered_4FGL_J2339.6+0242_daily_bin369.fits scfile=/scratch/kocevski/70232/ft2_4FGL_J2339.6+0242_daily_bin369.fits outfile=/scratch/kocevski/70232/cmap_334972801_335232001_4FGL_J2339.6+0242_daily_bin369.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/70232/ft1_filtered_4FGL_J2339.6+0242_daily_bin369.fits scfile=/scratch/kocevski/70232/ft2_4FGL_J2339.6+0242_daily_bin369.fits outfile=/scratch/kocevski/70232/cmap_HighResolution_334972801_335232001_4FGL_J2339.6+0242_daily_bin369.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/70232/ft1_filtered_4FGL_J2339.6+0242_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/70232/ft2_4FGL_J2339.6+0242_daily_bin369.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/70232/Model_4FGL_J2339.6+0242_daily_bin369.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/70232/ft1_filtered_4FGL_J2339.6+0242_daily_bin369.fits....................!
real 58.93
user 57.67
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5776       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.283       1.0000         .10000E-03   10000.    
     5 'norm      '    2.5020       1.0000         .10000E-03   10000.    
     6 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2231       1.0000         .10000E-03   10000.    
     8 'norm      '    9.4001       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.849       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.429       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.892       1.0000         .10000E-03   10000.    
    13 'norm      '    2.2289       1.0000         .10000E-03   10000.    
    14 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14023E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.103       1.0000         .10000E-03   10000.    
    17 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6221       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.403       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0911       1.0000         .10000E-03   10000.    
    23 'norm      '    .10989E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    67.916       1.0000         .10000E-03   10000.    
    25 'Prefactor '    32.212       1.0000         .10000E-03   10000.    
    26 'Prefactor '    177.11       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.483       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .69045       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1259       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=   5622.474     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3955 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5764        10.084        .11911E-06   -.24647E-05
   2  Prefactor     .10000E-03    37.154       -.19703E-06** at limit **
   3  Prefactor     .10000E-03    22.953        .10425E-05** at limit **
   4  Prefactor     16.282        9.8240        .37683E-07   -.10797E-04
   5  norm          2.5024        2.6169        .11806E-06   -.53525E-04
   6  norm          .10000E-03    2.8600        .15472E-06** at limit **
   7  Prefactor     2.2195        13.518        .13279E-05   -.10591E-04
   8  norm          9.3993        10.625        .14893E-06   -.34590E-05
   9  Prefactor     .10000E-03    9.5568        .68010E-07** at limit **
  10  Prefactor     13.848        12.687        .14730E-07    .71280E-05
  11  Prefactor     22.427        21.054        .82978E-06    .34067E-04
  12  Prefactor     11.914        16.703       -.53369E-07   -.67487E-04
  13  norm          2.2287        1.3038        .66385E-07    .65483E-04
  14  norm          .10000E-03    8.5310       -.50896E-06** at limit **
  15  Prefactor     .10009E-03    6.6085       -.81474E-06** at limit **
  16  Prefactor     48.990        66.124       -.11880E-04   -.38211E-03
  17  norm          .10000E-03    4.8678        .16125E-06** at limit **
  18  Prefactor     .10000E-03    1.9709        .21995E-07** at limit **
  19  Prefactor     .10000E-03    145.93        .17334E-05** at limit **
  20  Prefactor     3.6176        12.009        .80715E-06    .10992E-04
  21  Prefactor     16.401        23.662       -.16820E-06    .55456E-04
  22  norm          2.0882        52.874        .29988E-04   -.60797E-04
  23  norm          .10000E-03    17.808       -.18994E-06** at limit **
  24  Prefactor     67.890        78.435       -.22648E-05   -.88935E-04
  25  Prefactor     32.212        8.5451        .13289E-06    .13798E-04
  26  Prefactor     177.11        64.378        .59379E-06   -.29040E-04
  27  Prefactor     .10000E-03    13.101        .30319E-06** at limit **
  28  Prefactor     25.481        18.500        .13432E-06   -.98994E-06
  29  Normalizat    .69028        .25118        .54899E-07   -.29625E-04
  30  Prefactor     1.1260        .16401       -.10984E-05    .23475E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.57643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2824
  norm       = 2.50243
  norm       = 0.0001
  Prefactor  = 2.21949
  norm       = 9.39929
  Prefactor  = 0.0001
  Prefactor  = 13.8483
  Prefactor  = 22.4275
  Prefactor  = 11.9143
  norm       = 2.22871
  norm       = 0.0001
  Prefactor  = 0.000100094
  Prefactor  = 48.9897
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.61761
  Prefactor  = 16.4007
  norm       = 2.0882
  norm       = 0.0001
  Prefactor  = 67.8903
  Prefactor  = 32.2123
  Prefactor  = 177.109
  Prefactor  = 0.0001
  Prefactor  = 25.4806
  Normalizat = 0.690283
  Prefactor  = 1.12605
 **********
 **   18 **HESSE 
 **********

 FCN=   5622.474     FROM HESSE     STATUS=OK           588 CALLS     4543 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5764        10.077        .15647E-03   -1.5195    
   2  Prefactor     .10000E-03    37.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.282        9.8269        .99255E-04   -1.4901    
   5  norm          2.5024        2.6084        .11764E-03   -1.5392    
   6  norm          .10000E-03    2.8844        .12376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2195        13.475        .27578E-03   -1.5410    
   8  norm          9.3993        10.621        .13071E-03   -1.5095    
   9  Prefactor     .10000E-03    9.5610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.848        12.682        .10763E-03   -1.4964    
  11  Prefactor     22.427        21.066        .84576E-04   -1.4760    
  12  Prefactor     11.914        16.645        .11617E-03   -1.5017    
  13  norm          2.2287        1.2962        .61527E-04   -1.5409    
  14  norm          .10000E-03    8.5846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10009E-03    38.443        .36065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     48.990        69.788        .28613E-03   -1.4307    
  17  norm          .10000E-03    4.9078        .16142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9773        .10278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    145.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6176        11.915        .21229E-03   -1.5328    
  21  Prefactor     16.401        23.292        .98890E-04   -1.4898    
  22  norm          2.0882        55.200        .14274E-02   -1.5419    
  23  norm          .10000E-03    17.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     67.890        78.620        .48704E-04   -1.4058    
  25  Prefactor     32.212        8.5125        .70600E-04   -1.4572    
  26  Prefactor     177.11        64.423        .30326E-04   -1.3038    
  27  Prefactor     .10000E-03    13.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     25.481        18.496        .79355E-04   -1.4698    
  29  Normalizat    .69028        .27841        .36824E-03   -1.0428    
  30  Prefactor     1.1260        .18390        .20833E-03   -.88638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06282e-09
Minuit parameter uncertainties:
  1  10.0792
  2  4.71609e-05
  3  7.58222e-05
  4  9.82784
  5  2.60854
  6  9.54415e-08
  7  10.9412
  8  10.6229
  9  3.26085e-06
  10  12.6845
  11  21.073
  12  16.6511
  13  1.29617
  14  2.46698e-05
  15  0.00380733
  16  69.9047
  17  6.64027e-06
  18  3.02029e-06
  19  0.000652464
  20  11.9231
  21  23.3045
  22  21.4942
  23  3.77105e-05
  24  78.7405
  25  8.51279
  26  64.4482
  27  1.52068e-05
  28  18.5001
  29  0.278986
  30  0.184004
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.771e+02  6.445e+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.126e+00  1.840e-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:  6.903e-01  2.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.81
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 2.14e-07 +/- 7.79e-08
Energy Flux (Fixed Index): 5.91e-05 +/- 2.15e-05

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) = 5620.76829633
delta logL = 1.70604962878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5620.76464929
delta logL = 1.70969666551

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.033       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4219       1.0000          .0000       10.000    
     3 'Normalizat'    .59660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1786       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=   5620.765     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      273 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.962        258.74        .12840E-02   -.53054E-04
   2  Index         3.4222        2.3374        .65691E-01    .96897E-04
   3  Normalizat    .59644        .12680        .88759E-01    .23308E-04
   4  Prefactor     1.1790        .90590E-01    .35157E-01   -.14607E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.9623
  Index      = 3.42221
  Normalizat = 0.596436
  Prefactor  = 1.17904
 **********
 **   18 **HESSE 
 **********

 FCN=   5620.765     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.962        74.496        .51360E-04   -1.4145    
   2  Index         3.4222        .74249        .28173E-02   -.32104    
   3  Normalizat    .59644        .26154        .39320E-03   -1.0814    
   4  Prefactor     1.1790        .18419        .20423E-03   -.86979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17312e-09
Minuit parameter uncertainties:
  1  74.6103
  2  0.745558
  3  0.262085
  4  0.184287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70232': 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) = 5620.76464169
delta logL = 1.70970427083

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  6.096e+01  7.461e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.422e+00  7.456e-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.179e+00  1.843e-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:  5.964e-01  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.77
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.42 +/- 0.75
Photon Flux (Free Index): 2.84e-07 +/- 9.30e-08
Energy Flux (Free Index): 4.82e-05 +/- 1.78e-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/70232/cmap_HighResolution_334972801_335232001_4FGL_J2339.6+0242_daily_bin369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.14e-07', energy_flux2='4.82e-05', photon_flux_error='7.79e-08', dlogl='1.71e+00', energy_flux='5.91e-05', photon_flux2='2.84e-07', job_status='DONE', time_completed='2021-09-30 02:46:05.618085', photon_index_error2='0.75', photon_index2='3.42', ts='12.81', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.78e-05', EG='0.69', time_epoch_completed='1632995165.62', return_code='0', job_id='70232', GAL2='1.18', EG2='0.60', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='9.30e-08', ts2='16.77', photon_index='2.55' WHERE bin_id='369' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:46:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 70232: <4FGL_J2339.6+0242_daily_bin369> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin369 354.904 2.7102 334972801 335232001 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 :                                   673.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             226.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

