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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin147
RA = 353.557, Dec = 7.602
tmin = 277430401, tmax = 277689601
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='16833', job_status='RUN', time_executed='2021-09-29 23:26:04.140777', time_epoch_executed='1632983164.14' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/16833

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/16833/ft1_4FGL_J2334.2+0736_daily_bin147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/16833/ft2_4FGL_J2334.2+0736_daily_bin147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/16833/ft1_4FGL_J2334.2+0736_daily_bin147.fits outfile=/scratch/kocevski/16833/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin147.fits ra=353.557 dec=7.602 rad=12.0 tmin=277430401.0 tmax=277689601.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.59
user 3.34
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/16833/ft1_filtered_4FGL_J2334.2+0736_daily_bin147.fits" evtable="EVENTS" scfile=/scratch/kocevski/16833/ft2_4FGL_J2334.2+0736_daily_bin147.fits sctable="SC_DATA" outfile=/scratch/kocevski/16833/ltcube_277430401_277689601_4FGL_J2334.2+0736_daily_bin147.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/16833/ft2_4FGL_J2334.2+0736_daily_bin147.fits
.....................!
real 14.71
user 14.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/16833/ft1_filtered_4FGL_J2334.2+0736_daily_bin147.fits evtable="EVENTS" scfile=/scratch/kocevski/16833/ft2_4FGL_J2334.2+0736_daily_bin147.fits sctable="SC_DATA" expcube=/scratch/kocevski/16833/ltcube_277430401_277689601_4FGL_J2334.2+0736_daily_bin147.fits outfile=/scratch/kocevski/16833/expmap_277430401_277689601_4FGL_J2334.2+0736_daily_bin147.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/16833/ltcube_277430401_277689601_4FGL_J2334.2+0736_daily_bin147.fits
.....................!
real 190.84
user 185.68
sys 4.80

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/16833/ft1_filtered_4FGL_J2334.2+0736_daily_bin147.fits scfile=/scratch/kocevski/16833/ft2_4FGL_J2334.2+0736_daily_bin147.fits outfile=/scratch/kocevski/16833/cmap_277430401_277689601_4FGL_J2334.2+0736_daily_bin147.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/16833/ft1_filtered_4FGL_J2334.2+0736_daily_bin147.fits scfile=/scratch/kocevski/16833/ft2_4FGL_J2334.2+0736_daily_bin147.fits outfile=/scratch/kocevski/16833/cmap_HighResolution_277430401_277689601_4FGL_J2334.2+0736_daily_bin147.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.53
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/16833/ft1_filtered_4FGL_J2334.2+0736_daily_bin147.fits', '/scratch/kocevski/16833/ft2_4FGL_J2334.2+0736_daily_bin147.fits', expMap='/scratch/kocevski/16833/expmap_277430401_277689601_4FGL_J2334.2+0736_daily_bin147.fits', expCube='/scratch/kocevski/16833/ltcube_277430401_277689601_4FGL_J2334.2+0736_daily_bin147.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/16833/Model_4FGL_J2334.2+0736_daily_bin147.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/16833/ft1_filtered_4FGL_J2334.2+0736_daily_bin147.fits
Spacecraft file(s): /scratch/kocevski/16833/ft2_4FGL_J2334.2+0736_daily_bin147.fits
Exposure map: /scratch/kocevski/16833/expmap_277430401_277689601_4FGL_J2334.2+0736_daily_bin147.fits
Exposure cube: /scratch/kocevski/16833/ltcube_277430401_277689601_4FGL_J2334.2+0736_daily_bin147.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/16833/Model_4FGL_J2334.2+0736_daily_bin147.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) = 8281.528979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.667       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.022       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.231       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7449       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .65989       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    73.748       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4734       1.0000         .10000E-03   10000.    
    11 'norm      '    26.004       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11778E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13173E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12545E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.390       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.225       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.960       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99751       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86776       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=   8281.520     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2701 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.972        .12856E-06** at limit **
   2  Prefactor     50.678        33.523        .33530E-06    .18253E-05
   3  Prefactor     30.056        33.131        .20388E-06   -.20477E-05
   4  Prefactor     27.226        10.947       -.70325E-06   -.12173E-04
   5  Prefactor     3.7450        6.7549       -.77332E-06   -.14825E-03
   6  Prefactor     .10000E-03    5.3053        .92943E-08** at limit **
   7  norm          .65997        .53383       -.96821E-08   -.44216E-04
   8  Prefactor     .10000E-03    4.5250       -.99803E-08** at limit **
   9  Prefactor     73.741        30.044        .14847E-05    .42094E-05
  10  Prefactor     6.4667        23.697        .67014E-05   -.19217E-04
  11  norm          25.972        11.496        .22023E-06    .65935E-04
  12  Prefactor     .10000E-03    4.5721       -.12706E-06** at limit **
  13  Prefactor     .10000E-03    220.68       -.27857E-05** at limit **
  14  Prefactor     .10000E-03    2.2788        .13346E-08** at limit **
  15  Prefactor     .10000E-03    13.678       -.27644E-07** at limit **
  16  norm          11.389        8.8045       -.14069E-07    .24991E-04
  17  norm          .10000E-03    4.5352        .30769E-07** at limit **
  18  Prefactor     .10000E-03    .96236       -.25426E-07** at limit **
  19  Prefactor     18.222        24.541        .32010E-05   -.39716E-05
  20  Prefactor     13.976        18.958       -.47175E-05   -.22434E-04
  21  Prefactor     .10000E-03    2.1776       -.99873E-08** at limit **
  22  Prefactor     .10000E-03    10.273       -.67001E-07** at limit **
  23  Normalizat    .99722        .18482       -.18285E-06    .12353E-04
  24  Prefactor     .86785        .11674        .11358E-06    .79700E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 50.6782
  Prefactor  = 30.0556
  Prefactor  = 27.2265
  Prefactor  = 3.74498
  Prefactor  = 0.0001
  norm       = 0.659966
  Prefactor  = 0.0001
  Prefactor  = 73.7406
  Prefactor  = 6.46668
  norm       = 25.9719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3893
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2218
  Prefactor  = 13.9761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.997215
  Prefactor  = 0.867847
 **********
 **   18 **HESSE 
 **********

 FCN=   8281.520     FROM HESSE     STATUS=OK           399 CALLS     3100 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     50.678        33.520        .56340E-04   -1.4283    
   3  Prefactor     30.056        33.147        .73123E-04   -1.4611    
   4  Prefactor     27.226        10.947        .76770E-04   -1.4664    
   5  Prefactor     3.7450        6.7815        .20864E-03   -1.5321    
   6  Prefactor     .10000E-03    5.3153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .65997        .54361        .58090E-04   -1.5545    
   8  Prefactor     .10000E-03    4.5424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     73.741        30.043        .46752E-04   -1.3988    
  10  Prefactor     6.4667        23.512        .15774E-03   -1.5199    
  11  norm          25.972        10.222        .78558E-04   -1.4688    
  12  Prefactor     .10000E-03    57.850        .32709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    221.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2830        .13415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.389        8.8014        .11870E-03   -1.5033    
  17  norm          .10000E-03    4.5382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .96717        .87163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.222        24.522        .93817E-04   -1.4854    
  20  Prefactor     13.976        19.071        .10720E-03   -1.4960    
  21  Prefactor     .10000E-03    2.1844        .13114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99722        .21392        .31481E-03   -.93124    
  24  Prefactor     .86785        .13569        .21624E-03   -.97274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58648e-11
Minuit parameter uncertainties:
  1  5.48492e-06
  2  33.5329
  3  33.1668
  4  10.9478
  5  6.78291
  6  2.05732e-06
  7  0.543616
  8  2.23517e-06
  9  30.0487
  10  23.5454
  11  10.2222
  12  4.40982e-05
  13  2.35045e-05
  14  1.83077e-06
  15  5.31465e-06
  16  8.80245
  17  1.59321e-06
  18  6.9721e-07
  19  24.5356
  20  19.0794
  21  4.9606e-07
  22  5.19893e-07
  23  0.214107
  24  0.135744
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  5.315e-06  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:  8.678e-01  1.357e-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:  9.972e-01  2.141e-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: 6.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/16833/likelihoodResults_277430401_277689601_4FGL_J2334.2+0736_daily_bin147.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) = 8281.51989561
delta logL = -0.000345359736457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8281.51955091
delta logL = -6.57442797092e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11686E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4401       1.0000          .0000       10.000    
     3 'Normalizat'    .99709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86793       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8281.520     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      247 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10251E-03    10.486        .18142E-01** at limit **
   2  Index         2.3638        5.1420        .50000        .13442E-04
   3  Normalizat    .99722        .39518E-02    .31481E-03    .45430E-04
   4  Prefactor     .86785        .25661E-02    .21624E-03    .69715E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102514
  Index      = 2.36377
  Normalizat = 0.997215
  Prefactor  = 0.867847
 **********
 **   18 **HESSE 
 **********

 FCN=   8281.520     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10251E-03    349.42        .68670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3638        8.6188        .50000       -.55536    
   3  Normalizat    .99722        .23044E-01    .12592E-04   -.93124    
   4  Prefactor     .86785        .14964E-01    .86494E-05   -.97274    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.73916e-09
Minuit parameter uncertainties:
  1  0.0596336
  2  606.649
  3  0.0230439
  4  0.0149639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/16833': 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) = 8281.51954993
delta logL = 3.14561475534e-07

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.025e-04  5.963e-02  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.364e+00  6.066e+02  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:  8.678e-01  1.496e-02  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:  9.972e-01  2.304e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/16833/cmap_HighResolution_277430401_277689601_4FGL_J2334.2+0736_daily_bin147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', job_status='DONE', photon_flux_upper_limit='6.47e-08', time_completed='2021-09-29 23:39:13.778773', job_id='16833', GAL2='0.87', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632983953.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='147' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:39:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 16833: <4FGL_J2334.2+0736_daily_bin147> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin147> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:25:15 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:25:17 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:17 2021
Terminated at Wed Sep 29 23:39:14 2021
Results reported at Wed Sep 29 23:39:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin147 353.557 7.602 277430401 277689601 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 :                                   784.52 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             301.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

