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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin653
RA = 353.557, Dec = 7.602
tmin = 408585601, tmax = 408844801
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='18070', job_status='RUN', time_executed='2021-09-29 23:32:31.734918', time_epoch_executed='1632983551.73' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18070

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18070/ft1_4FGL_J2334.2+0736_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18070/ft2_4FGL_J2334.2+0736_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18070/ft1_4FGL_J2334.2+0736_daily_bin653.fits outfile=/scratch/kocevski/18070/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin653.fits ra=353.557 dec=7.602 rad=12.0 tmin=408585601.0 tmax=408844801.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 4.29
user 4.03
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/18070/ft2_4FGL_J2334.2+0736_daily_bin653.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/18070/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin653.fits evtable="EVENTS" outfile="/scratch/kocevski/18070/ft1_filtered_4FGL_J2334.2+0736_daily_bin653.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18070/ft1_filtered_4FGL_J2334.2+0736_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/18070/ft2_4FGL_J2334.2+0736_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/18070/ltcube_408585601_408844801_4FGL_J2334.2+0736_daily_bin653.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/18070/ft2_4FGL_J2334.2+0736_daily_bin653.fits
.....................!
real 11.99
user 11.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18070/ft1_filtered_4FGL_J2334.2+0736_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/18070/ft2_4FGL_J2334.2+0736_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/18070/ltcube_408585601_408844801_4FGL_J2334.2+0736_daily_bin653.fits outfile=/scratch/kocevski/18070/expmap_408585601_408844801_4FGL_J2334.2+0736_daily_bin653.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/18070/ltcube_408585601_408844801_4FGL_J2334.2+0736_daily_bin653.fits
.....................!
real 189.71
user 184.80
sys 4.54

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/18070/ft1_filtered_4FGL_J2334.2+0736_daily_bin653.fits scfile=/scratch/kocevski/18070/ft2_4FGL_J2334.2+0736_daily_bin653.fits outfile=/scratch/kocevski/18070/cmap_408585601_408844801_4FGL_J2334.2+0736_daily_bin653.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18070/ft1_filtered_4FGL_J2334.2+0736_daily_bin653.fits scfile=/scratch/kocevski/18070/ft2_4FGL_J2334.2+0736_daily_bin653.fits outfile=/scratch/kocevski/18070/cmap_HighResolution_408585601_408844801_4FGL_J2334.2+0736_daily_bin653.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.829       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11866E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    82.396       1.0000         .10000E-03   10000.    
    10 'Prefactor '    91.305       1.0000         .10000E-03   10000.    
    11 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.937       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11434E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.839       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.981       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .73973       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96923       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=   1007.334     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2783 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.024        .74452E-05** at limit **
   2  Prefactor     .10000E-03    44.796        .20545E-05** at limit **
   3  Prefactor     .10000E-03    78.153       -.16588E-04** at limit **
   4  Prefactor     .10000E-03    6.8373        .51576E-06** at limit **
   5  Prefactor     29.803        39.822       -.87037E-05   -.22938E-05
   6  Prefactor     .10000E-03    34.101       -.48983E-05** at limit **
   7  norm          .10001E-03    4.0536        .28211E-05** at limit **
   8  Prefactor     .10000E-03    12.530        .19752E-05** at limit **
   9  Prefactor     82.398        65.755       -.66051E-06   -.68714E-05
  10  Prefactor     90.959        212.61       -.34523E-03   -.21254E-05
  11  norm          .10000E-03    13.135       -.17209E-05** at limit **
  12  Prefactor     .10000E-03    11.682       -.83448E-06** at limit **
  13  Prefactor     .10000E-03    297.67       -.12032E-03** at limit **
  14  Prefactor     .10001E-03    23.604       -.41439E-05** at limit **
  15  Prefactor     32.938        48.339       -.69917E-06   -.14915E-04
  16  norm          .10000E-03    23.066        .60905E-05** at limit **
  17  norm          .10000E-03    34.650       -.14021E-05** at limit **
  18  Prefactor     .10000E-03    10.324        .97566E-06** at limit **
  19  Prefactor     .10002E-03    83.208        .52528E-05** at limit **
  20  Prefactor     .10004E-03    212.79        .87675E-04** at limit **
  21  Prefactor     19.844        22.107       -.39832E-05    .13389E-04
  22  Prefactor     10.984        48.795       -.42529E-05   -.58366E-05
  23  Normalizat    .73865        .50067        .46764E-04   -.26405E-03
  24  Prefactor     .96984        .33010        .15037E-05   -.91964E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.8031
  Prefactor  = 0.000100001
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 82.3979
  Prefactor  = 90.9592
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 32.9378
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 0.000100015
  Prefactor  = 0.000100043
  Prefactor  = 19.8438
  Prefactor  = 10.9838
  Normalizat = 0.738652
  Prefactor  = 0.969837
 **********
 **   18 **HESSE 
 **********

 FCN=   1007.334     FROM HESSE     STATUS=OK           383 CALLS     3166 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    44.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    78.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8376        .81074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.803        39.800        .73359E-04   -1.4616    
   6  Prefactor     .10000E-03    34.110        .18112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    7.6704        .12331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.535        .10976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     82.398        65.737        .44250E-04   -1.3890    
  10  Prefactor     90.959        212.90        .21027E-03   -1.3798    
  11  norm          .10000E-03    13.155        .11237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.702        .10597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    297.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    23.619        .15059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.938        48.336        .69821E-04   -1.4560    
  16  norm          .10000E-03    23.072        .14894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    34.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.364        .99586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    83.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    214.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.844        22.123        .89924E-04   -1.4817    
  22  Prefactor     10.984        48.807        .12090E-03   -1.5045    
  23  Normalizat    .73865        .59100        .32657E-03   -1.0239    
  24  Prefactor     .96984        .39492        .19372E-03   -.93742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05966e-09
Minuit parameter uncertainties:
  1  0.000266811
  2  4.34624e-05
  3  0.000230995
  4  7.15984e-06
  5  39.835
  6  0.000411335
  7  0.000564633
  8  1.20302e-05
  9  65.7946
  10  214.726
  11  7.75788e-05
  12  0.00012013
  13  0.000451765
  14  0.00102406
  15  48.3933
  16  8.13445e-05
  17  0.000592274
  18  0.000257143
  19  0.00227431
  20  0.00610129
  21  22.1319
  22  46.3701
  23  0.596221
  24  0.396103
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  3.294e+01  4.839e+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.698e-01  3.961e-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.387e-01  5.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/18070/likelihoodResults_408585601_408844801_4FGL_J2334.2+0736_daily_bin653.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) = 1007.09494277
delta logL = 0.239020714233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1007.09486179
delta logL = 0.239101688978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.692       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7534       1.0000          .0000       10.000    
     3 'Normalizat'    .77192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95082       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=   1007.095     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      250 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.582        78.319        .25965E-03    .40832E-04
   2  Index         1.7537        .86751        .65156E-02    .30120E-04
   3  Normalizat    .77194        .57839        .31991E-03    .38803E-03
   4  Prefactor     .95092        .39278        .19511E-03    .55660E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.5822
  Index      = 1.75366
  Normalizat = 0.771941
  Prefactor  = 0.950923
 **********
 **   18 **HESSE 
 **********

 FCN=   1007.095     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.582        78.163        .51930E-04   -1.4163    
   2  Index         1.7537        .86584        .26062E-03   -.70662    
   3  Normalizat    .77194        .57883        .63983E-04   -1.0112    
   4  Prefactor     .95092        .39309        .39021E-04   -.94384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61803e-09
Minuit parameter uncertainties:
  1  78.2978
  2  0.873498
  3  0.583532
  4  0.394279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18070': 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) = 1007.09486067
delta logL = 0.239102809981

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  5.958e+01  7.830e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  1.754e+00  8.735e-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:  9.509e-01  3.943e-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.719e-01  5.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 353.557 7.602
Photon Index (Free Index): 1.75 +/- 0.87
Photon Flux (Free Index): 4.19e-08 +/- 6.29e-08
Energy Flux (Free Index): 5.78e-05 +/- 1.37e-04

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/18070/cmap_HighResolution_408585601_408844801_4FGL_J2334.2+0736_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-02', comment='SUCCESS', energy_flux2='5.78e-05', dlogl='2.39e-01', photon_flux2='4.19e-08', job_status='DONE', time_completed='2021-09-29 23:38:41.307859', photon_index_error2='0.87', photon_index2='1.75', ts='0.85', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='3.54e-07', energy_flux_error2='1.37e-04', EG='0.74', time_epoch_completed='1632983921.31', return_code='0', job_id='18070', GAL2='0.95', EG2='0.77', return_code2='0', photon_flux_error2='6.29e-08', ts2='1.34', photon_index='2.47' WHERE bin_id='653' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:38:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 18070: <4FGL_J2334.2+0736_daily_bin653> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin653 353.557 7.602 408585601 408844801 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 :                                   369.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             266.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   499 sec.
    Turnaround time :                            501 sec.

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

