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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin426
RA = 354.904, Dec = 2.7102
tmin = 349747201, tmax = 350006401
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='71583', job_status='RUN', time_executed='2021-09-30 02:37:48.951300', time_epoch_executed='1632994668.95' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71583

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71583/ft1_4FGL_J2339.6+0242_daily_bin426.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71583/ft2_4FGL_J2339.6+0242_daily_bin426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71583/ft1_4FGL_J2339.6+0242_daily_bin426.fits outfile=/scratch/kocevski/71583/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin426.fits ra=354.904 dec=2.7102 rad=12.0 tmin=349747201.0 tmax=350006401.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.50
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71583/ft1_filtered_4FGL_J2339.6+0242_daily_bin426.fits" evtable="EVENTS" scfile=/scratch/kocevski/71583/ft2_4FGL_J2339.6+0242_daily_bin426.fits sctable="SC_DATA" outfile=/scratch/kocevski/71583/ltcube_349747201_350006401_4FGL_J2339.6+0242_daily_bin426.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/71583/ft2_4FGL_J2339.6+0242_daily_bin426.fits
.....................!
real 12.30
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71583/ft1_filtered_4FGL_J2339.6+0242_daily_bin426.fits evtable="EVENTS" scfile=/scratch/kocevski/71583/ft2_4FGL_J2339.6+0242_daily_bin426.fits sctable="SC_DATA" expcube=/scratch/kocevski/71583/ltcube_349747201_350006401_4FGL_J2339.6+0242_daily_bin426.fits outfile=/scratch/kocevski/71583/expmap_349747201_350006401_4FGL_J2339.6+0242_daily_bin426.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/71583/ltcube_349747201_350006401_4FGL_J2339.6+0242_daily_bin426.fits
.....................!
real 191.32
user 185.93
sys 4.83

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/71583/ft1_filtered_4FGL_J2339.6+0242_daily_bin426.fits scfile=/scratch/kocevski/71583/ft2_4FGL_J2339.6+0242_daily_bin426.fits outfile=/scratch/kocevski/71583/cmap_349747201_350006401_4FGL_J2339.6+0242_daily_bin426.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/71583/ft1_filtered_4FGL_J2339.6+0242_daily_bin426.fits scfile=/scratch/kocevski/71583/ft2_4FGL_J2339.6+0242_daily_bin426.fits outfile=/scratch/kocevski/71583/cmap_HighResolution_349747201_350006401_4FGL_J2339.6+0242_daily_bin426.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22377E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4577       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.114       1.0000         .10000E-03   10000.    
     5 'norm      '    .36301       1.0000         .10000E-03   10000.    
     6 'norm      '    7.0876       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3400       1.0000         .10000E-03   10000.    
     8 'norm      '    6.0121       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.149       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7936       1.0000         .10000E-03   10000.    
    14 'norm      '    .94612       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.531       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    105.36       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    65.899       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.671       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .92775       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82099       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=   5681.722     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3859 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    43.275        .14516E-04** at limit **
   2  Prefactor     .10000E-03    90.483        .42748E-05** at limit **
   3  Prefactor     7.4549        20.154       -.60094E-06   -.23528E-04
   4  Prefactor     10.115        7.2808        .15961E-06   -.83011E-05
   5  norm          .35760        2.5392        .10210E-05   -.17138E-03
   6  norm          7.0873        5.1329        .14007E-06    .14509E-03
   7  Prefactor     7.3402        11.249       -.49257E-07    .25725E-04
   8  norm          6.0116        8.1547        .16510E-06    .84304E-03
   9  Prefactor     16.134        26.160        .22369E-05    .14668E-03
  10  Prefactor     .10000E-03    3.8461       -.59077E-08** at limit **
  11  Prefactor     .10000E-03    6.8643       -.25757E-06** at limit **
  12  Prefactor     .10000E-03    5.3624        .10440E-05** at limit **
  13  norm          2.7938        1.1342        .18685E-07   -.11082E-04
  14  norm          .94828        5.7652       -.34913E-06    .30033E-03
  15  Prefactor     12.529        11.047        .82670E-08    .17553E-03
  16  Prefactor     .10000E-03    29.140        .26474E-05** at limit **
  17  norm          .10000E-03    4.3142        .62100E-07** at limit **
  18  Prefactor     .10000E-03    5.1389       -.25661E-05** at limit **
  19  Prefactor     105.37        123.52       -.24602E-05   -.53081E-04
  20  Prefactor     .10000E-03    5.3259        .18681E-05** at limit **
  21  Prefactor     .10000E-03    12.971       -.22541E-05** at limit **
  22  norm          .10000E-03    6.8964       -.56754E-06** at limit **
  23  norm          .10000E-03    8.0099        .60201E-06** at limit **
  24  Prefactor     65.892        69.673        .29028E-05    .94956E-04
  25  Prefactor     .10000E-03    1.5898       -.49321E-07** at limit **
  26  Prefactor     .10000E-03    12.374        .14691E-05** at limit **
  27  Prefactor     14.669        15.129       -.11534E-06    .86541E-05
  28  Prefactor     .10000E-03    18.767        .49061E-06** at limit **
  29  Normalizat    .92754        .19824        .96591E-06    .13943E-03
  30  Prefactor     .82116        .12907       -.22377E-06    .27082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100026
  Prefactor  = 0.000100002
  Prefactor  = 7.4549
  Prefactor  = 10.1152
  norm       = 0.357599
  norm       = 7.08726
  Prefactor  = 7.34018
  norm       = 6.01164
  Prefactor  = 16.1337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.79382
  norm       = 0.948276
  Prefactor  = 12.529
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 105.367
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 65.8924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6694
  Prefactor  = 0.0001
  Normalizat = 0.927537
  Prefactor  = 0.821162
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.722     FROM HESSE     STATUS=OK           584 CALLS     4443 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    47.785        .46319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    91.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4549        20.247        .14686E-03   -1.5162    
   4  Prefactor     10.115        7.2572        .12599E-03   -1.5072    
   5  norm          .35760        9.5509        .18309E-02   -1.5588    
   6  norm          7.0873        5.1297        .13853E-03   -1.5175    
   7  Prefactor     7.3402        11.231        .14804E-03   -1.5166    
   8  norm          6.0116        8.6179        .81878E-03   -1.5218    
   9  Prefactor     16.134        26.309        .99667E-04   -1.4904    
  10  Prefactor     .10000E-03    3.8509        .14437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.8749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.3934        .17061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7938        1.1328        .48425E-04   -1.5374    
  14  norm          .94828        5.9804        .35309E-03   -1.5513    
  15  Prefactor     12.529        11.048        .11316E-03   -1.5000    
  16  Prefactor     .10000E-03    29.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.3403        .15277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.3248        .16827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     105.37        123.91        .19588E-03   -1.3651    
  20  Prefactor     .10000E-03    5.4154        .17074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.9060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.0299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     65.892        69.941        .49439E-04   -1.4083    
  25  Prefactor     .10000E-03    1.6065        .92770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.669        15.133        .10457E-03   -1.4942    
  28  Prefactor     .10000E-03    18.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .92754        .22484        .27615E-03   -.95499    
  30  Prefactor     .82116        .14823        .20072E-03   -.98953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23391e-09
Minuit parameter uncertainties:
  1  0.00223253
  2  0.000753822
  3  20.2658
  4  7.25782
  5  3.6963
  6  5.12999
  7  11.2344
  8  8.61972
  9  26.3277
  10  1.67552e-06
  11  2.20963e-05
  12  4.95012e-05
  13  1.13284
  14  4.76326
  15  11.0494
  16  0.000327474
  17  7.9694e-06
  18  0.000123258
  19  124.218
  20  9.66528e-05
  21  0.000191145
  22  3.5079e-05
  23  3.6839e-05
  24  70.0288
  25  5.57845e-06
  26  0.000118327
  27  15.1373
  28  4.30789e-06
  29  0.225066
  30  0.148303
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  1.183e-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:  8.212e-01  1.483e-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:  9.275e-01  2.251e-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.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71583/likelihoodResults_349747201_350006401_4FGL_J2339.6+0242_daily_bin426.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) = 5681.72196455
delta logL = -0.000383621778383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5681.72158094
delta logL = -9.76615410764e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5413       1.0000          .0000       10.000    
     3 'Normalizat'    .92752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82117       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=   5681.722     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      238 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10089E-03    373.36        .18142E-02** at limit **
   2  Index         2.4606        8.0929        .50000        .40445E-05
   3  Normalizat    .92754        .27196E-01    .27615E-03    .28818E-06
   4  Prefactor     .82116        .18811E-01    .20072E-03    .10762E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010089
  Index      = 2.46056
  Normalizat = 0.927537
  Prefactor  = 0.821161
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.722     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10089E-03    1377.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4606        5.8476        .50000       -.53273    
   3  Normalizat    .92754        .60516E-01    .11046E-04   -.95499    
   4  Prefactor     .82116        .41855E-01    .80286E-05   -.98953    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.2283e-08
Minuit parameter uncertainties:
  1  0.0717413
  2  2951.86
  3  0.0605202
  4  0.0418568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71583': 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) = 5681.72158087
delta logL = 6.19957063464e-08

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.009e-04  7.174e-02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.461e+00  2.952e+03  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.212e-01  4.186e-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.275e-01  6.052e-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/71583/cmap_HighResolution_349747201_350006401_4FGL_J2339.6+0242_daily_bin426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.25e-08', time_completed='2021-09-30 02:50:14.797919', job_id='71583', GAL2='0.82', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632995414.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='6.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='426' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 71583: <4FGL_J2339.6+0242_daily_bin426> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin426 354.904 2.7102 349747201 350006401 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 :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

