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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin456
RA = 353.557, Dec = 7.602
tmin = 357523201, tmax = 357782401
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='17300', job_status='RUN', time_executed='2021-09-29 23:28:09.308560', time_epoch_executed='1632983289.31' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17300

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17300/ft1_4FGL_J2334.2+0736_daily_bin456.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17300/ft2_4FGL_J2334.2+0736_daily_bin456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17300/ft1_4FGL_J2334.2+0736_daily_bin456.fits outfile=/scratch/kocevski/17300/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin456.fits ra=353.557 dec=7.602 rad=12.0 tmin=357523201.0 tmax=357782401.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.55
user 3.33
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/17300/ft2_4FGL_J2334.2+0736_daily_bin456.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17300/ft2_4FGL_J2334.2+0736_daily_bin456.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/17300/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin456.fits evtable="EVENTS" outfile="/scratch/kocevski/17300/ft1_filtered_4FGL_J2334.2+0736_daily_bin456.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17300/ft1_filtered_4FGL_J2334.2+0736_daily_bin456.fits" evtable="EVENTS" scfile=/scratch/kocevski/17300/ft2_4FGL_J2334.2+0736_daily_bin456.fits sctable="SC_DATA" outfile=/scratch/kocevski/17300/ltcube_357523201_357782401_4FGL_J2334.2+0736_daily_bin456.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/17300/ft2_4FGL_J2334.2+0736_daily_bin456.fits
.....................!
real 11.74
user 11.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17300/ft1_filtered_4FGL_J2334.2+0736_daily_bin456.fits evtable="EVENTS" scfile=/scratch/kocevski/17300/ft2_4FGL_J2334.2+0736_daily_bin456.fits sctable="SC_DATA" expcube=/scratch/kocevski/17300/ltcube_357523201_357782401_4FGL_J2334.2+0736_daily_bin456.fits outfile=/scratch/kocevski/17300/expmap_357523201_357782401_4FGL_J2334.2+0736_daily_bin456.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/17300/ltcube_357523201_357782401_4FGL_J2334.2+0736_daily_bin456.fits
.....................!
real 191.81
user 185.58
sys 5.81

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2334.2+0736 @ 353.557 7.602

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/17300/ft1_filtered_4FGL_J2334.2+0736_daily_bin456.fits scfile=/scratch/kocevski/17300/ft2_4FGL_J2334.2+0736_daily_bin456.fits outfile=/scratch/kocevski/17300/cmap_357523201_357782401_4FGL_J2334.2+0736_daily_bin456.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=353.557 yref=7.602 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/17300/ft1_filtered_4FGL_J2334.2+0736_daily_bin456.fits scfile=/scratch/kocevski/17300/ft2_4FGL_J2334.2+0736_daily_bin456.fits outfile=/scratch/kocevski/17300/cmap_HighResolution_357523201_357782401_4FGL_J2334.2+0736_daily_bin456.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=353.557 yref=7.602 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/17300/ft1_filtered_4FGL_J2334.2+0736_daily_bin456.fits evtable="EVENTS" scfile=/scratch/kocevski/17300/ft2_4FGL_J2334.2+0736_daily_bin456.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17300/Model_4FGL_J2334.2+0736_daily_bin456.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/17300/ft1_filtered_4FGL_J2334.2+0736_daily_bin456.fits.....................!
real 65.13
user 63.69
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17300/ft1_filtered_4FGL_J2334.2+0736_daily_bin456.fits', '/scratch/kocevski/17300/ft2_4FGL_J2334.2+0736_daily_bin456.fits', expMap='/scratch/kocevski/17300/expmap_357523201_357782401_4FGL_J2334.2+0736_daily_bin456.fits', expCube='/scratch/kocevski/17300/ltcube_357523201_357782401_4FGL_J2334.2+0736_daily_bin456.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17300/Model_4FGL_J2334.2+0736_daily_bin456.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2334.2+0736'

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  5.621e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/17300/ft1_filtered_4FGL_J2334.2+0736_daily_bin456.fits
Spacecraft file(s): /scratch/kocevski/17300/ft2_4FGL_J2334.2+0736_daily_bin456.fits
Exposure map: /scratch/kocevski/17300/expmap_357523201_357782401_4FGL_J2334.2+0736_daily_bin456.fits
Exposure cube: /scratch/kocevski/17300/ltcube_357523201_357782401_4FGL_J2334.2+0736_daily_bin456.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17300/Model_4FGL_J2334.2+0736_daily_bin456.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) = 5833.65964846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.559       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    58.147       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10991E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1283       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6322       1.0000         .10000E-03   10000.    
    10 'Prefactor '    54.587       1.0000         .10000E-03   10000.    
    11 'norm      '    .27951E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.785       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .51776E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .58272E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    6.1492       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9502       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.841       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9500       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.764       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80351       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91193       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5833.651     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2766 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.557        14.533       -.23697E-07    .45083E-05
   2  Prefactor     .10000E-03    5.6815        .83687E-08** at limit **
   3  Prefactor     58.131        40.704       -.54369E-06    .12661E-04
   4  Prefactor     .10000E-03    2.2936        .64603E-07** at limit **
   5  Prefactor     .10001E-03    8.0125       -.45801E-06** at limit **
   6  Prefactor     .10000E-03    5.9224       -.26625E-07** at limit **
   7  norm          1.1275        1.1401       -.89530E-07    .41153E-03
   8  Prefactor     .10000E-03    3.5041        .78446E-08** at limit **
   9  Prefactor     2.6326        9.3150       -.15968E-05   -.40867E-04
  10  Prefactor     54.538        62.211       -.11173E-05    .28829E-04
  11  norm          .10001E-03    8.7780       -.33130E-06** at limit **
  12  Prefactor     13.764        8.8941        .27768E-06   -.14291E-03
  13  Prefactor     .10000E-03    84.864       -.97583E-06** at limit **
  14  Prefactor     .10000E-03    8.6653       -.94329E-06** at limit **
  15  Prefactor     .10000E-03    15.594        .62446E-07** at limit **
  16  norm          .10000E-03    61.258        .26130E-05** at limit **
  17  norm          6.1166        36.440        .47973E-05    .12663E-04
  18  Prefactor     1.9456        5.7716       -.27011E-06    .13994E-03
  19  Prefactor     37.820        41.792       -.35002E-06    .18949E-04
  20  Prefactor     7.9494        13.538       -.53632E-07    .46610E-05
  21  Prefactor     .10000E-03    1.9546        .39302E-07** at limit **
  22  Prefactor     27.760        21.159        .65224E-07    .38577E-05
  23  Normalizat    .80337        .21084        .36193E-06    .30730E-04
  24  Prefactor     .91193        .13226        .39315E-06    .27219E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5568
  Prefactor  = 0.0001
  Prefactor  = 58.1315
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 1.12753
  Prefactor  = 0.0001
  Prefactor  = 2.63255
  Prefactor  = 54.5379
  norm       = 0.000100008
  Prefactor  = 13.7642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 6.11659
  Prefactor  = 1.94561
  Prefactor  = 37.8199
  Prefactor  = 7.94945
  Prefactor  = 0.0001
  Prefactor  = 27.7595
  Normalizat = 0.803373
  Prefactor  = 0.91193
 **********
 **   18 **HESSE 
 **********

 FCN=   5833.651     FROM HESSE     STATUS=OK           411 CALLS     3177 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.557        14.546        .90565E-04   -1.4823    
   2  Prefactor     .10000E-03    5.6843        .17781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     58.131        40.679        .52612E-04   -1.4182    
   4  Prefactor     .10000E-03    2.3298        .11293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    35.614        .34321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1275        1.0574        .77543E-03   -1.5496    
   8  Prefactor     .10000E-03    3.5110        .13958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6326        9.3516        .12567E-02   -1.5383    
  10  Prefactor     54.538        61.752        .54290E-04   -1.4230    
  11  norm          .10001E-03    23.875        .38427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.764        8.0344        .10788E-03   -1.4966    
  13  Prefactor     .10000E-03    84.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    61.984        .37838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    64.771        .40294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.1166        34.789        .16190E-03   -1.5213    
  18  Prefactor     1.9456        5.4702        .24411E-03   -1.5429    
  19  Prefactor     37.820        41.815        .65154E-04   -1.4477    
  20  Prefactor     7.9494        13.529        .14220E-03   -1.5144    
  21  Prefactor     .10000E-03    1.9564        .10427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.760        21.172        .76031E-04   -1.4654    
  23  Normalizat    .80337        .24565        .30936E-03   -.99944    
  24  Prefactor     .91193        .15396        .19190E-03   -.95725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12141e-10
Minuit parameter uncertainties:
  1  14.5489
  2  1.44433e-06
  3  40.6981
  4  5.54154e-06
  5  0.00116795
  6  2.0077e-06
  7  1.05739
  8  3.79047e-06
  9  9.35683
  10  61.8243
  11  0.000887472
  12  8.03499
  13  1.54575e-05
  14  0.000272578
  15  2.12999e-05
  16  0.000990585
  17  29.2004
  18  5.47164
  19  41.8472
  20  13.5346
  21  3.31713e-06
  22  21.1774
  23  0.245985
  24  0.154031
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  2.130e-05  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.119e-01  1.540e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  8.034e-01  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 8.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17300/likelihoodResults_357523201_357782401_4FGL_J2334.2+0736_daily_bin456.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) = 5833.65089128
delta logL = -0.000304625768877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5833.65058677
delta logL = -1.15966031444e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4819       1.0000          .0000       10.000    
     3 'Normalizat'    .80326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91200       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5833.651     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.403        .90712E-02** at limit **
   2  Index         2.4934        6.2410        .50000       -.66729E-05
   3  Normalizat    .80337        .19567        .69911E-01    .30766E-04
   4  Prefactor     .91193        .12950        .45158E-01    .16825E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.49341
  Normalizat = 0.803373
  Prefactor  = 0.91193
 **********
 **   18 **HESSE 
 **********

 FCN=   5833.651     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    276.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4934        8.7522        .50000       -.52512    
   3  Normalizat    .80337        .22940        .30935E-03   -.99944    
   4  Prefactor     .91193        .15206        .19190E-03   -.95725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37014e-10
Minuit parameter uncertainties:
  1  9.50628e-05
  2  18.2428
  3  0.229678
  4  0.152135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17300': 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) = 5833.65058662
delta logL = 3.42588464264e-08

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  9.506e-05  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.493e+00  1.824e+01  0.000e+00  1.000e+01 (-1.000e+00)
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.119e-01  1.521e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  8.034e-01  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.557 7.602

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/17300/cmap_HighResolution_357523201_357782401_4FGL_J2334.2+0736_daily_bin456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', job_status='DONE', photon_flux_upper_limit='8.50e-08', time_completed='2021-09-29 23:38:45.243930', job_id='17300', GAL2='0.91', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1632983925.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='456' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:38:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 17300: <4FGL_J2334.2+0736_daily_bin456> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin456> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:25:53 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:25:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:25:55 2021
Terminated at Wed Sep 29 23:38:46 2021
Results reported at Wed Sep 29 23:38:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin456 353.557 7.602 357523201 357782401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2334.2+0736 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   631.37 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            773 sec.

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

