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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin371
RA = 354.904, Dec = 2.7102
tmin = 335491201, tmax = 335750401
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='70235', job_status='RUN', time_executed='2021-09-30 02:34:51.346540', time_epoch_executed='1632994491.35' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='371'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70235

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70235/ft1_4FGL_J2339.6+0242_daily_bin371.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70235/ft2_4FGL_J2339.6+0242_daily_bin371.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70235/ft1_4FGL_J2339.6+0242_daily_bin371.fits outfile=/scratch/kocevski/70235/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin371.fits ra=354.904 dec=2.7102 rad=12.0 tmin=335491201.0 tmax=335750401.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.33
user 3.11
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70235/ft2_4FGL_J2339.6+0242_daily_bin371.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/70235/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin371.fits evtable="EVENTS" outfile="/scratch/kocevski/70235/ft1_filtered_4FGL_J2339.6+0242_daily_bin371.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/70235/ft1_filtered_4FGL_J2339.6+0242_daily_bin371.fits" evtable="EVENTS" scfile=/scratch/kocevski/70235/ft2_4FGL_J2339.6+0242_daily_bin371.fits sctable="SC_DATA" outfile=/scratch/kocevski/70235/ltcube_335491201_335750401_4FGL_J2339.6+0242_daily_bin371.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/70235/ft2_4FGL_J2339.6+0242_daily_bin371.fits
.....................!
real 11.69
user 11.32
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70235/ft1_filtered_4FGL_J2339.6+0242_daily_bin371.fits evtable="EVENTS" scfile=/scratch/kocevski/70235/ft2_4FGL_J2339.6+0242_daily_bin371.fits sctable="SC_DATA" expcube=/scratch/kocevski/70235/ltcube_335491201_335750401_4FGL_J2339.6+0242_daily_bin371.fits outfile=/scratch/kocevski/70235/expmap_335491201_335750401_4FGL_J2339.6+0242_daily_bin371.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/70235/ltcube_335491201_335750401_4FGL_J2339.6+0242_daily_bin371.fits
.....................!
real 191.59
user 186.60
sys 4.67

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/70235/ft1_filtered_4FGL_J2339.6+0242_daily_bin371.fits scfile=/scratch/kocevski/70235/ft2_4FGL_J2339.6+0242_daily_bin371.fits outfile=/scratch/kocevski/70235/cmap_335491201_335750401_4FGL_J2339.6+0242_daily_bin371.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.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.3222       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8384       1.0000         .10000E-03   10000.    
     8 'norm      '    12.775       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20570E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1621       1.0000         .10000E-03   10000.    
    13 'norm      '    5.3744       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .61274E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.176       1.0000         .10000E-03   10000.    
    17 'norm      '    .10608       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2867       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.0921       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .57653E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    29.887       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.4199       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0223       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .84753       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=   5456.182     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     3977 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2126       -.84630E-07** at limit **
   2  Prefactor     .10000E-03    16.289       -.20928E-06** at limit **
   3  Prefactor     .10000E-03    8.4074       -.15130E-07** at limit **
   4  Prefactor     .10000E-03    4.2695        .28025E-06** at limit **
   5  norm          .10000E-03    1.8763       -.32787E-06** at limit **
   6  norm          5.3227        4.4808       -.61942E-07   -.74430E-04
   7  Prefactor     1.8402        17.089        .19620E-05    .15340E-04
   8  norm          12.788        17.005        .61086E-08   -.40692E-04
   9  Prefactor     .10000E-03    133.81        .45703E-05** at limit **
  10  Prefactor     .10000E-03    8.9285       -.35206E-06** at limit **
  11  Prefactor     .10000E-03    12.550        .37601E-06** at limit **
  12  Prefactor     8.1629        12.908       -.11501E-06   -.40962E-05
  13  norm          5.3742        1.6016       -.20883E-06   -.19361E-03
  14  norm          .10000E-03    4.3347       -.37872E-06** at limit **
  15  Prefactor     .10001E-03    7.3239        .16492E-06** at limit **
  16  Prefactor     20.289        56.145        .13160E-04    .14293E-03
  17  norm          .17677        7.6301        .27043E-05   -.85982E-03
  18  Prefactor     .10000E-03    8.4170       -.37040E-06** at limit **
  19  Prefactor     6.4811        1940.4        .52631E-05    .12537E-04
  20  Prefactor     .10000E-03    7.0068        .44016E-06** at limit **
  21  Prefactor     .10000E-03    10.952       -.34405E-07** at limit **
  22  norm          .10000E-03    5.4474       -.25417E-07** at limit **
  23  norm          .10000E-03    7.8341        .11257E-06** at limit **
  24  Prefactor     .10000E-03    35.578        .35417E-07** at limit **
  25  Prefactor     6.0918        5.9346        .38682E-05   -.71890E-04
  26  Prefactor     .10001E-03    212.11        .30894E-05** at limit **
  27  Prefactor     29.899        23.863        .25652E-07   -.67815E-04
  28  Prefactor     1.4219        45.160       -.52237E-06   -.24100E-04
  29  Normalizat    1.0224        .20996       -.82015E-06   -.21345E-03
  30  Prefactor     .84750        .13588       -.74906E-06   -.31768E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.32274
  Prefactor  = 1.84023
  norm       = 12.7882
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.16285
  norm       = 5.37419
  norm       = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 20.2889
  norm       = 0.176766
  Prefactor  = 0.0001
  Prefactor  = 6.48112
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.09183
  Prefactor  = 0.000100005
  Prefactor  = 29.8995
  Prefactor  = 1.42191
  Normalizat = 1.02236
  Prefactor  = 0.8475
 **********
 **   18 **HESSE 
 **********

 FCN=   5456.182     FROM HESSE     STATUS=OK           582 CALLS     4559 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2245        .14807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.4319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3390        .14907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.4273        .19281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3227        4.4680        .13709E-03   -1.5247    
   7  Prefactor     1.8402        16.941        .30768E-03   -1.5437    
   8  norm          12.788        17.003        .11207E-03   -1.4993    
   9  Prefactor     .10000E-03    138.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.1629        12.880        .14033E-03   -1.5136    
  13  norm          5.3742        1.6017        .47548E-04   -1.5244    
  14  norm          .10000E-03    4.3558        .14985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    23.861        .37299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.289        57.541        .89170E-04   -1.4807    
  17  norm          .17677        66.424        .36013E-02   -1.5624    
  18  Prefactor     .10000E-03    8.6916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.4811        1933.9        .16009E-03   -1.5199    
  20  Prefactor     .10000E-03    7.0042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.4480        .16838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.8333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    35.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.0918        6.0705        .81197E-03   -1.5214    
  26  Prefactor     .10001E-03    217.88        .42170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     29.899        23.914        .73287E-04   -1.4614    
  28  Prefactor     1.4219        45.578        .36308E-03   -1.5469    
  29  Normalizat    1.0224        .24131        .27837E-03   -.92285    
  30  Prefactor     .84750        .15784        .20820E-03   -.98000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78786e-08
Minuit parameter uncertainties:
  1  1.1764e-06
  2  1.12399e-05
  3  1.10436e-05
  4  1.55015e-05
  5  6.93309e-05
  6  4.46831
  7  11.1709
  8  17.0093
  9  0.000934298
  10  2.59223e-06
  11  9.22424e-06
  12  12.8841
  13  1.60174
  14  1.24378e-05
  15  0.00116879
  16  57.6991
  17  6.85888
  18  7.45001e-05
  19  231.922
  20  0.000119338
  21  1.33722e-05
  22  5.88604e-08
  23  4.39947e-05
  24  4.51082e-06
  25  6.07115
  26  0.00217188
  27  23.9216
  28  16.1135
  29  0.241566
  30  0.15793
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  2.172e-03  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.475e-01  1.579e-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.022e+00  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/70235/likelihoodResults_335491201_335750401_4FGL_J2339.6+0242_daily_bin371.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) = 5456.18156888
delta logL = -2.17483739107e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5456.18154722
delta logL = -8.67130438564e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5188       1.0000          .0000       10.000    
     3 'Normalizat'    1.0224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84750       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=   5455.605     FROM MIGRAD    STATUS=CONVERGED    277 CALLS      467 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .83631E-04    .36476E-03** at limit **
   2  Index         9.8072        1.6332        .50000       -.62540E-04
   3  Normalizat    .95166        .20011        .64919E-01    .82100E-04
   4  Prefactor     .87957        .13619        .44332E-01   -.14408E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.8072
  Normalizat = 0.951661
  Prefactor  = 0.879566
 **********
 **   18 **HESSE 
 **********

 FCN=   5455.605     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      506 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .30987E-01    .17310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.8072        5.5158        .50038E-01    1.2922    
   3  Normalizat    .95166        .11204        .28716E-03   -.94668    
   4  Prefactor     .87957        .77012E-01    .20480E-03   -.96859    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.90459e-08
Minuit parameter uncertainties:
  1  7.58048e-07
  2  7.27363
  3  0.112071
  4  0.0770216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70235': 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) = 5455.60538227
delta logL = 0.576164860891

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  7.580e-07  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  9.807e+00  7.274e+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.796e-01  7.702e-02  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.517e-01  1.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 354.904 2.710
Photon Index (Free Index): 9.81 +/- 7.27
Photon Flux (Free Index): 6.49e-08 +/- 8.87e-07
Energy Flux (Free Index): 7.27e-06 +/- 9.93e-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/70235/cmap_HighResolution_335491201_335750401_4FGL_J2339.6+0242_daily_bin371.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-03', comment='SUCCESS', energy_flux2='7.27e-06', dlogl='5.76e-01', photon_flux2='6.49e-08', job_status='DONE', time_completed='2021-09-30 02:47:11.607009', photon_index_error2='7.27', photon_index2='9.81', ts='-0.00', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='9.93e-05', EG='1.02', time_epoch_completed='1632995231.61', return_code='0', job_id='70235', GAL2='0.88', EG2='0.95', return_code2='102', photon_flux_error2='8.87e-07', ts2='1.23', photon_index='2.55' WHERE bin_id='371' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:47:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 70235: <4FGL_J2339.6+0242_daily_bin371> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin371> 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) <bullet0149>, 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:47:12 2021
Results reported at Thu Sep 30 02:47:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin371 354.904 2.7102 335491201 335750401 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 :                                   739.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            976 sec.

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

