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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin11
RA = 354.904, Dec = 2.7102
tmin = 242179201, tmax = 242438401
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='68316', job_status='RUN', time_executed='2021-09-30 02:26:18.328141', time_epoch_executed='1632993978.33' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='11'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68316

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68316/ft1_4FGL_J2339.6+0242_daily_bin11.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68316/ft2_4FGL_J2339.6+0242_daily_bin11.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68316/ft1_4FGL_J2339.6+0242_daily_bin11.fits outfile=/scratch/kocevski/68316/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin11.fits ra=354.904 dec=2.7102 rad=12.0 tmin=242179201.0 tmax=242438401.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 1.44
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/68316/ft1_filtered_4FGL_J2339.6+0242_daily_bin11.fits" evtable="EVENTS" scfile=/scratch/kocevski/68316/ft2_4FGL_J2339.6+0242_daily_bin11.fits sctable="SC_DATA" outfile=/scratch/kocevski/68316/ltcube_242179201_242438401_4FGL_J2339.6+0242_daily_bin11.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/68316/ft2_4FGL_J2339.6+0242_daily_bin11.fits
.....................!
real 13.01
user 12.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68316/ft1_filtered_4FGL_J2339.6+0242_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/68316/ft2_4FGL_J2339.6+0242_daily_bin11.fits sctable="SC_DATA" expcube=/scratch/kocevski/68316/ltcube_242179201_242438401_4FGL_J2339.6+0242_daily_bin11.fits outfile=/scratch/kocevski/68316/expmap_242179201_242438401_4FGL_J2339.6+0242_daily_bin11.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/68316/ltcube_242179201_242438401_4FGL_J2339.6+0242_daily_bin11.fits
.....................!
real 191.04
user 185.72
sys 4.94

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/68316/ft1_filtered_4FGL_J2339.6+0242_daily_bin11.fits scfile=/scratch/kocevski/68316/ft2_4FGL_J2339.6+0242_daily_bin11.fits outfile=/scratch/kocevski/68316/cmap_242179201_242438401_4FGL_J2339.6+0242_daily_bin11.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68316/ft1_filtered_4FGL_J2339.6+0242_daily_bin11.fits scfile=/scratch/kocevski/68316/ft2_4FGL_J2339.6+0242_daily_bin11.fits outfile=/scratch/kocevski/68316/cmap_HighResolution_242179201_242438401_4FGL_J2339.6+0242_daily_bin11.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.951       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.302       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.245       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2151       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.317       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6006       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.129       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0390       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.096       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3416       1.0000         .10000E-03   10000.    
    13 'norm      '    .60168       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3997       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1415       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    30.758       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.734       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.244       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11765E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.874       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .35531       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2178       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=   6100.278     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3929 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.951        15.591       -.29689E-06   -.43706E-04
   2  Prefactor     .10000E-03    29.082       -.31023E-06** at limit **
   3  Prefactor     18.301        16.651       -.47759E-06    .20532E-04
   4  Prefactor     17.245        8.4007       -.18350E-06   -.58652E-04
   5  norm          .10000E-03    1.0008       -.24208E-06** at limit **
   6  norm          2.2150        4.0252       -.19157E-06   -.10991E-04
   7  Prefactor     28.314        17.194       -.34282E-06   -.23636E-04
   8  norm          1.6003        7.9192        .15564E-05    .80159E-04
   9  Prefactor     16.130        18.722       -.83855E-07   -.17798E-04
  10  Prefactor     7.0388        7.5885       -.61186E-07   -.11004E-04
  11  Prefactor     21.096        15.208       -.28565E-06   -.20913E-04
  12  Prefactor     2.3370        9.7019       -.36347E-05   -.29254E-04
  13  norm          .60132        .71986       -.80754E-07   -.73335E-03
  14  norm          1.4006        4.5832        .39433E-05   -.76278E-04
  15  Prefactor     9.1416        8.0217       -.47878E-07    .18437E-05
  16  Prefactor     .10000E-03    35.573       -.72234E-06** at limit **
  17  norm          30.757        13.320       -.12002E-06    .92251E-05
  18  Prefactor     22.734        10.767       -.14373E-06    .33628E-05
  19  Prefactor     .10000E-03    149.83        .13494E-05** at limit **
  20  Prefactor     .10000E-03    3.9272       -.17983E-06** at limit **
  21  Prefactor     39.243        28.015       -.39352E-06    .14511E-04
  22  norm          .10000E-03    6.6140        .16115E-07** at limit **
  23  norm          .10000E-03    11.542       -.18621E-06** at limit **
  24  Prefactor     .10000E-03    48.289        .10289E-05** at limit **
  25  Prefactor     .10000E-03    1.3747       -.18671E-06** at limit **
  26  Prefactor     .10000E-03    80.550       -.29222E-05** at limit **
  27  Prefactor     21.862        31.613       -.29816E-05    .80879E-04
  28  Prefactor     .10000E-03    6.3455       -.35447E-06** at limit **
  29  Normalizat    .35554        .22813        .71583E-05    .94066E-04
  30  Prefactor     1.2176        .15792       -.24122E-05    .20248E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.951
  Prefactor  = 0.0001
  Prefactor  = 18.3012
  Prefactor  = 17.2451
  norm       = 0.0001
  norm       = 2.21502
  Prefactor  = 28.3144
  norm       = 1.60032
  Prefactor  = 16.1297
  Prefactor  = 7.03878
  Prefactor  = 21.0957
  Prefactor  = 2.33703
  norm       = 0.601324
  norm       = 1.40063
  Prefactor  = 9.14156
  Prefactor  = 0.0001
  norm       = 30.7569
  Prefactor  = 22.7338
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 39.2431
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8621
  Prefactor  = 0.0001
  Normalizat = 0.35554
  Prefactor  = 1.21765
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.278     FROM HESSE     STATUS=OK           594 CALLS     4523 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.951        15.571        .78637E-04   -1.4689    
   2  Prefactor     .10000E-03    29.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.301        16.571        .93619E-04   -1.4852    
   4  Prefactor     17.245        8.3934        .96445E-04   -1.4877    
   5  norm          .10000E-03    1.0082        .76105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2150        3.9928        .20126E-03   -1.5410    
   7  Prefactor     28.314        17.123        .75287E-04   -1.4643    
   8  norm          1.6003        7.8463        .16755E-02   -1.5455    
   9  Prefactor     16.130        18.739        .99727E-04   -1.4905    
  10  Prefactor     7.0388        7.5890        .15120E-03   -1.5177    
  11  Prefactor     21.096        15.213        .87204E-04   -1.4789    
  12  Prefactor     2.3370        9.7249        .26793E-03   -1.5402    
  13  norm          .60132        .68240        .68923E-03   -1.5553    
  14  norm          1.4006        4.5620        .13638E-02   -1.5471    
  15  Prefactor     9.1416        8.0176        .13256E-03   -1.5103    
  16  Prefactor     .10000E-03    35.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          30.757        13.328        .72245E-04   -1.4598    
  18  Prefactor     22.734        10.774        .84008E-04   -1.4754    
  19  Prefactor     .10000E-03    149.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.9586        .15115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.243        28.023        .63983E-04   -1.4454    
  22  norm          .10000E-03    6.6161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    11.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    48.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.3929        .89452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    80.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     21.862        31.639        .85641E-04   -1.4772    
  28  Prefactor     .10000E-03    6.3598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .35554        .22868        .44087E-03   -1.1967    
  30  Prefactor     1.2176        .16125        .18485E-03   -.85790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49206e-10
Minuit parameter uncertainties:
  1  15.573
  2  1.62146e-05
  3  16.5753
  4  8.39393
  5  3.14623e-06
  6  3.99325
  7  17.1263
  8  7.08833
  9  18.7458
  10  7.59006
  11  15.216
  12  9.53711
  13  0.682409
  14  4.56309
  15  8.01858
  16  6.11374e-05
  17  13.3293
  18  10.775
  19  0.000993926
  20  3.37255e-06
  21  28.0324
  22  8.3034e-07
  23  1.90299e-07
  24  0.00011881
  25  3.10294e-06
  26  0.000214501
  27  31.6637
  28  2.1277e-06
  29  0.229278
  30  0.161311
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  2.145e-04  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.218e+00  1.613e-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:  3.555e-01  2.293e-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.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/68316/likelihoodResults_242179201_242438401_4FGL_J2339.6+0242_daily_bin11.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) = 6100.27781214
delta logL = -5.88315242567e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6100.27775371
delta logL = -4.01205397793e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11224E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7900       1.0000          .0000       10.000    
     3 'Normalizat'    .35554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2176       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=   6100.278     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      281 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10458E-03    30.459        .18142E-01** at limit **
   2  Index         2.6901        6.5103        .50000        .59828E-05
   3  Normalizat    .35554        .32654E-02    .44086E-03    .21249E-04
   4  Prefactor     1.2176        .24597E-02    .18485E-03   -.26285E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104582
  Index      = 2.69014
  Normalizat = 0.355542
  Prefactor  = 1.21765
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.278     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10458E-03    981.80        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6901        8.6504        .50000       -.48022    
   3  Normalizat    .35554        .18719E-01    .17635E-04   -1.1967    
   4  Prefactor     1.2176        .14100E-01    .36970E-04   -.85790    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.28246e-09
Minuit parameter uncertainties:
  1  0.13644
  2  770.79
  3  0.0187195
  4  0.0141004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68316': 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) = 6100.27775349
delta logL = -1.74162778421e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.046e-04  1.364e-01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.690e+00  7.708e+02  0.000e+00  1.000e+01 (-1.000e+00)
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.218e+00  1.410e-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:  3.555e-01  1.872e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/68316/cmap_HighResolution_242179201_242438401_4FGL_J2339.6+0242_daily_bin11.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.04e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-30 02:39:24.854235', job_id='68316', GAL2='1.22', fit_tolerance='1e-08', EG2='0.36', EG='0.36', time_epoch_completed='1632994764.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='-1.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='11' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:39:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 68316: <4FGL_J2339.6+0242_daily_bin11> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin11> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:25:58 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:26:00 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:26:00 2021
Terminated at Thu Sep 30 02:39:25 2021
Results reported at Thu Sep 30 02:39:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin11 354.904 2.7102 242179201 242438401 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 :                                   783.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

