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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1608
RA = 353.557, Dec = 7.602
tmin = 656121601, tmax = 656380801
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='502741', job_status='RUN', time_executed='2021-12-08 09:39:59.200345', time_epoch_executed='1638985199.2' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502741

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502741/ft1_4FGL_J2334.2+0736_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502741/ft2_4FGL_J2334.2+0736_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502741/ft1_4FGL_J2334.2+0736_daily_bin1608.fits outfile=/scratch/kocevski/502741/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1608.fits ra=353.557 dec=7.602 rad=12.0 tmin=656121601.0 tmax=656380801.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.53
user 3.29
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/502741/ft2_4FGL_J2334.2+0736_daily_bin1608.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/502741/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1608.fits evtable="EVENTS" outfile="/scratch/kocevski/502741/ft1_filtered_4FGL_J2334.2+0736_daily_bin1608.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.50
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502741/ft1_filtered_4FGL_J2334.2+0736_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/502741/ft2_4FGL_J2334.2+0736_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/502741/ltcube_656121601_656380801_4FGL_J2334.2+0736_daily_bin1608.fits outfile=/scratch/kocevski/502741/expmap_656121601_656380801_4FGL_J2334.2+0736_daily_bin1608.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/502741/ltcube_656121601_656380801_4FGL_J2334.2+0736_daily_bin1608.fits
.....................!
real 190.80
user 185.80
sys 4.56

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/502741/ft1_filtered_4FGL_J2334.2+0736_daily_bin1608.fits scfile=/scratch/kocevski/502741/ft2_4FGL_J2334.2+0736_daily_bin1608.fits outfile=/scratch/kocevski/502741/cmap_656121601_656380801_4FGL_J2334.2+0736_daily_bin1608.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502741/ft1_filtered_4FGL_J2334.2+0736_daily_bin1608.fits scfile=/scratch/kocevski/502741/ft2_4FGL_J2334.2+0736_daily_bin1608.fits outfile=/scratch/kocevski/502741/cmap_HighResolution_656121601_656380801_4FGL_J2334.2+0736_daily_bin1608.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5501       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6425       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.467       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8604       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10689E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.176       1.0000         .10000E-03   10000.    
     7 'norm      '    .15684       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .66852       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.457       1.0000         .10000E-03   10000.    
    11 'norm      '    12.973       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .40478E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.208       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.6263       1.0000         .10000E-03   10000.    
    17 'norm      '    .10229E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2879       1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.617       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.731       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .53941       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1318       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=   5942.924     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2800 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6367        24.011        .17424E-06    .37424E-04
   2  Prefactor     1.6426        13.528        .30940E-05    .26716E-03
   3  Prefactor     13.459        21.238       -.10374E-07    .16450E-04
   4  Prefactor     1.8593        3.5600        .56365E-06    .40689E-03
   5  Prefactor     .10000E-03    10.368       -.41868E-06** at limit **
   6  Prefactor     12.174        18.751        .15069E-06    .68579E-04
   7  norm          .15628        1.0965        .56557E-06   -.50752E-03
   8  Prefactor     .61996        21.202       -.52085E-05    .43254E-03
   9  Prefactor     .10000E-03    12.676       -.64848E-06** at limit **
  10  Prefactor     38.489        47.523        .68882E-06    .12103E-03
  11  norm          12.990        8.7124       -.26894E-06   -.39445E-04
  12  Prefactor     .10000E-03    2.2086       -.24948E-08** at limit **
  13  Prefactor     .10000E-03    99.363       -.19033E-06** at limit **
  14  Prefactor     22.224        16.941        .10203E-05    .53901E-03
  15  Prefactor     .10000E-03    14.674        .31607E-06** at limit **
  16  norm          8.6232        15.453        .50608E-07    .25598E-04
  17  norm          .10000E-03    9.7619       -.24707E-06** at limit **
  18  Prefactor     .10000E-03    3.0175       -.94488E-06** at limit **
  19  Prefactor     6.3496        106.03       -.33536E-05    .14763E-04
  20  Prefactor     43.624        32.439        .74419E-06    .20905E-03
  21  Prefactor     .10000E-03    2.0850       -.12064E-06** at limit **
  22  Prefactor     12.731        20.897        .21897E-06    .70781E-04
  23  Normalizat    .53896        .23706        .16154E-05    .26871E-03
  24  Prefactor     1.1321        .14543       -.57362E-06    .39210E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.63672
  Prefactor  = 1.6426
  Prefactor  = 13.4591
  Prefactor  = 1.85927
  Prefactor  = 0.0001
  Prefactor  = 12.1739
  norm       = 0.156277
  Prefactor  = 0.619955
  Prefactor  = 0.0001
  Prefactor  = 38.4886
  norm       = 12.9895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.2239
  Prefactor  = 0.0001
  norm       = 8.62325
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.34956
  Prefactor  = 43.6238
  Prefactor  = 0.0001
  Prefactor  = 12.7309
  Normalizat = 0.538965
  Prefactor  = 1.13208
 **********
 **   18 **HESSE 
 **********

 FCN=   5942.924     FROM HESSE     STATUS=OK           401 CALLS     3201 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6367        23.977        .15680E-03   -1.5193    
   2  Prefactor     1.6426        14.031        .32964E-03   -1.5452    
   3  Prefactor     13.459        21.243        .10915E-03   -1.4974    
   4  Prefactor     1.8593        3.5538        .19671E-03   -1.5435    
   5  Prefactor     .10000E-03    10.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.174        18.735        .11480E-03   -1.5010    
   7  norm          .15628        3.1129        .12637E-02   -1.5629    
   8  Prefactor     .61996        39.535        .42948E-02   -1.5550    
   9  Prefactor     .10000E-03    12.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.489        47.538        .64632E-04   -1.4466    
  11  norm          12.990        8.7445        .11121E-03   -1.4987    
  12  Prefactor     .10000E-03    2.2133        .11182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    99.364        .21258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.224        17.418        .84997E-04   -1.4765    
  15  Prefactor     .10000E-03    14.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.6232        15.447        .13648E-03   -1.5121    
  17  norm          .10000E-03    9.7756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1588        .13297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.3496        105.12        .16008E-03   -1.5204    
  20  Prefactor     43.624        32.478        .60703E-04   -1.4386    
  21  Prefactor     .10000E-03    2.0955        .10873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.731        20.886        .11226E-03   -1.4994    
  23  Normalizat    .53896        .25877        .38404E-03   -1.1064    
  24  Prefactor     1.1321        .16259        .18187E-03   -.88448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52501e-09
Minuit parameter uncertainties:
  1  24.0122
  2  9.60414
  3  21.2552
  4  3.55424
  5  5.46985e-05
  6  18.7439
  7  1.3946
  8  9.90748
  9  0.00012607
  10  47.5848
  11  8.74534
  12  2.83772e-06
  13  6.04389e-05
  14  17.4223
  15  9.49481e-05
  16  15.4541
  17  5.02394e-05
  18  9.46305e-05
  19  51.7775
  20  32.4914
  21  8.58101e-06
  22  20.8977
  23  0.259348
  24  0.162663
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  9.495e-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.132e+00  1.627e-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:  5.390e-01  2.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/502741/likelihoodResults_656121601_656380801_4FGL_J2334.2+0736_daily_bin1608.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) = 5942.92408015
delta logL = -0.000322879802297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5942.92375831
delta logL = -1.04430728243e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8036       1.0000          .0000       10.000    
     3 'Normalizat'    .53896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1321       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=   5942.924     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      277 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10155E-03    79.022        .18142E-02** at limit **
   2  Index         2.7445        5.3039        .50000        .17847E-04
   3  Normalizat    .53896        .12976E-01    .38405E-03   -.21314E-05
   4  Prefactor     1.1321        .87278E-02    .18187E-03   -.95640E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101554
  Index      = 2.74449
  Normalizat = 0.538962
  Prefactor  = 1.13208
 **********
 **   18 **HESSE 
 **********

 FCN=   5942.924     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10155E-03    340.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7445        5.2014        .50000       -.46800    
   3  Normalizat    .53896        .27699E-01    .15362E-04   -1.1064    
   4  Prefactor     1.1321        .18631E-01    .72748E-05   -.88448    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26529e-08
Minuit parameter uncertainties:
  1  0.0462826
  2  486.88
  3  0.0276995
  4  0.0186307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502741': 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) = 5942.923758
delta logL = -7.33128217689e-07

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.016e-04  4.628e-02  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.744e+00  4.869e+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:  1.132e+00  1.863e-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:  5.390e-01  2.770e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/502741/cmap_HighResolution_656121601_656380801_4FGL_J2334.2+0736_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2021-12-08 09:50:41.732996', job_id='502741', GAL2='1.13', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1638985841.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='-7.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1608' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:50:41 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 502741: <4FGL_J2334.2+0736_daily_bin1608> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin1608> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 09:35:24 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:36:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:36:26 2021
Terminated at Wed Dec  8 09:50:42 2021
Results reported at Wed Dec  8 09:50:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1608 353.557 7.602 656121601 656380801 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 :                                   641.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            918 sec.

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

