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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin356
RA = 353.557, Dec = 7.602
tmin = 331603201, tmax = 331862401
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='17146', job_status='RUN', time_executed='2021-09-29 23:28:12.590444', time_epoch_executed='1632983292.59' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17146

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17146/ft1_4FGL_J2334.2+0736_daily_bin356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17146/ft2_4FGL_J2334.2+0736_daily_bin356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17146/ft1_4FGL_J2334.2+0736_daily_bin356.fits outfile=/scratch/kocevski/17146/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin356.fits ra=353.557 dec=7.602 rad=12.0 tmin=331603201.0 tmax=331862401.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.27
user 3.07
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17146/ft1_filtered_4FGL_J2334.2+0736_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/17146/ft2_4FGL_J2334.2+0736_daily_bin356.fits sctable="SC_DATA" expcube=/scratch/kocevski/17146/ltcube_331603201_331862401_4FGL_J2334.2+0736_daily_bin356.fits outfile=/scratch/kocevski/17146/expmap_331603201_331862401_4FGL_J2334.2+0736_daily_bin356.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/17146/ltcube_331603201_331862401_4FGL_J2334.2+0736_daily_bin356.fits
.....................!
real 191.14
user 185.50
sys 5.21

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/17146/ft1_filtered_4FGL_J2334.2+0736_daily_bin356.fits scfile=/scratch/kocevski/17146/ft2_4FGL_J2334.2+0736_daily_bin356.fits outfile=/scratch/kocevski/17146/cmap_331603201_331862401_4FGL_J2334.2+0736_daily_bin356.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/17146/ft1_filtered_4FGL_J2334.2+0736_daily_bin356.fits scfile=/scratch/kocevski/17146/ft2_4FGL_J2334.2+0736_daily_bin356.fits outfile=/scratch/kocevski/17146/cmap_HighResolution_331603201_331862401_4FGL_J2334.2+0736_daily_bin356.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3130       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .13067       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6917       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.256       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.285       1.0000         .10000E-03   10000.    
    11 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2660       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    27.666       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    77.196       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10666E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9199       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .42108       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1164       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=   7163.607     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2749 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1506        .77487E-07** at limit **
   2  Prefactor     .10000E-03    8.9860        .26027E-07** at limit **
   3  Prefactor     7.2740        26.608       -.69980E-07   -.16169E-04
   4  Prefactor     .10000E-03    1.3016        .21220E-07** at limit **
   5  Prefactor     .10000E-03    3.4595        .20231E-07** at limit **
   6  Prefactor     .10000E-03    5.3746       -.12713E-06** at limit **
   7  norm          .13020        .40939        .13224E-06    .41456E-04
   8  Prefactor     8.6931        9.5226        .20419E-05    .93426E-04
   9  Prefactor     11.255        20.196        .31100E-06    .45494E-05
  10  Prefactor     17.235        44.347       -.37915E-06   -.45554E-04
  11  norm          .10000E-03    11.065       -.52309E-06** at limit **
  12  Prefactor     4.2724        7.4765        .31104E-07    .33737E-04
  13  Prefactor     .10000E-03    99.572        .99673E-07** at limit **
  14  Prefactor     .10000E-03    12.933       -.71550E-06** at limit **
  15  Prefactor     .10000E-03    10.803       -.44784E-07** at limit **
  16  norm          27.666        14.667        .23138E-07    .75882E-05
  17  norm          .10000E-03    10.715       -.14492E-06** at limit **
  18  Prefactor     .10008E-03    1.8353       -.33146E-06** at limit **
  19  Prefactor     77.201        42.132        .18213E-06    .35841E-04
  20  Prefactor     .10000E-03    18.376        .51783E-06** at limit **
  21  Prefactor     5.9204        5.3120        .48923E-07    .55290E-05
  22  Prefactor     .10000E-03    25.185        .80653E-06** at limit **
  23  Normalizat    .42068        .19148       -.18951E-05    .40579E-04
  24  Prefactor     1.1166        .12054        .39994E-06    .59909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.27401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.130198
  Prefactor  = 8.6931
  Prefactor  = 11.2546
  Prefactor  = 17.2349
  norm       = 0.0001
  Prefactor  = 4.27239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.666
  norm       = 0.0001
  Prefactor  = 0.000100079
  Prefactor  = 77.2011
  Prefactor  = 0.0001
  Prefactor  = 5.92037
  Prefactor  = 0.0001
  Normalizat = 0.420681
  Prefactor  = 1.11661
 **********
 **   18 **HESSE 
 **********

 FCN=   7163.607     FROM HESSE     STATUS=OK           397 CALLS     3146 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1568        .16842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2740        26.640        .14832E-03   -1.5168    
   4  Prefactor     .10000E-03    1.3031        .94302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4719        .15374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.3814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .13020        .47334        .91592E-03   -1.5636    
   8  Prefactor     8.6931        9.5482        .67982E-03   -1.5118    
   9  Prefactor     11.255        20.154        .11941E-03   -1.5037    
  10  Prefactor     17.235        44.393        .96336E-04   -1.4877    
  11  norm          .10000E-03    11.302        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2724        7.3409        .19507E-03   -1.5295    
  13  Prefactor     .10000E-03    99.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.126        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          27.666        14.660        .76165E-04   -1.4656    
  17  norm          .10000E-03    10.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10008E-03    23.463        .21204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     77.201        42.023        .45704E-04   -1.3948    
  20  Prefactor     .10000E-03    18.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.9204        5.3099        .16504E-03   -1.5221    
  22  Prefactor     .10000E-03    26.150        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .42068        .19736        .39798E-03   -1.1625    
  24  Prefactor     1.1166        .12869        .17131E-03   -.88938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35e-09
Minuit parameter uncertainties:
  1  2.38489e-06
  2  3.88037e-08
  3  26.6834
  4  2.20471e-07
  5  4.62822e-07
  6  3.0427e-07
  7  0.473356
  8  9.54992
  9  20.1661
  10  44.4777
  11  7.32257e-05
  12  7.34242
  13  0.000153938
  14  3.52643e-05
  15  1.3448e-05
  16  14.6622
  17  1.58619e-05
  18  0.00273154
  19  42.0388
  20  3.24513e-05
  21  5.31035
  22  6.19396e-05
  23  0.197688
  24  0.128726
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  1.345e-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:  1.117e+00  1.287e-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.207e-01  1.977e-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: 7.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17146/likelihoodResults_331603201_331862401_4FGL_J2334.2+0736_daily_bin356.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) = 7163.60759647
delta logL = -0.000440292200437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7163.60715666
delta logL = -4.77650246467e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10652E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4636       1.0000          .0000       10.000    
     3 'Normalizat'    .42057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1167       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=   7163.607     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.240        .90712E-02** at limit **
   2  Index         2.4568        6.2280        .50000        .54014E-05
   3  Normalizat    .42068        .17314        .89819E-01    .57856E-04
   4  Prefactor     1.1166        .11857        .36985E-01   -.18317E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45679
  Normalizat = 0.420681
  Prefactor  = 1.11661
 **********
 **   18 **HESSE 
 **********

 FCN=   7163.607     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4568        6.2281        .50000       -.53361    
   3  Normalizat    .42068        .18415        .39797E-03   -1.1625    
   4  Prefactor     1.1166        .12651        .17131E-03   -.88938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34984e-11
Minuit parameter uncertainties:
  1  6.91802e-06
  2  4.52742
  3  0.184417
  4  0.126543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17146': 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) = 7163.60715616
delta logL = 1.77069523488e-08

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  6.918e-06  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.457e+00  4.527e+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.117e+00  1.265e-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.207e-01  1.844e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/17146/cmap_HighResolution_331603201_331862401_4FGL_J2334.2+0736_daily_bin356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', job_status='DONE', photon_flux_upper_limit='7.53e-08', time_completed='2021-09-29 23:39:42.660752', job_id='17146', GAL2='1.12', fit_tolerance='1e-08', EG2='0.42', EG='0.42', time_epoch_completed='1632983982.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.77e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='356' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:39:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 17146: <4FGL_J2334.2+0736_daily_bin356> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin356 353.557 7.602 331603201 331862401 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 :                                   685.24 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             331.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

