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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1012
RA = 353.557, Dec = 7.602
tmin = 501638401, tmax = 501897601
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='19658', job_status='RUN', time_executed='2021-09-29 23:39:07.964414', time_epoch_executed='1632983947.96' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19658

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19658/ft1_4FGL_J2334.2+0736_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19658/ft2_4FGL_J2334.2+0736_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19658/ft1_4FGL_J2334.2+0736_daily_bin1012.fits outfile=/scratch/kocevski/19658/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1012.fits ra=353.557 dec=7.602 rad=12.0 tmin=501638401.0 tmax=501897601.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.47
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19658/ft2_4FGL_J2334.2+0736_daily_bin1012.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/19658/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1012.fits evtable="EVENTS" outfile="/scratch/kocevski/19658/ft1_filtered_4FGL_J2334.2+0736_daily_bin1012.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/19658/ft1_filtered_4FGL_J2334.2+0736_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/19658/ft2_4FGL_J2334.2+0736_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/19658/ltcube_501638401_501897601_4FGL_J2334.2+0736_daily_bin1012.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/19658/ft2_4FGL_J2334.2+0736_daily_bin1012.fits
.....................!
real 12.30
user 11.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19658/ft1_filtered_4FGL_J2334.2+0736_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/19658/ft2_4FGL_J2334.2+0736_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/19658/ltcube_501638401_501897601_4FGL_J2334.2+0736_daily_bin1012.fits outfile=/scratch/kocevski/19658/expmap_501638401_501897601_4FGL_J2334.2+0736_daily_bin1012.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/19658/ltcube_501638401_501897601_4FGL_J2334.2+0736_daily_bin1012.fits
.....................!
real 191.03
user 185.96
sys 4.64

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/19658/ft1_filtered_4FGL_J2334.2+0736_daily_bin1012.fits scfile=/scratch/kocevski/19658/ft2_4FGL_J2334.2+0736_daily_bin1012.fits outfile=/scratch/kocevski/19658/cmap_501638401_501897601_4FGL_J2334.2+0736_daily_bin1012.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19658/ft1_filtered_4FGL_J2334.2+0736_daily_bin1012.fits scfile=/scratch/kocevski/19658/ft2_4FGL_J2334.2+0736_daily_bin1012.fits outfile=/scratch/kocevski/19658/cmap_HighResolution_501638401_501897601_4FGL_J2334.2+0736_daily_bin1012.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.402       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3663       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .34985E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2902       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.718       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2695       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.333       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0449       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1518       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11212E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8242       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    35.848       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10792E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0340       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0776       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .42263       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2119       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=   7072.871     FROM MIGRAD    STATUS=CONVERGED    978 CALLS     2794 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.410        16.011        .10941E-03   -.42601E-05
   2  Prefactor     .10000E-03    21.983        .18142E-02** at limit **
   3  Prefactor     8.3328        49.779        .13860E-03   -.57418E-05
   4  Prefactor     .10000E-03    14.034        .34897E-02** at limit **
   5  Prefactor     6.2897        12.274        .16005E-03    .25714E-04
   6  Prefactor     10.722        18.122        .12238E-03    .19787E-04
   7  norm          1.2692        .84153        .60702E-04    .20939E-03
   8  Prefactor     14.339        12.013        .10580E-03    .32775E-04
   9  Prefactor     .10000E-03    4.9490        .18142E-02** at limit **
  10  Prefactor     .10000E-03    15.145        .18142E-02** at limit **
  11  norm          3.0521        9.6319        .23252E-03    .14507E-03
  12  Prefactor     2.1383        8.6364        .28088E-03   -.42175E-04
  13  Prefactor     .10000E-03    85.859        .18142E-02** at limit **
  14  Prefactor     .10000E-03    5.7239        .18142E-02** at limit **
  15  Prefactor     3.8273        32.604        .20639E-03    .96396E-05
  16  norm          .10000E-03    4.6073        .17618E-02** at limit **
  17  norm          35.842        22.442        .66935E-04    .64882E-04
  18  Prefactor     .10000E-03    2.1443        .11906E-02** at limit **
  19  Prefactor     .10000E-03    52.534        .18142E-02** at limit **
  20  Prefactor     .10000E-03    26.612        .96417E-01** at limit **
  21  Prefactor     2.0331        5.2798        .14501E-02    .43275E-04
  22  Prefactor     5.0725        11.190        .17844E-03    .11851E-04
  23  Normalizat    .42297        .22477        .43293E-03   -.44720E-04
  24  Prefactor     1.2119        .14490        .17995E-03   -.23441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4103
  Prefactor  = 0.0001
  Prefactor  = 8.33278
  Prefactor  = 0.000100001
  Prefactor  = 6.28967
  Prefactor  = 10.7222
  norm       = 1.26921
  Prefactor  = 14.3387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.05215
  Prefactor  = 2.1383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.82732
  norm       = 0.0001
  norm       = 35.842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.03312
  Prefactor  = 5.0725
  Normalizat = 0.422967
  Prefactor  = 1.21189
 **********
 **   18 **HESSE 
 **********

 FCN=   7072.871     FROM HESSE     STATUS=OK           385 CALLS     3179 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.410        16.009        .43765E-05   -1.4975    
   2  Prefactor     .10000E-03    21.985        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.3328        49.765        .55439E-05   -1.5131    
   4  Prefactor     .10000E-03    14.175        .69794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2897        12.273        .64020E-05   -1.5206    
   6  Prefactor     10.722        18.120        .48952E-05   -1.5053    
   7  norm          1.2692        .84151        .24281E-05   -1.5483    
   8  Prefactor     14.339        12.009        .42318E-05   -1.4950    
   9  Prefactor     .10000E-03    4.9491        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0521        9.6085        .93006E-05   -1.5359    
  12  Prefactor     2.1383        8.5928        .11235E-04   -1.5416    
  13  Prefactor     .10000E-03    85.860        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7248        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8273        32.567        .82556E-05   -1.5317    
  16  norm          .10000E-03    4.6075        .35235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          35.842        22.437        .26774E-05   -1.4510    
  18  Prefactor     .10000E-03    2.1447        .23812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    52.559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.573        .10408       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.0331        5.2773        .58006E-04   -1.5423    
  22  Prefactor     5.0725        11.189        .71374E-05   -1.5257    
  23  Normalizat    .42297        .22472        .17317E-04   -1.1613    
  24  Prefactor     1.2119        .14492        .35989E-04   -.85966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03683e-10
Minuit parameter uncertainties:
  1  16.0144
  2  2.97355e-06
  3  40.7781
  4  0.00019168
  5  12.2783
  6  18.1293
  7  0.841513
  8  12.011
  9  1.54307e-06
  10  6.79346e-06
  11  9.61339
  12  8.57494
  13  0.000218909
  14  4.15753e-07
  15  22.3451
  16  2.82811e-06
  17  22.4424
  18  1.58582e-06
  19  3.53087e-06
  20  0.000124421
  21  5.2785
  22  11.1935
  23  0.225203
  24  0.144963
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  3.827e+00  2.235e+01  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:  1.212e+00  1.450e-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:  4.230e-01  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19658/likelihoodResults_501638401_501897601_4FGL_J2334.2+0736_daily_bin1012.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7072.87091313
delta logL = 0.000177991840246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7072.87084775
delta logL = 0.000243368722295

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6985       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5186       1.0000          .0000       10.000    
     3 'Normalizat'    .42245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2120       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=   7072.871     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      246 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6719        304.57        .52499E-02    .50107E-04
   2  Index         2.5398        1.4191        .50000        .29071E-05
   3  Normalizat    .42237        .16006E-01    .97746E-01    .37633E-04
   4  Prefactor     1.2121        .10912E-01    .34352E-01   -.27460E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.67188
  Index      = 2.53976
  Normalizat = 0.422366
  Prefactor  = 1.21212
 **********
 **   18 **HESSE 
 **********

 FCN=   7072.871     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6719        36.369        .21000E-03   -1.5325    
   2  Index         2.5398        2.9006        .80826E-02   -.51444    
   3  Normalizat    .42237        .21019        .43322E-03   -1.1616    
   4  Prefactor     1.2121        .14311        .17993E-03   -.85959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0096e-12
Minuit parameter uncertainties:
  1  23.1303
  2  3.17462
  3  0.210579
  4  0.143155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19658': 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) = 7072.87082139
delta logL = 0.00026972755586

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  3.672e+00  2.313e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.540e+00  3.175e+00  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:  1.212e+00  1.432e-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:  4.224e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 353.557 7.602

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/19658/cmap_HighResolution_501638401_501897601_4FGL_J2334.2+0736_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.51e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-29 23:50:41.052995', job_id='19658', GAL2='1.21', fit_tolerance='1e-08', EG2='0.42', EG='0.42', time_epoch_completed='1632984641.05', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='2.70e-04', ts2='0.04', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1012' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:50:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 19658: <4FGL_J2334.2+0736_daily_bin1012> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin1012> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 23:35:30 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:35:32 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:35:32 2021
Terminated at Wed Sep 29 23:50:41 2021
Results reported at Wed Sep 29 23:50:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1012 353.557 7.602 501638401 501897601 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 :                                   691.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

