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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin596
RA = 354.904, Dec = 2.7102
tmin = 393811201, tmax = 394070401
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='71884', job_status='RUN', time_executed='2021-09-30 02:38:44.474329', time_epoch_executed='1632994724.47' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71884

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71884/ft1_4FGL_J2339.6+0242_daily_bin596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71884/ft2_4FGL_J2339.6+0242_daily_bin596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71884/ft1_4FGL_J2339.6+0242_daily_bin596.fits outfile=/scratch/kocevski/71884/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin596.fits ra=354.904 dec=2.7102 rad=12.0 tmin=393811201.0 tmax=394070401.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.49
user 3.27
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71884/ft1_filtered_4FGL_J2339.6+0242_daily_bin596.fits evtable="EVENTS" scfile=/scratch/kocevski/71884/ft2_4FGL_J2339.6+0242_daily_bin596.fits sctable="SC_DATA" expcube=/scratch/kocevski/71884/ltcube_393811201_394070401_4FGL_J2339.6+0242_daily_bin596.fits outfile=/scratch/kocevski/71884/expmap_393811201_394070401_4FGL_J2339.6+0242_daily_bin596.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/71884/ltcube_393811201_394070401_4FGL_J2339.6+0242_daily_bin596.fits
.....................!
real 190.19
user 185.11
sys 4.76

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/71884/ft1_filtered_4FGL_J2339.6+0242_daily_bin596.fits scfile=/scratch/kocevski/71884/ft2_4FGL_J2339.6+0242_daily_bin596.fits outfile=/scratch/kocevski/71884/cmap_393811201_394070401_4FGL_J2339.6+0242_daily_bin596.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/71884/ft1_filtered_4FGL_J2339.6+0242_daily_bin596.fits scfile=/scratch/kocevski/71884/ft2_4FGL_J2339.6+0242_daily_bin596.fits outfile=/scratch/kocevski/71884/cmap_HighResolution_393811201_394070401_4FGL_J2339.6+0242_daily_bin596.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.57
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.217       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6431       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6395       1.0000         .10000E-03   10000.    
     5 'norm      '    .10879E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .76199E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.7602       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2552       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1994       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3447       1.0000         .10000E-03   10000.    
    14 'norm      '    4.5224       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9878       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .53270E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    17.249       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9683       1.0000         .10000E-03   10000.    
    19 'Prefactor '    57.627       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .29461E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.8225       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    29.034       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.625       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0504       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .83863       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=   5303.734     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     3888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    50.026       -.17513E-05** at limit **
   2  Prefactor     41.255        6.2950       -.58782E-06    .10084E-02
   3  Prefactor     8.6629        13.323       -.58267E-06   -.59394E-02
   4  Prefactor     1.6394        3.3419       -.14516E-06   -.22424E-04
   5  norm          .10000E-03    2.0612       -.83954E-06** at limit **
   6  norm          .10015E-03    29.053        .15536E-05** at limit **
   7  Prefactor     .10000E-03    12.166        .73726E-06** at limit **
   8  norm          3.7601        1.7154       -.63286E-07   -.40123E-03
   9  Prefactor     4.3026        8.6681       -.26469E-05    .25237E-02
  10  Prefactor     .10000E-03    2.9834       -.10694E-05** at limit **
  11  Prefactor     9.1958        1.8151       -.10604E-06   -.28962E-03
  12  Prefactor     .10000E-03    3.6511       -.74209E-06** at limit **
  13  norm          1.3437        1.1042        .24713E-08    .10023E-03
  14  norm          4.5221        4.6487       -.71143E-07    .19270E-04
  15  Prefactor     4.0096        2.9431       -.21069E-06    .66939E-03
  16  Prefactor     .89293E-03    54.687        .78169E-05** at limit **
  17  norm          17.248        4.5280        .49088E-10   -.50901E-02
  18  Prefactor     8.9737        5.6546        .27980E-07    .15051E-02
  19  Prefactor     57.610        3.1354        .18963E-06    .20902E-02
  20  Prefactor     .10000E-03    19.993       -.16159E-06** at limit **
  21  Prefactor     .10775E-03    701.95        .31881E-04** at limit **
  22  norm          .10000E-03    4.8876       -.61169E-06** at limit **
  23  norm          .10000E-03    12.731        .36585E-06** at limit **
  24  Prefactor     7.9089        13.818       -.29795E-05    .86753E-03
  25  Prefactor     .10000E-03    2.9212       -.90755E-06** at limit **
  26  Prefactor     29.025        2.2235        .20290E-06   -.18311E-02
  27  Prefactor     15.669        18.919       -.16625E-05    .43543E-02
  28  Prefactor     .10000E-03    5.9928       -.44067E-06** at limit **
  29  Normalizat    1.0502        .24619        .24532E-05    .61341E-04
  30  Prefactor     .83869        .16170       -.94154E-06    .29633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Prefactor  = 41.2547
  Prefactor  = 8.66289
  Prefactor  = 1.63937
  norm       = 0.0001
  norm       = 0.000100148
  Prefactor  = 0.0001
  norm       = 3.76005
  Prefactor  = 4.30261
  Prefactor  = 0.0001
  Prefactor  = 9.19577
  Prefactor  = 0.0001
  norm       = 1.34375
  norm       = 4.52206
  Prefactor  = 4.00961
  Prefactor  = 0.000892931
  norm       = 17.2481
  Prefactor  = 8.97371
  Prefactor  = 57.6101
  Prefactor  = 0.000100004
  Prefactor  = 0.00010775
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 7.90888
  Prefactor  = 0.0001
  Prefactor  = 29.0253
  Prefactor  = 15.6687
  Prefactor  = 0.0001
  Normalizat = 1.05023
  Prefactor  = 0.838694
 **********
 **   18 **HESSE 
 **********

 FCN=   5303.734     FROM HESSE     STATUS=OK           672 CALLS     4560 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    49.078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.255        54.469        .15610E-02   -1.4422    
   3  Prefactor     8.6629        18.777        .34087E-02   -1.5119    
   4  Prefactor     1.6394        3.3892        .82506E-02   -1.5452    
   5  norm          .10000E-03    2.0112        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10015E-03    2.7896        .71869E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.042        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.7601        11.743        .52051E-02   -1.5320    
   9  Prefactor     4.3026        82.693        .48831E-02   -1.5293    
  10  Prefactor     .10000E-03    2.9831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.1958        15.862        .33034E-02   -1.5101    
  12  Prefactor     .10000E-03    3.6465        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3437        1.1208        .94423E-03   -1.5476    
  14  norm          4.5221        4.6658        .47328E-02   -1.5283    
  15  Prefactor     4.0096        11.681        .50492E-02   -1.5307    
  16  Prefactor     .89293E-03    97.078        .14694       -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.248        12.113        .24109E-02   -1.4877    
  18  Prefactor     8.9737        9.2214        .33459E-02   -1.5109    
  19  Prefactor     57.610        159.78        .13212E-02   -1.4188    
  20  Prefactor     .10000E-03    19.751        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10775E-03    27.904        .11141       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.8877        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    12.719        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.9089        99.215        .35842E-02   -1.5145    
  25  Prefactor     .10000E-03    2.8726        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     29.025        37.631        .18588E-02   -1.4630    
  27  Prefactor     15.669        26.105        .25331E-02   -1.4916    
  28  Prefactor     .10000E-03    5.9826        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0502        .21792        .61302E-01   -.91366    
  30  Prefactor     .83869        .14038        .44218E-01   -.98317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75759e-07
Minuit parameter uncertainties:
  1  0.0018191
  2  54.5348
  3  18.79
  4  3.38956
  5  1.68231e-05
  6  0.00128701
  7  0.000126749
  8  11.7499
  9  37.7849
  10  2.60604e-05
  11  15.869
  12  1.98574e-05
  13  1.12084
  14  4.66622
  15  11.6881
  16  0.555794
  17  12.1147
  18  9.22286
  19  160.994
  20  0.000580349
  21  0.0294255
  22  1.81934e-05
  23  0.000233642
  24  56.1393
  25  2.17561e-05
  26  37.6614
  27  26.1239
  28  1.39653e-05
  29  0.218105
  30  0.140445
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.903e+01  3.766e+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:  8.387e-01  1.404e-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:  1.050e+00  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/71884/likelihoodResults_393811201_394070401_4FGL_J2339.6+0242_daily_bin596.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) = 5303.72121801
delta logL = 0.0124541169453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5303.71518186
delta logL = 0.0184902700075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.463       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7857       1.0000          .0000       10.000    
     3 'Normalizat'    1.0416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84272       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=   5303.715     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      264 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.464        46.880        .80990E-04   -.12805E-03
   2  Index         2.7855        1.4309        .89105E-02   -.67680E-04
   3  Normalizat    1.0412        .24136        .27216E-03    .94737E-04
   4  Prefactor     .84300        .16396        .20628E-03    .12995E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.4638
  Index      = 2.78551
  Normalizat = 1.04115
  Prefactor  = 0.843004
 **********
 **   18 **HESSE 
 **********

 FCN=   5303.715     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.464        42.192        .16198E-04   -1.4718    
   2  Index         2.7855        1.2894        .35642E-03   -.45883    
   3  Normalizat    1.0412        .24068        .10887E-04   -.91664    
   4  Prefactor     .84300        .16358        .82513E-05   -.98162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06963e-10
Minuit parameter uncertainties:
  1  42.2439
  2  1.30786
  3  0.240929
  4  0.163674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71884': 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) = 5303.7151801
delta logL = 0.0184920221573

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.446e+01  4.224e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.786e+00  1.308e+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:  8.430e-01  1.637e-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:  1.041e+00  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.85
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/71884/cmap_HighResolution_393811201_394070401_4FGL_J2339.6+0242_daily_bin596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-30 02:51:04.018217', job_id='71884', GAL2='0.84', fit_tolerance='1e-08', EG2='1.04', EG='1.05', time_epoch_completed='1632995464.02', return_code2='0', ts='0.85', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.85e-02', ts2='0.89', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='596' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 71884: <4FGL_J2339.6+0242_daily_bin596> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin596 354.904 2.7102 393811201 394070401 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 :                                   738.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            912 sec.

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

