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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin412
RA = 354.904, Dec = 2.7102
tmin = 346118401, tmax = 346377601
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='71559', job_status='RUN', time_executed='2021-09-30 02:37:57.214553', time_epoch_executed='1632994677.21' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71559

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71559/ft1_4FGL_J2339.6+0242_daily_bin412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71559/ft2_4FGL_J2339.6+0242_daily_bin412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71559/ft1_4FGL_J2339.6+0242_daily_bin412.fits outfile=/scratch/kocevski/71559/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin412.fits ra=354.904 dec=2.7102 rad=12.0 tmin=346118401.0 tmax=346377601.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 4.04
user 3.83
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71559/ft2_4FGL_J2339.6+0242_daily_bin412.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/71559/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin412.fits evtable="EVENTS" outfile="/scratch/kocevski/71559/ft1_filtered_4FGL_J2339.6+0242_daily_bin412.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/71559/ft1_filtered_4FGL_J2339.6+0242_daily_bin412.fits" evtable="EVENTS" scfile=/scratch/kocevski/71559/ft2_4FGL_J2339.6+0242_daily_bin412.fits sctable="SC_DATA" outfile=/scratch/kocevski/71559/ltcube_346118401_346377601_4FGL_J2339.6+0242_daily_bin412.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/71559/ft2_4FGL_J2339.6+0242_daily_bin412.fits
.....................!
real 11.65
user 11.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71559/ft1_filtered_4FGL_J2339.6+0242_daily_bin412.fits evtable="EVENTS" scfile=/scratch/kocevski/71559/ft2_4FGL_J2339.6+0242_daily_bin412.fits sctable="SC_DATA" expcube=/scratch/kocevski/71559/ltcube_346118401_346377601_4FGL_J2339.6+0242_daily_bin412.fits outfile=/scratch/kocevski/71559/expmap_346118401_346377601_4FGL_J2339.6+0242_daily_bin412.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/71559/ltcube_346118401_346377601_4FGL_J2339.6+0242_daily_bin412.fits
.....................!
real 190.08
user 185.13
sys 4.65

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/71559/ft1_filtered_4FGL_J2339.6+0242_daily_bin412.fits scfile=/scratch/kocevski/71559/ft2_4FGL_J2339.6+0242_daily_bin412.fits outfile=/scratch/kocevski/71559/cmap_346118401_346377601_4FGL_J2339.6+0242_daily_bin412.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/71559/ft1_filtered_4FGL_J2339.6+0242_daily_bin412.fits scfile=/scratch/kocevski/71559/ft2_4FGL_J2339.6+0242_daily_bin412.fits outfile=/scratch/kocevski/71559/cmap_HighResolution_346118401_346377601_4FGL_J2339.6+0242_daily_bin412.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10735E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2737       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9147       1.0000         .10000E-03   10000.    
     6 'norm      '    .12728E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13060E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9479       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1492       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .60896E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2808       1.0000         .10000E-03   10000.    
    14 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8076       1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.946       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11086E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.291       1.0000         .10000E-03   10000.    
    22 'norm      '    17.093       1.0000         .10000E-03   10000.    
    23 'norm      '    23.496       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.9237       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.1079       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.3430       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .73390       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93588       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=   6789.037     FROM MIGRAD    STATUS=CONVERGED    795 CALLS     3959 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.127       -.94906E-06** at limit **
   2  Prefactor     .10000E-03    11.077        .57233E-06** at limit **
   3  Prefactor     .10000E-03    9.5994        .62136E-06** at limit **
   4  Prefactor     2.2742        2.7878        .32134E-07    .77895E-05
   5  norm          2.9125        2.3103        .51618E-07   -.14754E-03
   6  norm          .10000E-03    3.1235        .33413E-06** at limit **
   7  Prefactor     .10000E-03    5.6653       -.41751E-06** at limit **
   8  norm          .10000E-03    3.3234        .25799E-07** at limit **
   9  Prefactor     6.9464        20.847       -.12019E-05   -.10354E-04
  10  Prefactor     8.1497        9.4831        .56742E-08   -.35989E-06
  11  Prefactor     .10001E-03    11.990        .26278E-06** at limit **
  12  Prefactor     .10000E-03    2.8730        .33288E-07** at limit **
  13  norm          3.2809        .98212        .33736E-08    .22261E-04
  14  norm          .10000E-03    1.7524        .20706E-08** at limit **
  15  Prefactor     .10000E-03    5.1630       -.22022E-06** at limit **
  16  Prefactor     .10000E-03    24.288       -.23950E-05** at limit **
  17  norm          .10000E-03    3.9629       -.64727E-07** at limit **
  18  Prefactor     3.8064        7.0041        .39762E-05   -.10289E-04
  19  Prefactor     45.914        79.521        .37243E-05    .73915E-05
  20  Prefactor     .10000E-03    5.2495       -.45083E-06** at limit **
  21  Prefactor     17.291        23.530        .48630E-06    .22393E-04
  22  norm          17.093        20.453       -.13610E-06    .92853E-06
  23  norm          23.505        18.437        .95533E-06    .33405E-04
  24  Prefactor     .10000E-03    25.764        .19795E-05** at limit **
  25  Prefactor     5.9253        3.6349        .19737E-06    .35251E-04
  26  Prefactor     .10000E-03    19.295        .12481E-06** at limit **
  27  Prefactor     1.0845        14.659        .52523E-06   -.73661E-04
  28  Prefactor     2.3424        12.364        .10470E-05    .30240E-05
  29  Normalizat    .73377        .17380       -.10190E-05    .40874E-04
  30  Prefactor     .93597        .11746       -.18794E-06    .47403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.27422
  norm       = 2.91251
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 6.94636
  Prefactor  = 8.14971
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 3.28085
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.80643
  Prefactor  = 45.9139
  Prefactor  = 0.0001
  Prefactor  = 17.2912
  norm       = 17.0934
  norm       = 23.5052
  Prefactor  = 0.0001
  Prefactor  = 5.92526
  Prefactor  = 0.0001
  Prefactor  = 1.08449
  Prefactor  = 2.34238
  Normalizat = 0.733774
  Prefactor  = 0.935969
 **********
 **   18 **HESSE 
 **********

 FCN=   6789.037     FROM HESSE     STATUS=OK           600 CALLS     4559 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.348        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.6335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2742        2.7808        .14836E-03   -1.5406    
   5  norm          2.9125        2.3104        .10424E-03   -1.5367    
   6  norm          .10000E-03    8.0079        .27812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.460        .37041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.3310        .14669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.9464        20.849        .15220E-03   -1.5181    
  10  Prefactor     8.1497        9.4778        .14044E-03   -1.5137    
  11  Prefactor     .10001E-03    14.617        .81483E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8830        .13637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2809        .98206        .42473E-04   -1.5346    
  14  norm          .10000E-03    1.7619        .10649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.1922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.9945        .16020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8064        7.0214        .10343E-02   -1.5318    
  19  Prefactor     45.914        79.504        .59151E-04   -1.4352    
  20  Prefactor     .10000E-03    5.2847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.291        23.470        .96318E-04   -1.4876    
  22  norm          17.093        20.457        .96874E-04   -1.4881    
  23  norm          23.505        18.436        .82638E-04   -1.4738    
  24  Prefactor     .10000E-03    25.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.9253        3.6397        .56118E-03   -1.5221    
  26  Prefactor     .10000E-03    19.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.0845        74.154        .57618E-02   -1.5500    
  28  Prefactor     2.3424        12.311        .26784E-03   -1.5402    
  29  Normalizat    .73377        .19907        .29073E-03   -1.0257    
  30  Prefactor     .93597        .13760        .18809E-03   -.94895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30787e-08
Minuit parameter uncertainties:
  1  3.71382e-05
  2  8.16117e-06
  3  8.60711e-07
  4  2.781
  5  2.31049
  6  2.4518e-05
  7  0.000668982
  8  1.45687e-06
  9  20.8712
  10  9.47956
  11  0.000862703
  12  8.18619e-07
  13  0.982062
  14  2.56886e-07
  15  2.67947e-05
  16  3.91644e-05
  17  2.23628e-05
  18  7.02291
  19  79.6886
  20  5.33766e-05
  21  23.4821
  22  20.4651
  23  18.4406
  24  2.52225e-05
  25  3.63982
  26  2.47499e-05
  27  17.9578
  28  10.7431
  29  0.199264
  30  0.137655
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  2.475e-05  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:  9.360e-01  1.377e-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.338e-01  1.993e-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: 7.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71559/likelihoodResults_346118401_346377601_4FGL_J2339.6+0242_daily_bin412.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) = 6789.0368284
delta logL = -0.000246337429417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6789.03658213
delta logL = -6.0112142819e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5624       1.0000          .0000       10.000    
     3 'Normalizat'    .73382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93597       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=   6789.037     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      203 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.965        .90712E-02** at limit **
   2  Index         2.5813        6.2894        .50000       -.88305E-05
   3  Normalizat    .73377        .15872        .65710E-01    .20691E-04
   4  Prefactor     .93597        .11557        .45462E-01   -.69631E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58129
  Normalizat = 0.733774
  Prefactor  = 0.935969
 **********
 **   18 **HESSE 
 **********

 FCN=   6789.037     FROM HESSE     STATUS=OK            27 CALLS      230 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5813        6.2853        .20000E-01   -.50493    
   3  Normalizat    .73377        .18434        .29073E-03   -1.0257    
   4  Prefactor     .93597        .13443        .18809E-03   -.94895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88352e-11
Minuit parameter uncertainties:
  1  3.55008e-05
  2  4.37899
  3  0.184498
  4  0.134481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71559': 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) = 6789.036582
delta logL = 6.42921804683e-08

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  3.550e-05  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.581e+00  4.379e+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:  9.360e-01  1.345e-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.338e-01  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.904 2.710

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/71559/cmap_HighResolution_346118401_346377601_4FGL_J2339.6+0242_daily_bin412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-03', job_status='DONE', photon_flux_upper_limit='7.02e-08', time_completed='2021-09-30 02:51:47.276340', job_id='71559', GAL2='0.94', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632995507.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='6.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='412' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 71559: <4FGL_J2339.6+0242_daily_bin412> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin412 354.904 2.7102 346118401 346377601 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 :                                   828.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            988 sec.

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

