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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1149
RA = 353.557, Dec = 7.602
tmin = 537148801, tmax = 537408001
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='19863', job_status='RUN', time_executed='2021-09-29 23:36:04.403772', time_epoch_executed='1632983764.4' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19863

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19863/ft1_4FGL_J2334.2+0736_daily_bin1149.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19863/ft2_4FGL_J2334.2+0736_daily_bin1149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19863/ft1_4FGL_J2334.2+0736_daily_bin1149.fits outfile=/scratch/kocevski/19863/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1149.fits ra=353.557 dec=7.602 rad=12.0 tmin=537148801.0 tmax=537408001.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.57
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19863/ft2_4FGL_J2334.2+0736_daily_bin1149.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/19863/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1149.fits evtable="EVENTS" outfile="/scratch/kocevski/19863/ft1_filtered_4FGL_J2334.2+0736_daily_bin1149.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.53
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19863/ft1_filtered_4FGL_J2334.2+0736_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/19863/ft2_4FGL_J2334.2+0736_daily_bin1149.fits sctable="SC_DATA" expcube=/scratch/kocevski/19863/ltcube_537148801_537408001_4FGL_J2334.2+0736_daily_bin1149.fits outfile=/scratch/kocevski/19863/expmap_537148801_537408001_4FGL_J2334.2+0736_daily_bin1149.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/19863/ltcube_537148801_537408001_4FGL_J2334.2+0736_daily_bin1149.fits
.....................!
real 192.06
user 187.55
sys 4.14

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/19863/ft1_filtered_4FGL_J2334.2+0736_daily_bin1149.fits scfile=/scratch/kocevski/19863/ft2_4FGL_J2334.2+0736_daily_bin1149.fits outfile=/scratch/kocevski/19863/cmap_537148801_537408001_4FGL_J2334.2+0736_daily_bin1149.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/19863/ft1_filtered_4FGL_J2334.2+0736_daily_bin1149.fits scfile=/scratch/kocevski/19863/ft2_4FGL_J2334.2+0736_daily_bin1149.fits outfile=/scratch/kocevski/19863/cmap_HighResolution_537148801_537408001_4FGL_J2334.2+0736_daily_bin1149.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/19863/ft1_filtered_4FGL_J2334.2+0736_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/19863/ft2_4FGL_J2334.2+0736_daily_bin1149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19863/Model_4FGL_J2334.2+0736_daily_bin1149.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/19863/ft1_filtered_4FGL_J2334.2+0736_daily_bin1149.fits.....................!
real 66.90
user 65.58
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19342E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.427       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8384       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .54814       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10579E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.838       1.0000         .10000E-03   10000.    
    10 'Prefactor '    60.480       1.0000         .10000E-03   10000.    
    11 'norm      '    .26777E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.482       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29246E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.867       1.0000         .10000E-03   10000.    
    16 'norm      '    .10255E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    27.485       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10597E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6170       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88014       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99521       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=   5947.227     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2757 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.669        .82591E-05** at limit **
   2  Prefactor     .10000E-03    40.119       -.35344E-05** at limit **
   3  Prefactor     15.429        28.087        .14068E-06    .10088E-04
   4  Prefactor     .10000E-03    1.7036       -.17104E-07** at limit **
   5  Prefactor     9.8360        15.500       -.37123E-06    .12652E-04
   6  Prefactor     .10000E-03    6.3516        .91134E-07** at limit **
   7  norm          .54895        1.0499        .17066E-06   -.93592E-03
   8  Prefactor     .10000E-03    17.146       -.50523E-05** at limit **
   9  Prefactor     15.839        15.593       -.26445E-06    .16327E-05
  10  Prefactor     60.476        48.903       -.27226E-05    .21218E-05
  11  norm          .10002E-03    11.386       -.93375E-06** at limit **
  12  Prefactor     10.482        10.656       -.97554E-06    .32376E-03
  13  Prefactor     .10000E-03    82.913        .12110E-05** at limit **
  14  Prefactor     .10001E-03    13.390        .23473E-05** at limit **
  15  Prefactor     56.878        36.368        .71191E-05    .22477E-03
  16  norm          .10000E-03    39.977       -.47673E-06** at limit **
  17  norm          27.449        25.808       -.11065E-04   -.10384E-03
  18  Prefactor     .10000E-03    2.6335        .37563E-06** at limit **
  19  Prefactor     .10000E-03    22.960       -.12685E-04** at limit **
  20  Prefactor     8.6048        22.337       -.48680E-05   -.94885E-05
  21  Prefactor     .10000E-03    2.3013        .31223E-07** at limit **
  22  Prefactor     .10000E-03    19.977        .15196E-04** at limit **
  23  Normalizat    .88003        .22191        .23732E-06    .44111E-04
  24  Prefactor     .99528        .13949        .45956E-06    .51527E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 15.4291
  Prefactor  = 0.0001
  Prefactor  = 9.83597
  Prefactor  = 0.0001
  norm       = 0.548947
  Prefactor  = 0.000100001
  Prefactor  = 15.8388
  Prefactor  = 60.4761
  norm       = 0.000100025
  Prefactor  = 10.4818
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 56.8785
  norm       = 0.0001
  norm       = 27.4492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.60478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.880032
  Prefactor  = 0.99528
 **********
 **   18 **HESSE 
 **********

 FCN=   5947.227     FROM HESSE     STATUS=OK           393 CALLS     3150 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.429        28.087        .10197E-03   -1.4922    
   4  Prefactor     .10000E-03    1.7057        .98300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8360        15.478        .12775E-03   -1.5081    
   6  Prefactor     .10000E-03    6.3565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .54895        .97132        .10436E-02   -1.5560    
   8  Prefactor     .10000E-03    17.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.839        15.597        .10064E-03   -1.4912    
  10  Prefactor     60.476        48.862        .51593E-04   -1.4151    
  11  norm          .10002E-03    27.179        .41418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.482        9.3384        .12376E-03   -1.5060    
  13  Prefactor     .10000E-03    82.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    13.792        .42801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     56.878        35.907        .53197E-04   -1.4198    
  16  norm          .10000E-03    41.029        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          27.449        25.679        .76416E-04   -1.4660    
  18  Prefactor     .10000E-03    2.7066        .24438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6048        22.342        .13655E-03   -1.5121    
  21  Prefactor     .10000E-03    2.3046        .11425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .88003        .25823        .32637E-03   -.97165    
  24  Prefactor     .99528        .16339        .20215E-03   -.92887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03288e-09
Minuit parameter uncertainties:
  1  0.000297227
  2  1.09699e-05
  3  28.1106
  4  2.21992e-07
  5  15.4841
  6  1.13224e-07
  7  0.971345
  8  0.000213798
  9  15.6009
  10  48.8941
  11  0.00163374
  12  9.33969
  13  8.42164e-05
  14  0.000708336
  15  35.9212
  16  2.29884e-05
  17  25.6895
  18  6.03746e-05
  19  3.70332e-05
  20  22.3633
  21  8.92468e-07
  22  4.74941e-05
  23  0.258593
  24  0.163469
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  5.688e+01  3.592e+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:  9.953e-01  1.635e-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:  8.800e-01  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.84
Ra Dec: 353.557 7.602
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 6.62e-08
Energy Flux (Fixed Index): 3.15e-05 +/- 1.99e-05

TS (Fixed Index): 3.84
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 2.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19863/likelihoodResults_537148801_537408001_4FGL_J2334.2+0736_daily_bin1149.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) = 5946.19453178
delta logL = 1.03267440238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5946.1824055
delta logL = 1.04480068319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.029       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3633       1.0000          .0000       10.000    
     3 'Normalizat'    .79960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0294       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=   5946.182     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      311 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.030        35.281        .89495E-04   -.54750E-04
   2  Index         3.3636        .98096        .37109E-02    .60537E-03
   3  Normalizat    .79898        .25691        .34034E-03    .23817E-04
   4  Prefactor     1.0298        .16545        .19891E-03   -.46295E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0303
  Index      = 3.36361
  Normalizat = 0.798977
  Prefactor  = 1.02976
 **********
 **   18 **HESSE 
 **********

 FCN=   5946.182     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.030        26.261        .35798E-05   -1.4813    
   2  Index         3.3636        .73149        .74217E-03   -.33342    
   3  Normalizat    .79898        .25563        .13614E-04   -1.0011    
   4  Prefactor     1.0298        .16440        .79564E-05   -.91744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16157e-12
Minuit parameter uncertainties:
  1  26.2762
  2  0.734441
  3  0.256016
  4  0.164479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19863': 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) = 5946.18240233
delta logL = 1.04480386005

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  2.003e+01  2.628e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  3.364e+00  7.344e-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.030e+00  1.645e-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.990e-01  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.12
Ra Dec: 353.557 7.602
Photon Index (Free Index): 3.36 +/- 0.73
Photon Flux (Free Index): 1.74e-07 +/- 8.94e-08
Energy Flux (Free Index): 3.02e-05 +/- 1.51e-05

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/19863/cmap_HighResolution_537148801_537408001_4FGL_J2334.2+0736_daily_bin1149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-02', comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='3.02e-05', photon_flux_error='6.62e-08', dlogl='1.04e+00', energy_flux='3.15e-05', photon_flux2='1.74e-07', job_status='DONE', time_completed='2021-09-29 23:46:54.983758', photon_index_error2='0.73', photon_index2='3.36', ts='3.84', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.29e-07', energy_flux_error2='1.51e-05', EG='0.88', time_epoch_completed='1632984414.98', return_code='0', job_id='19863', GAL2='1.03', EG2='0.80', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='8.94e-08', ts2='6.12', photon_index='2.47' WHERE bin_id='1149' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:46:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 19863: <4FGL_J2334.2+0736_daily_bin1149> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1149 353.557 7.602 537148801 537408001 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 :                                   644.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             332.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            667 sec.

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

