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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin314
RA = 354.904, Dec = 2.7102
tmin = 320716801, tmax = 320976001
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='70093', job_status='RUN', time_executed='2021-09-30 02:34:23.417223', time_epoch_executed='1632994463.42' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70093

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70093/ft1_4FGL_J2339.6+0242_daily_bin314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70093/ft2_4FGL_J2339.6+0242_daily_bin314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70093/ft1_4FGL_J2339.6+0242_daily_bin314.fits outfile=/scratch/kocevski/70093/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin314.fits ra=354.904 dec=2.7102 rad=12.0 tmin=320716801.0 tmax=320976001.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.42
user 3.20
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70093/ft1_filtered_4FGL_J2339.6+0242_daily_bin314.fits evtable="EVENTS" scfile=/scratch/kocevski/70093/ft2_4FGL_J2339.6+0242_daily_bin314.fits sctable="SC_DATA" expcube=/scratch/kocevski/70093/ltcube_320716801_320976001_4FGL_J2339.6+0242_daily_bin314.fits outfile=/scratch/kocevski/70093/expmap_320716801_320976001_4FGL_J2339.6+0242_daily_bin314.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/70093/ltcube_320716801_320976001_4FGL_J2339.6+0242_daily_bin314.fits
.....................!
real 189.99
user 184.87
sys 4.80

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/70093/ft1_filtered_4FGL_J2339.6+0242_daily_bin314.fits scfile=/scratch/kocevski/70093/ft2_4FGL_J2339.6+0242_daily_bin314.fits outfile=/scratch/kocevski/70093/cmap_320716801_320976001_4FGL_J2339.6+0242_daily_bin314.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70093/ft1_filtered_4FGL_J2339.6+0242_daily_bin314.fits scfile=/scratch/kocevski/70093/ft2_4FGL_J2339.6+0242_daily_bin314.fits outfile=/scratch/kocevski/70093/cmap_HighResolution_320716801_320976001_4FGL_J2339.6+0242_daily_bin314.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.374       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10654E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.156       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13591       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.8058       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    24.426       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.453       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10961       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3880       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.613       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15187E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11410E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.167       1.0000         .10000E-03   10000.    
    22 'norm      '    18.306       1.0000         .10000E-03   10000.    
    23 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.5968       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.6160       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11129E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95905       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0790       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4938.826     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     2766 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.377        1.0508        .12954E-07   -.16545E-03
   2  Prefactor     .10012E-03    17.182       -.40942E-05** at limit **
   3  Prefactor     18.156        1.1952       -.52579E-08   -.17698E-03
   4  Prefactor     .13188        .61629        .50686E-06    .24884E-03
   5  norm          .10000E-03    1.3585       -.46334E-06** at limit **
   6  norm          4.8029        4.2285        .87235E-07   -.95419E-05
   7  Prefactor     .10018E-03    18.148       -.32320E-05** at limit **
   8  norm          24.419        1.4410        .89830E-07   -.31597E-03
   9  Prefactor     .10122E-03    27.846       -.15578E-05** at limit **
  10  Prefactor     .10001E-03    15.954        .32883E-05** at limit **
  11  Prefactor     15.452        2.0660        .20058E-06   -.37886E-03
  12  Prefactor     .10000E-03    4.3383       -.49091E-06** at limit **
  13  norm          .10000E-03    1.6509        .90662E-07** at limit **
  14  norm          .10000E-03    2.9362        .19419E-07** at limit **
  15  Prefactor     .10000E-03    10.847        .32291E-06** at limit **
  16  Prefactor     .13884E-03    6294.9       -.84371E-05** at limit **
  17  norm          1.3855        5.8579       -.31798E-06    .79847E-04
  18  Prefactor     13.610        4.2691       -.91750E-08    .51391E-04
  19  Prefactor     .10172E-03    196.35       -.14138E-04** at limit **
  20  Prefactor     .10000E-03    14.150       -.12573E-05** at limit **
  21  Prefactor     21.193        14.114        .13659E-05   -.92085E-02
  22  norm          18.306        1.0306        .18191E-07    .28809E-04
  23  norm          .10005E-03    40.090       -.21145E-05** at limit **
  24  Prefactor     .10005E-03    78.461        .33088E-05** at limit **
  25  Prefactor     4.6023        5.0651        .12179E-06   -.60761E-04
  26  Prefactor     2.6649        6.6320        .10178E-05    .10629E-02
  27  Prefactor     .10105E-03    26.491        .36744E-05** at limit **
  28  Prefactor     .10006E-03    20.957        .34947E-05** at limit **
  29  Normalizat    .95911        .26502       -.24099E-05   -.11237E-03
  30  Prefactor     1.0792        .18755       -.64349E-06   -.15650E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3775
  Prefactor  = 0.000100124
  Prefactor  = 18.1561
  Prefactor  = 0.131876
  norm       = 0.0001
  norm       = 4.80286
  Prefactor  = 0.00010018
  norm       = 24.4191
  Prefactor  = 0.000101224
  Prefactor  = 0.000100007
  Prefactor  = 15.4516
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000138838
  norm       = 1.38549
  Prefactor  = 13.61
  Prefactor  = 0.00010172
  Prefactor  = 0.0001
  Prefactor  = 21.1925
  norm       = 18.3059
  norm       = 0.000100049
  Prefactor  = 0.000100052
  Prefactor  = 4.60225
  Prefactor  = 2.66485
  Prefactor  = 0.000101053
  Prefactor  = 0.000100057
  Normalizat = 0.95911
  Prefactor  = 1.07915
 **********
 **   18 **HESSE 
 **********

 FCN=   4938.826     FROM HESSE     STATUS=OK           660 CALLS     3426 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.377        14.414        .22749E-02   -1.4827    
   2  Prefactor     .10012E-03    17.452        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.156        19.212        .23499E-02   -1.4856    
   4  Prefactor     .13188        4.7180        .51751E-01   -1.5635    
   5  norm          .10000E-03    1.3473        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.8029        4.2295        .45879E-02   -1.5270    
   7  Prefactor     .10018E-03    18.298        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          24.419        20.052        .20263E-02   -1.4719    
   9  Prefactor     .10122E-03    30.423        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    15.681        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.452        18.534        .25471E-02   -1.4922    
  12  Prefactor     .10000E-03    4.3308        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .75173        .20963E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9135        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.726        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .13884E-03    74.254        .15112       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3855        15.070        .92253E-02   -1.5473    
  18  Prefactor     13.610        9.0034        .27140E-02   -1.4970    
  19  Prefactor     .10172E-03    208.55        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.034        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.193        27.900        .21765E-02   -1.4787    
  22  norm          18.306        14.905        .23402E-02   -1.4852    
  23  norm          .10005E-03    39.815        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10005E-03    78.643        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.6023        5.0992        .46935E-02   -1.5279    
  26  Prefactor     2.6649        114.72        .63045E-02   -1.5381    
  27  Prefactor     .10105E-03    28.884        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10006E-03    20.853        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .95911        .23979        .68503E-01   -.94413    
  30  Prefactor     1.0792        .16258        .38444E-01   -.90136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93907e-07
Minuit parameter uncertainties:
  1  14.4161
  2  0.00294561
  3  19.2186
  4  1.57711
  5  4.08788e-06
  6  4.22977
  7  0.00362967
  8  20.058
  9  0.0122101
  10  0.000644727
  11  18.5406
  12  7.88567e-06
  13  4.91041e-07
  14  5.63872e-07
  15  7.06018e-06
  16  0.107537
  17  9.14124
  18  9.00432
  19  0.0380153
  20  7.08736e-05
  21  27.9172
  22  14.908
  23  0.00278652
  24  0.00403349
  25  5.09969
  26  35.0411
  27  0.0110353
  28  0.0021886
  29  0.240061
  30  0.162656
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.665e+00  3.504e+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.079e+00  1.627e-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.591e-01  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/70093/likelihoodResults_320716801_320976001_4FGL_J2339.6+0242_daily_bin314.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) = 4938.72707765
delta logL = 0.0988573992181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4938.70389167
delta logL = 0.122043379234

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7317       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3150       1.0000          .0000       10.000    
     3 'Normalizat'    .91536       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0972       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=   4938.704     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      265 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7290        317.45        .17472E-03   -.64399E-03
   2  Index         4.3180        5.5218        .86594E-02   -.61933E-04
   3  Normalizat    .91540        .21493        .30959E-03    .13110E-03
   4  Prefactor     1.0972        .15204        .20330E-03   -.29984E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.72901
  Index      = 4.31801
  Normalizat = 0.915398
  Prefactor  = 1.0972
 **********
 **   18 **HESSE 
 **********

 FCN=   4938.704     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7290        29.216        .69887E-05   -1.5445    
   2  Index         4.3180        3.9655        .34638E-03   -.13682    
   3  Normalizat    .91540        .27710        .12384E-04   -.95921    
   4  Prefactor     1.0972        .19172        .40660E-04   -.89556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48461e-09
Minuit parameter uncertainties:
  1  14.2224
  2  4.59802
  3  0.277531
  4  0.191844
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70093': 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) = 4938.70388875
delta logL = 0.122046294931

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.729e+00  1.422e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  4.318e+00  4.598e+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.097e+00  1.918e-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.154e-01  2.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/70093/cmap_HighResolution_320716801_320976001_4FGL_J2339.6+0242_daily_bin314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.45e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-30 02:45:05.453767', job_id='70093', GAL2='1.10', fit_tolerance='1e-08', EG2='0.92', EG='0.96', time_epoch_completed='1632995105.45', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.22e-01', ts2='0.27', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='314' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:45:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 70093: <4FGL_J2339.6+0242_daily_bin314> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin314> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:49 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:51 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:51 2021
Terminated at Thu Sep 30 02:45:06 2021
Results reported at Thu Sep 30 02:45:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin314 354.904 2.7102 320716801 320976001 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 :                                   639.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             238.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            857 sec.

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

