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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1106
RA = 353.557, Dec = 7.602
tmin = 526003201, tmax = 526262401
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='19798', job_status='RUN', time_executed='2021-09-29 23:37:42.772553', time_epoch_executed='1632983862.77' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19798

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19798/ft1_4FGL_J2334.2+0736_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19798/ft2_4FGL_J2334.2+0736_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19798/ft1_4FGL_J2334.2+0736_daily_bin1106.fits outfile=/scratch/kocevski/19798/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1106.fits ra=353.557 dec=7.602 rad=12.0 tmin=526003201.0 tmax=526262401.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.73
user 3.48
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19798/ft1_filtered_4FGL_J2334.2+0736_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/19798/ft2_4FGL_J2334.2+0736_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/19798/ltcube_526003201_526262401_4FGL_J2334.2+0736_daily_bin1106.fits outfile=/scratch/kocevski/19798/expmap_526003201_526262401_4FGL_J2334.2+0736_daily_bin1106.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/19798/ltcube_526003201_526262401_4FGL_J2334.2+0736_daily_bin1106.fits
.....................!
real 190.22
user 184.95
sys 4.88

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/19798/ft1_filtered_4FGL_J2334.2+0736_daily_bin1106.fits scfile=/scratch/kocevski/19798/ft2_4FGL_J2334.2+0736_daily_bin1106.fits outfile=/scratch/kocevski/19798/cmap_526003201_526262401_4FGL_J2334.2+0736_daily_bin1106.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19798/ft1_filtered_4FGL_J2334.2+0736_daily_bin1106.fits scfile=/scratch/kocevski/19798/ft2_4FGL_J2334.2+0736_daily_bin1106.fits outfile=/scratch/kocevski/19798/cmap_HighResolution_526003201_526262401_4FGL_J2334.2+0736_daily_bin1106.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.001       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.837       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1543       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.763       1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.708       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.0999       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.764       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8440       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.943       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9650       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10567E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .74525       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95827       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=   6450.622     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2719 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.998        21.509        .11025E-06   -.18911E-05
   2  Prefactor     .10000E-03    9.1641       -.91537E-07** at limit **
   3  Prefactor     44.839        39.556        .31974E-06    .26041E-04
   4  Prefactor     .10000E-03    2.5517        .12968E-06** at limit **
   5  Prefactor     6.1547        10.357        .11719E-05   -.53264E-03
   6  Prefactor     12.764        16.111        .45011E-06   -.18109E-03
   7  norm          .10000E-03    .61775        .45137E-08** at limit **
   8  Prefactor     .10000E-03    3.5875       -.53840E-07** at limit **
   9  Prefactor     21.707        20.336        .11114E-06   -.33956E-05
  10  Prefactor     .10000E-03    16.847        .29606E-05** at limit **
  11  norm          8.0997        8.0612        .11734E-06    .24269E-04
  12  Prefactor     .10000E-03    5.0649       -.11575E-06** at limit **
  13  Prefactor     .10000E-03    92.000       -.24848E-05** at limit **
  14  Prefactor     .10001E-03    15.335       -.54596E-05** at limit **
  15  Prefactor     .10000E-03    8.7888       -.19330E-06** at limit **
  16  norm          13.764        13.264        .68159E-07   -.36321E-05
  17  norm          .10000E-03    16.815        .22359E-05** at limit **
  18  Prefactor     3.8439        3.1133        .95079E-06   -.20422E-02
  19  Prefactor     28.947        41.175        .16608E-05    .10722E-03
  20  Prefactor     .10000E-03    24.010       -.21041E-05** at limit **
  21  Prefactor     4.9649        4.6478       -.11034E-05   -.67613E-03
  22  Prefactor     .10000E-03    42.825        .18635E-05** at limit **
  23  Normalizat    .74529        .20312       -.30532E-06    .48455E-04
  24  Prefactor     .95822        .12556       -.27440E-06    .85793E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9976
  Prefactor  = 0.0001
  Prefactor  = 44.8388
  Prefactor  = 0.0001
  Prefactor  = 6.15473
  Prefactor  = 12.764
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7075
  Prefactor  = 0.000100002
  norm       = 8.0997
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 13.7643
  norm       = 0.000100001
  Prefactor  = 3.84391
  Prefactor  = 28.9474
  Prefactor  = 0.000100001
  Prefactor  = 4.96493
  Prefactor  = 0.0001
  Normalizat = 0.745287
  Prefactor  = 0.958224
 **********
 **   18 **HESSE 
 **********

 FCN=   6450.622     FROM HESSE     STATUS=OK           395 CALLS     3114 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.998        21.604        .97135E-04   -1.4883    
   2  Prefactor     .10000E-03    9.1680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.839        39.562        .59875E-04   -1.4368    
   4  Prefactor     .10000E-03    2.5599        .12530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.1547        10.855        .80914E-03   -1.5212    
   6  Prefactor     12.764        16.231        .56061E-03   -1.4993    
   7  norm          .10000E-03    1.5016        .12179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5933        .14853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.707        20.337        .85968E-04   -1.4776    
  10  Prefactor     .10000E-03    17.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.0997        8.0499        .14087E-03   -1.5139    
  12  Prefactor     .10000E-03    5.1063        .17622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    92.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    16.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.7987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.764        13.271        .10796E-03   -1.4966    
  17  norm          .10000E-03    17.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8439        3.7267        .73287E-03   -1.5316    
  19  Prefactor     28.947        41.411        .74470E-04   -1.4631    
  20  Prefactor     .10000E-03    24.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.9649        4.7324        .16577E-03   -1.5262    
  22  Prefactor     .10000E-03    44.619        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .74529        .23509        .33399E-03   -1.0213    
  24  Prefactor     .95822        .14614        .19218E-03   -.94135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07328e-09
Minuit parameter uncertainties:
  1  21.6135
  2  7.89286e-06
  3  39.5851
  4  6.10485e-06
  5  10.8588
  6  16.2361
  7  6.28848e-06
  8  4.19908e-06
  9  20.3432
  10  0.000351082
  11  8.05097
  12  9.61083e-06
  13  0.000676995
  14  0.000610487
  15  1.9404e-05
  16  13.2743
  17  0.00028003
  18  3.72689
  19  41.4517
  20  0.000319145
  21  4.73271
  22  0.000276454
  23  0.235407
  24  0.146204
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  1.940e-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:  9.582e-01  1.462e-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.453e-01  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/19798/likelihoodResults_526003201_526262401_4FGL_J2334.2+0736_daily_bin1106.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) = 6450.62258417
delta logL = -0.000541460914064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6450.62204316
delta logL = -4.55576810054e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10656E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4576       1.0000          .0000       10.000    
     3 'Normalizat'    .74518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95829       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=   6450.622     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.999        .18142E-02** at limit **
   2  Index         2.4450        6.1617        .50000        .12235E-04
   3  Normalizat    .74529        .22067        .33399E-03    .16952E-04
   4  Prefactor     .95822        .14374        .19218E-03    .25260E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.44497
  Normalizat = 0.745287
  Prefactor  = 0.958224
 **********
 **   18 **HESSE 
 **********

 FCN=   6450.622     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0221        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4450        6.2216        .50000       -.53635    
   3  Normalizat    .74529        .22084        .13360E-04   -1.0213    
   4  Prefactor     .95822        .14385        .76873E-05   -.94135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67378e-10
Minuit parameter uncertainties:
  1  0.000220261
  2  4.33109
  3  0.221109
  4  0.14391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19798': 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) = 6450.62204263
delta logL = 7.44994395063e-08

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  2.203e-04  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.445e+00  4.331e+00  0.000e+00  1.000e+01 (-1.000e+00)
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.582e-01  1.439e-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.453e-01  2.211e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/19798/cmap_HighResolution_526003201_526262401_4FGL_J2334.2+0736_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.41e-08', time_completed='2021-09-29 23:48:36.168561', job_id='19798', GAL2='0.96', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632984516.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='7.45e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1106' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:48:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 19798: <4FGL_J2334.2+0736_daily_bin1106> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1106 353.557 7.602 526003201 526262401 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 :                                   651.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

