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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1332
RA = 354.904, Dec = 2.7102
tmin = 584582401, tmax = 584841601
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='76279', job_status='RUN', time_executed='2021-09-30 02:50:39.884036', time_epoch_executed='1632995439.88' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76279

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76279/ft1_4FGL_J2339.6+0242_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76279/ft2_4FGL_J2339.6+0242_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/76279/ft1_4FGL_J2339.6+0242_daily_bin1332.fits outfile=/scratch/kocevski/76279/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1332.fits ra=354.904 dec=2.7102 rad=12.0 tmin=584582401.0 tmax=584841601.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 2.81
user 2.59
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/76279/ft2_4FGL_J2339.6+0242_daily_bin1332.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/76279/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1332.fits evtable="EVENTS" outfile="/scratch/kocevski/76279/ft1_filtered_4FGL_J2339.6+0242_daily_bin1332.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/76279/ft1_filtered_4FGL_J2339.6+0242_daily_bin1332.fits" evtable="EVENTS" scfile=/scratch/kocevski/76279/ft2_4FGL_J2339.6+0242_daily_bin1332.fits sctable="SC_DATA" outfile=/scratch/kocevski/76279/ltcube_584582401_584841601_4FGL_J2339.6+0242_daily_bin1332.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/76279/ft2_4FGL_J2339.6+0242_daily_bin1332.fits
.....................!
real 12.32
user 11.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76279/ft1_filtered_4FGL_J2339.6+0242_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/76279/ft2_4FGL_J2339.6+0242_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/76279/ltcube_584582401_584841601_4FGL_J2339.6+0242_daily_bin1332.fits outfile=/scratch/kocevski/76279/expmap_584582401_584841601_4FGL_J2339.6+0242_daily_bin1332.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/76279/ltcube_584582401_584841601_4FGL_J2339.6+0242_daily_bin1332.fits
.....................!
real 191.29
user 185.17
sys 5.72

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/76279/ft1_filtered_4FGL_J2339.6+0242_daily_bin1332.fits scfile=/scratch/kocevski/76279/ft2_4FGL_J2339.6+0242_daily_bin1332.fits outfile=/scratch/kocevski/76279/cmap_HighResolution_584582401_584841601_4FGL_J2339.6+0242_daily_bin1332.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    5.8481       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.478       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7499       1.0000         .10000E-03   10000.    
     5 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    84.307       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.180       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4169       1.0000         .10000E-03   10000.    
    13 'norm      '    .37928       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1344       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0408       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .86560       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.377       1.0000         .10000E-03   10000.    
    26 'Prefactor '    62.873       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.018       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82419       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .84354       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=   6545.632     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3948 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1903        .39028E-07** at limit **
   2  Prefactor     5.8538        64.312        .45409E-05    .13628E-04
   3  Prefactor     28.476        13.157        .24763E-06    .34446E-04
   4  Prefactor     3.7495        3.1612        .72015E-06   -.24115E-02
   5  norm          .10000E-03    1.1519       -.40100E-07** at limit **
   6  norm          .10000E-03    2.0000       -.30830E-07** at limit **
   7  Prefactor     .10000E-03    3.2265        .45168E-07** at limit **
   8  norm          .10000E-03    6.9411        .50134E-06** at limit **
   9  Prefactor     84.302        43.142       -.15765E-05   -.34524E-04
  10  Prefactor     12.180        14.527        .19731E-06   -.15051E-05
  11  Prefactor     .10000E-03    19.106       -.82401E-05** at limit **
  12  Prefactor     6.4170        6.9651        .29175E-06   -.65458E-03
  13  norm          .37926        .87081        .63464E-07   -.28105E-03
  14  norm          .10000E-03    1.6384       -.11995E-07** at limit **
  15  Prefactor     8.1347        6.8716        .64317E-07    .32372E-04
  16  Prefactor     4.0396        65.190       -.16826E-05   -.29096E-05
  17  norm          .10000E-03    3.8641       -.25141E-08** at limit **
  18  Prefactor     .10000E-03    2.4024        .24947E-07** at limit **
  19  Prefactor     .10000E-03    157.98       -.15613E-06** at limit **
  20  Prefactor     .86901        12.752       -.30321E-06   -.84827E-04
  21  Prefactor     .10000E-03    11.289       -.28963E-05** at limit **
  22  norm          .10000E-03    6.2192       -.30227E-06** at limit **
  23  norm          .10000E-03    12.198        .22597E-05** at limit **
  24  Prefactor     .10000E-03    21.132        .66755E-05** at limit **
  25  Prefactor     13.379        6.0937       -.78384E-07    .61028E-04
  26  Prefactor     62.883        37.936        .29881E-05    .11370E-03
  27  Prefactor     .10000E-03    13.869        .21936E-05** at limit **
  28  Prefactor     11.019        13.719       -.19308E-06   -.16508E-04
  29  Normalizat    .82406        .18646       -.10917E-05    .10139E-03
  30  Prefactor     .84361        .12081        .30188E-06    .36783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.8538
  Prefactor  = 28.4762
  Prefactor  = 3.74954
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 84.3022
  Prefactor  = 12.1803
  Prefactor  = 0.000100001
  Prefactor  = 6.41705
  norm       = 0.379258
  norm       = 0.0001
  Prefactor  = 8.13466
  Prefactor  = 4.03957
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.869012
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.3788
  Prefactor  = 62.8825
  Prefactor  = 0.0001
  Prefactor  = 11.0188
  Normalizat = 0.82406
  Prefactor  = 0.84361
 **********
 **   18 **HESSE 
 **********

 FCN=   6545.632     FROM HESSE     STATUS=OK           586 CALLS     4534 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2000        .16171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8538        67.158        .16607E-03   -1.5224    
   3  Prefactor     28.476        12.943        .75074E-04   -1.4640    
   4  Prefactor     3.7495        5.4001        .10425E-02   -1.5321    
   5  norm          .10000E-03    2.3390        .16407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.0328        .11169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2370        .14191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.9747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     84.302        43.182        .43750E-04   -1.3869    
  10  Prefactor     12.180        14.522        .11478E-03   -1.5010    
  11  Prefactor     .10000E-03    19.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.4170        7.1427        .79221E-03   -1.5201    
  13  norm          .37926        .83775        .10421E-03   -1.5585    
  14  norm          .10000E-03    1.6412        .10109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.1347        6.8693        .14057E-03   -1.5137    
  16  Prefactor     4.0396        64.984        .20060E-03   -1.5306    
  17  norm          .10000E-03    3.8988        .15520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4231        .12242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    158.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .86901        31.698        .43642E-02   -1.5522    
  21  Prefactor     .10000E-03    11.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.2233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    12.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    21.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.379        5.7589        .10546E-03   -1.4976    
  26  Prefactor     62.883        38.030        .50607E-04   -1.4120    
  27  Prefactor     .10000E-03    13.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.019        13.732        .12070E-03   -1.5044    
  29  Normalizat    .82406        .22097        .28255E-03   -.99182    
  30  Prefactor     .84361        .14352        .19559E-03   -.98140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39618e-08
Minuit parameter uncertainties:
  1  4.41914e-06
  2  39.711
  3  12.9446
  4  5.4008
  5  1.71189e-06
  6  7.48551e-07
  7  1.41141e-06
  8  1.37468e-05
  9  43.1981
  10  14.5258
  11  0.000205897
  12  7.14366
  13  0.837779
  14  2.40615e-08
  15  6.86997
  16  32.4456
  17  2.13446e-06
  18  1.75993e-06
  19  1.2965e-05
  20  10.5023
  21  7.80979e-05
  22  4.97846e-06
  23  6.84645e-05
  24  0.000239723
  25  5.75914
  26  38.0447
  27  3.19902e-05
  28  13.7356
  29  0.221212
  30  0.143584
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  6.288e+01  3.804e+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.436e-01  1.436e-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:  8.241e-01  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.96
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 7.61e-08 +/- 4.60e-08
Energy Flux (Fixed Index): 2.10e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/76279/likelihoodResults_584582401_584841601_4FGL_J2339.6+0242_daily_bin1332.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) = 6542.65500437
delta logL = 2.97726548462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6542.61594376
delta logL = 3.01632609419

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0439       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4241       1.0000          .0000       10.000    
     3 'Normalizat'    .72999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88905       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=   6542.616     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      237 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0420        36.580        .40830E-02    .32973E-03
   2  Index         4.4243        2.5032        .78129E-01    .18055E-03
   3  Normalizat    .73000        .77589E-01    .67254E-01    .28858E-04
   4  Prefactor     .88905        .54092E-01    .44865E-01   -.18205E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.04201
  Index      = 4.42429
  Normalizat = 0.730001
  Prefactor  = 0.889051
 **********
 **   18 **HESSE 
 **********

 FCN=   6542.616     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0420        48.233        .75454E-04   -1.5216    
   2  Index         4.4243        2.9571        .32880E-02   -.11540    
   3  Normalizat    .73000        .20173        .29758E-03   -1.0272    
   4  Prefactor     .88905        .14069        .19084E-03   -.96525    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.17287e-11
Minuit parameter uncertainties:
  1  34.18
  2  3.16748
  3  0.201932
  4  0.140748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76279': 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) = 6542.61594373
delta logL = 3.01632612183

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  6.042e+00  3.418e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  4.424e+00  3.167e+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.891e-01  1.407e-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:  7.300e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.53
Ra Dec: 354.904 2.710
Photon Index (Free Index): 4.42 +/- 3.17
Photon Flux (Free Index): 1.56e-07 +/- 6.38e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.32e-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/76279/cmap_HighResolution_584582401_584841601_4FGL_J2339.6+0242_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', photon_flux='7.61e-08', energy_flux2='2.20e-05', photon_flux_error='4.60e-08', dlogl='3.02e+00', energy_flux='2.10e-05', photon_flux2='1.56e-07', job_status='DONE', time_completed='2021-09-30 03:04:24.455272', photon_index_error2='3.17', photon_index2='4.42', ts='3.96', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='1.32e-05', EG='0.82', time_epoch_completed='1632996264.46', return_code='0', job_id='76279', GAL2='0.89', EG2='0.73', return_code2='102', energy_flux_error='1.27e-05', photon_flux_error2='6.38e-08', ts2='10.53', photon_index='2.55' WHERE bin_id='1332' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 03:04:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 76279: <4FGL_J2339.6+0242_daily_bin1332> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin1332> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:50:22 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:50:24 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:50:24 2021
Terminated at Thu Sep 30 03:04:25 2021
Results reported at Thu Sep 30 03:04:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1332 354.904 2.7102 584582401 584841601 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 :                                   820.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            843 sec.

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

