/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 2 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2334.2+0736_daily_bin98
RA = 353.557, Dec = 7.602
tmin = 264729601, tmax = 264988801
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='15828', job_status='RUN', time_executed='2021-09-29 23:21:26.893106', time_epoch_executed='1632982886.89' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='98'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15828

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15828/ft1_4FGL_J2334.2+0736_daily_bin98.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15828/ft2_4FGL_J2334.2+0736_daily_bin98.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15828/ft1_4FGL_J2334.2+0736_daily_bin98.fits outfile=/scratch/kocevski/15828/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin98.fits ra=353.557 dec=7.602 rad=12.0 tmin=264729601.0 tmax=264988801.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 1.44
user 1.27
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15828/ft1_filtered_4FGL_J2334.2+0736_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/15828/ft2_4FGL_J2334.2+0736_daily_bin98.fits sctable="SC_DATA" expcube=/scratch/kocevski/15828/ltcube_264729601_264988801_4FGL_J2334.2+0736_daily_bin98.fits outfile=/scratch/kocevski/15828/expmap_264729601_264988801_4FGL_J2334.2+0736_daily_bin98.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/15828/ltcube_264729601_264988801_4FGL_J2334.2+0736_daily_bin98.fits
.....................!
real 194.85
user 189.08
sys 5.44

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/15828/ft1_filtered_4FGL_J2334.2+0736_daily_bin98.fits scfile=/scratch/kocevski/15828/ft2_4FGL_J2334.2+0736_daily_bin98.fits outfile=/scratch/kocevski/15828/cmap_264729601_264988801_4FGL_J2334.2+0736_daily_bin98.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15828/ft1_filtered_4FGL_J2334.2+0736_daily_bin98.fits scfile=/scratch/kocevski/15828/ft2_4FGL_J2334.2+0736_daily_bin98.fits outfile=/scratch/kocevski/15828/cmap_HighResolution_264729601_264988801_4FGL_J2334.2+0736_daily_bin98.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.897       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.680       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 '    8.0763       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6821       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5569       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.7241       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .34190       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10682E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0664       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8333       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.777       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.525       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.1360       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .74132       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0291       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=   7835.666     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2734 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.894        16.710        .25943E-02   -.14521E-02
   2  Prefactor     .10000E-03    5.4884        .90712E-02** at limit **
   3  Prefactor     16.676        29.679        .24516E-02   -.29844E-03
   4  Prefactor     .10000E-03    1.7004        .90712E-02** at limit **
   5  Prefactor     .10000E-03    3.0802        .90712E-02** at limit **
   6  Prefactor     8.0757        11.490        .35270E-02    .12700E-02
   7  norm          2.6820        1.0641        .62202E-03    .50499E-04
   8  Prefactor     5.5564        9.3948        .42608E-02    .14729E-02
   9  Prefactor     .10000E-03    10.607        .90712E-02** at limit **
  10  Prefactor     .10000E-03    21.343        .90712E-02** at limit **
  11  norm          9.7322        8.3944        .32127E-02    .22172E-02
  12  Prefactor     .32164        3.6516        .84259E-01    .10647E-02
  13  Prefactor     .10000E-03    240.08        .90712E-02** at limit **
  14  Prefactor     6.0661        7.4352        .40753E-02    .22472E-02
  15  Prefactor     .10000E-03    33.125        .90712E-02** at limit **
  16  norm          .10000E-03    9.6755        .90712E-02** at limit **
  17  norm          .10000E-03    6.1552        .90712E-02** at limit **
  18  Prefactor     3.8330        3.4671        .51534E-02    .38880E-03
  19  Prefactor     19.775        24.029        .22516E-02   -.42139E-03
  20  Prefactor     38.527        23.260        .16144E-02    .42395E-03
  21  Prefactor     9.1353        6.5690        .33149E-02   -.11013E-02
  22  Prefactor     .10000E-03    13.130        .90712E-02** at limit **
  23  Normalizat    .74144        .19231        .76379E-01    .35947E-04
  24  Prefactor     1.0290        .11920        .41332E-01    .24492E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8942
  Prefactor  = 0.0001
  Prefactor  = 16.6763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.07571
  norm       = 2.68198
  Prefactor  = 5.55643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.73222
  Prefactor  = 0.321641
  Prefactor  = 0.000100005
  Prefactor  = 6.06605
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.83299
  Prefactor  = 19.7749
  Prefactor  = 38.527
  Prefactor  = 9.13532
  Prefactor  = 0.0001
  Normalizat = 0.741436
  Prefactor  = 1.02903
 **********
 **   18 **HESSE 
 **********

 FCN=   7835.666     FROM HESSE     STATUS=OK           393 CALLS     3127 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.894        16.740        .10377E-03   -1.4936    
   2  Prefactor     .10000E-03    5.4913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.676        29.707        .98065E-04   -1.4891    
   4  Prefactor     .10000E-03    1.7055        .11272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0861        .15172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0757        11.487        .70541E-03   -1.5140    
   7  norm          2.6820        1.0639        .24881E-04   -1.5380    
   8  Prefactor     5.5564        9.3580        .17043E-03   -1.5236    
   9  Prefactor     .10000E-03    10.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.7322        8.7170        .64253E-03   -1.5084    
  12  Prefactor     .32164        34.435        .29017E-02   -1.5595    
  13  Prefactor     .10000E-03    240.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0661        7.4152        .81506E-03   -1.5215    
  15  Prefactor     .10000E-03    33.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.7378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.1574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8330        3.4549        .14628E-03   -1.5316    
  19  Prefactor     19.775        24.042        .90064E-04   -1.4818    
  20  Prefactor     38.527        23.310        .64575E-04   -1.4466    
  21  Prefactor     9.1353        6.5706        .13260E-03   -1.5103    
  22  Prefactor     .10000E-03    13.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .74144        .21992        .33811E-03   -1.0228    
  24  Prefactor     1.0290        .13695        .19310E-03   -.91768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6531e-08
Minuit parameter uncertainties:
  1  16.7449
  2  1.21885e-07
  3  29.733
  4  7.26178e-07
  5  6.6411e-07
  6  11.4897
  7  1.0639
  8  9.36046
  9  3.9965e-05
  10  0.000185638
  11  8.71818
  12  6.65889
  13  0.0022017
  14  7.41629
  15  0.000573539
  16  6.73183e-05
  17  8.08124e-07
  18  3.45512
  19  24.0534
  20  23.3159
  21  6.57114
  22  3.0158e-05
  23  0.220182
  24  0.136996
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  5.735e-04  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.029e+00  1.370e-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:  7.414e-01  2.202e-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: 9.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15828/likelihoodResults_264729601_264988801_4FGL_J2334.2+0736_daily_bin98.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) = 7835.66643011
delta logL = -0.000142592664815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7835.66628829
delta logL = -7.68830432207e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11327E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3999       1.0000          .0000       10.000    
     3 'Normalizat'    .74144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0290       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=   7835.666     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      279 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    6382.0        .18142E-02** at limit **
   2  Index         2.4828        7.3272        .50000       -.33253E-04
   3  Normalizat    .74144        .47399E-01    .33811E-03    .13752E-04
   4  Prefactor     1.0290        .31681E-01    .19310E-03   -.10009E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100034
  Index      = 2.48279
  Normalizat = 0.741436
  Prefactor  = 1.02903
 **********
 **   18 **HESSE 
 **********

 FCN=   7835.666     FROM HESSE     STATUS=OK            29 CALLS      308 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    695.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4828        8.6334        .50000       -.52758    
   3  Normalizat    .74144        .20251        .13524E-04   -1.0228    
   4  Prefactor     1.0290        .13546        .77238E-05   -.91768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17365e-09
Minuit parameter uncertainties:
  1  0.00982905
  2  19.4523
  3  0.202716
  4  0.135509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15828': 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) = 7835.66628743
delta logL = 9.18398654903e-08

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  9.829e-03  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.483e+00  1.945e+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:  1.029e+00  1.355e-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:  7.414e-01  2.027e-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/15828/cmap_HighResolution_264729601_264988801_4FGL_J2334.2+0736_daily_bin98.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', job_status='DONE', photon_flux_upper_limit='9.30e-08', time_completed='2021-09-29 23:33:41.454510', job_id='15828', GAL2='1.03', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632983621.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.18e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='98' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:33:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 15828: <4FGL_J2334.2+0736_daily_bin98> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin98> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 23:21:10 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:21:12 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:21:12 2021
Terminated at Wed Sep 29 23:33:42 2021
Results reported at Wed Sep 29 23:33:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin98 353.557 7.602 264729601 264988801 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 :                                   732.31 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            752 sec.

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

