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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin590
RA = 353.557, Dec = 7.602
tmin = 392256001, tmax = 392515201
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='17975', job_status='RUN', time_executed='2021-09-29 23:32:13.798198', time_epoch_executed='1632983533.8' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17975

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17975/ft1_4FGL_J2334.2+0736_daily_bin590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17975/ft2_4FGL_J2334.2+0736_daily_bin590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17975/ft1_4FGL_J2334.2+0736_daily_bin590.fits outfile=/scratch/kocevski/17975/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin590.fits ra=353.557 dec=7.602 rad=12.0 tmin=392256001.0 tmax=392515201.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.33
user 3.09
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17975/ft1_filtered_4FGL_J2334.2+0736_daily_bin590.fits" evtable="EVENTS" scfile=/scratch/kocevski/17975/ft2_4FGL_J2334.2+0736_daily_bin590.fits sctable="SC_DATA" outfile=/scratch/kocevski/17975/ltcube_392256001_392515201_4FGL_J2334.2+0736_daily_bin590.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/17975/ft2_4FGL_J2334.2+0736_daily_bin590.fits
.....................!
real 11.85
user 11.42
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17975/ft1_filtered_4FGL_J2334.2+0736_daily_bin590.fits evtable="EVENTS" scfile=/scratch/kocevski/17975/ft2_4FGL_J2334.2+0736_daily_bin590.fits sctable="SC_DATA" expcube=/scratch/kocevski/17975/ltcube_392256001_392515201_4FGL_J2334.2+0736_daily_bin590.fits outfile=/scratch/kocevski/17975/expmap_392256001_392515201_4FGL_J2334.2+0736_daily_bin590.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/17975/ltcube_392256001_392515201_4FGL_J2334.2+0736_daily_bin590.fits
.....................!
real 190.64
user 185.24
sys 5.05

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/17975/ft1_filtered_4FGL_J2334.2+0736_daily_bin590.fits scfile=/scratch/kocevski/17975/ft2_4FGL_J2334.2+0736_daily_bin590.fits outfile=/scratch/kocevski/17975/cmap_392256001_392515201_4FGL_J2334.2+0736_daily_bin590.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/17975/ft1_filtered_4FGL_J2334.2+0736_daily_bin590.fits scfile=/scratch/kocevski/17975/ft2_4FGL_J2334.2+0736_daily_bin590.fits outfile=/scratch/kocevski/17975/cmap_HighResolution_392256001_392515201_4FGL_J2334.2+0736_daily_bin590.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0427       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .70844       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4890       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.5984       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.929       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.308       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.5243       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .70407E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10675E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10423E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.445       1.0000         .10000E-03   10000.    
    19 'Prefactor '    103.36       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.297       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.9385       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .70628       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0208       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=   7819.030     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2760 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0335        26.226        .11189E-04   -.66847E-04
   2  Prefactor     .10000E-03    14.827       -.20251E-06** at limit **
   3  Prefactor     .67891        28.048        .51301E-05   -.21476E-03
   4  Prefactor     4.4904        4.4899        .46826E-06   -.11829E-03
   5  Prefactor     .10000E-03    2.1824        .51513E-08** at limit **
   6  Prefactor     .10000E-03    20.096        .11255E-05** at limit **
   7  norm          4.5980        1.1912        .31836E-07   -.22987E-03
   8  Prefactor     10.932        9.2411        .86274E-07   -.23895E-03
   9  Prefactor     15.314        16.211        .19798E-06   -.68908E-04
  10  Prefactor     .10000E-03    22.542       -.23150E-05** at limit **
  11  norm          4.5439        6.5534       -.11780E-05   -.71156E-03
  12  Prefactor     .10013E-03    4.2890        .96106E-06** at limit **
  13  Prefactor     .10000E-03    50.938       -.12222E-05** at limit **
  14  Prefactor     .10000E-03    6.6574       -.17615E-06** at limit **
  15  Prefactor     .10000E-03    12.061       -.21819E-06** at limit **
  16  norm          .10000E-03    12.010        .35725E-06** at limit **
  17  norm          .10000E-03    33.802        .72031E-06** at limit **
  18  Prefactor     11.445        4.8476        .27316E-07   -.43977E-03
  19  Prefactor     103.39        44.108        .62544E-06   -.84342E-04
  20  Prefactor     22.305        20.457        .75251E-06   -.11226E-03
  21  Prefactor     6.9374        6.9399        .21829E-06   -.73491E-04
  22  Prefactor     .10000E-03    7.0704       -.74805E-08** at limit **
  23  Normalizat    .70674        .19159       -.24563E-05   -.57428E-03
  24  Prefactor     1.0207        .11919       -.60732E-07   -.98561E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03349
  Prefactor  = 0.0001
  Prefactor  = 0.678912
  Prefactor  = 4.49037
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.598
  Prefactor  = 10.9317
  Prefactor  = 15.3136
  Prefactor  = 0.0001
  norm       = 4.54394
  Prefactor  = 0.000100131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.4452
  Prefactor  = 103.389
  Prefactor  = 22.305
  Prefactor  = 6.93743
  Prefactor  = 0.0001
  Normalizat = 0.706741
  Prefactor  = 1.02066
 **********
 **   18 **HESSE 
 **********

 FCN=   7819.030     FROM HESSE     STATUS=OK           411 CALLS     3171 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0335        26.086        .14466E-02   -1.5423    
   2  Prefactor     .10000E-03    14.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .67891        30.602        .11958       -1.5543    
   4  Prefactor     4.4904        4.4908        .91060E-03   -1.5284    
   5  Prefactor     .10000E-03    2.1835        .12757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.403        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.5980        1.1920        .47240E-04   -1.5279    
   8  Prefactor     10.932        9.2221        .12119E-03   -1.5047    
   9  Prefactor     15.314        16.209        .10237E-03   -1.4925    
  10  Prefactor     .10000E-03    22.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.5439        6.9504        .18927E-03   -1.5282    
  12  Prefactor     .10013E-03    14.100        .48458E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    50.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.6941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    33.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.445        4.8418        .11842E-03   -1.5031    
  19  Prefactor     103.39        44.273        .39549E-04   -1.3671    
  20  Prefactor     22.305        20.467        .84827E-04   -1.4763    
  21  Prefactor     6.9374        6.9407        .15231E-03   -1.5181    
  22  Prefactor     .10000E-03    7.1078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .70674        .21861        .34941E-03   -1.0363    
  24  Prefactor     1.0207        .13611        .19522E-03   -.92044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33876e-09
Minuit parameter uncertainties:
  1  14.5739
  2  2.26389e-05
  3  9.12049
  4  4.4911
  5  1.18523e-06
  6  0.000301569
  7  1.19196
  8  9.22328
  9  16.2134
  10  0.000191024
  11  6.95161
  12  0.00271717
  13  0.000151391
  14  2.16811e-05
  15  4.16145e-05
  16  2.81087e-05
  17  0.000259984
  18  4.84199
  19  44.2869
  20  20.4731
  21  6.94152
  22  6.76275e-07
  23  0.218881
  24  0.136156
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  4.161e-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.021e+00  1.362e-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.067e-01  2.189e-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.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17975/likelihoodResults_392256001_392515201_4FGL_J2334.2+0736_daily_bin590.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) = 7819.03037713
delta logL = -0.000394310458432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7819.0299831
delta logL = -2.75078491541e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4635       1.0000          .0000       10.000    
     3 'Normalizat'    .70671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0206       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=   7819.030     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      244 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    127.99        .18142E-02** at limit **
   2  Index         2.4405        7.9331        .50000        .41648E-05
   3  Normalizat    .70674        .15066E-01    .34941E-03    .45226E-05
   4  Prefactor     1.0207        .10037E-01    .19522E-03    .14151E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100188
  Index      = 2.44052
  Normalizat = 0.706743
  Prefactor  = 1.02066
 **********
 **   18 **HESSE 
 **********

 FCN=   7819.030     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10019E-03    566.06        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4405        7.2022        .50000       -.53739    
   3  Normalizat    .70674        .33320E-01    .13976E-04   -1.0363    
   4  Prefactor     1.0207        .22197E-01    .78089E-05   -.92044    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.12177e-09
Minuit parameter uncertainties:
  1  0.0208227
  2  903.405
  3  0.0333208
  4  0.0221971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17975': 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) = 7819.0299828
delta logL = 2.49192453339e-08

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.002e-04  2.082e-02  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.441e+00  9.034e+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.021e+00  2.220e-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:  7.067e-01  3.332e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/17975/cmap_HighResolution_392256001_392515201_4FGL_J2334.2+0736_daily_bin590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-09-29 23:44:24.212954', job_id='17975', GAL2='1.02', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632984264.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='590' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:44:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 17975: <4FGL_J2334.2+0736_daily_bin590> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin590 353.557 7.602 392256001 392515201 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 :                                   729.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

