/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 210 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 = 7382
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2334.2+0736_daily_bin230
RA = 353.557, Dec = 7.602
tmin = 298944001, tmax = 299203201
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='16956', job_status='RUN', time_executed='2021-09-29 23:29:06.137491', time_epoch_executed='1632983346.14' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/16956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/16956/ft1_4FGL_J2334.2+0736_daily_bin230.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/16956/ft2_4FGL_J2334.2+0736_daily_bin230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/16956/ft1_4FGL_J2334.2+0736_daily_bin230.fits outfile=/scratch/kocevski/16956/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin230.fits ra=353.557 dec=7.602 rad=12.0 tmin=298944001.0 tmax=299203201.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.48
user 3.22
sys 0.22

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/16956/ft1_filtered_4FGL_J2334.2+0736_daily_bin230.fits evtable="EVENTS" scfile=/scratch/kocevski/16956/ft2_4FGL_J2334.2+0736_daily_bin230.fits sctable="SC_DATA" expcube=/scratch/kocevski/16956/ltcube_298944001_299203201_4FGL_J2334.2+0736_daily_bin230.fits outfile=/scratch/kocevski/16956/expmap_298944001_299203201_4FGL_J2334.2+0736_daily_bin230.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/16956/ltcube_298944001_299203201_4FGL_J2334.2+0736_daily_bin230.fits
.....................!
real 191.62
user 186.14
sys 4.92

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/16956/ft1_filtered_4FGL_J2334.2+0736_daily_bin230.fits scfile=/scratch/kocevski/16956/ft2_4FGL_J2334.2+0736_daily_bin230.fits outfile=/scratch/kocevski/16956/cmap_298944001_299203201_4FGL_J2334.2+0736_daily_bin230.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=353.557 yref=7.602 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/16956/ft1_filtered_4FGL_J2334.2+0736_daily_bin230.fits scfile=/scratch/kocevski/16956/ft2_4FGL_J2334.2+0736_daily_bin230.fits outfile=/scratch/kocevski/16956/cmap_HighResolution_298944001_299203201_4FGL_J2334.2+0736_daily_bin230.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=353.557 yref=7.602 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1109       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6360       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .53141E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2531       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.669       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    20.514       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6378       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13855E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.687       1.0000         .10000E-03   10000.    
    17 'norm      '    8.3085       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9163       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.4135       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.7460       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .68994       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1975       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=   6721.672     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2383 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7278       -.16223E-06** at limit **
   2  Prefactor     .10000E-03    9.5174       -.45503E-06** at limit **
   3  Prefactor     .10000E-03    8.7335        .13573E-06** at limit **
   4  Prefactor     4.1156        10.821       -.12172E-04   -.23295E-03
   5  Prefactor     1.6424        33.253        .18640E-04   -.11554E-03
   6  Prefactor     .10000E-03    12.976        .14582E-05** at limit **
   7  norm          .12298E-01    .48014       -.14474E-06    .13522E-04
   8  Prefactor     5.2555        13.271       -.10558E-05   -.92703E-04
   9  Prefactor     21.674        19.852        .43125E-06    .67484E-05
  10  Prefactor     .10000E-03    85.163        .28290E-05** at limit **
  11  norm          20.520        16.767        .11706E-05   -.46132E-04
  12  Prefactor     9.6400        11.673       -.27720E-05   -.13569E-03
  13  Prefactor     .10000E-03    1071.8       -.31047E-04** at limit **
  14  Prefactor     .10000E-03    4.5428       -.60954E-07** at limit **
  15  Prefactor     .10000E-03    18.847       -.56478E-05** at limit **
  16  norm          12.690        11.813        .22461E-06    .88015E-05
  17  norm          8.2904        20.750        .41991E-05   -.34259E-05
  18  Prefactor     4.9074        5.2517       -.72643E-06   -.38651E-03
  19  Prefactor     .10000E-03    15.416        .26156E-05** at limit **
  20  Prefactor     9.4208        18.587        .12647E-04   -.17649E-04
  21  Prefactor     7.7487        7.5940       -.15396E-05   -.74178E-04
  22  Prefactor     .10000E-03    4.2435        .57301E-07** at limit **
  23  Normalizat    .68984        .22676       -.54586E-06   -.32038E-04
  24  Prefactor     1.1973        .14762        .97535E-07   -.19108E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.11564
  Prefactor  = 1.64238
  Prefactor  = 0.0001
  norm       = 0.0122984
  Prefactor  = 5.25546
  Prefactor  = 21.6742
  Prefactor  = 0.0001
  norm       = 20.52
  Prefactor  = 9.63996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6896
  norm       = 8.29039
  Prefactor  = 4.90741
  Prefactor  = 0.0001
  Prefactor  = 9.42083
  Prefactor  = 7.74866
  Prefactor  = 0.0001
  Normalizat = 0.689838
  Prefactor  = 1.19728
 **********
 **   18 **HESSE 
 **********

 FCN=   6721.672     FROM HESSE     STATUS=OK           409 CALLS     2792 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.5184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1156        10.980        .19883E-03   -1.5302    
   5  Prefactor     1.6424        32.221        .33047E-03   -1.5452    
   6  Prefactor     .10000E-03    13.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .12298E-01    .74440        .20721E-01   -1.5686    
   8  Prefactor     5.2555        13.185        .17537E-03   -1.5249    
   9  Prefactor     21.674        19.849        .86046E-04   -1.4777    
  10  Prefactor     .10000E-03    85.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          20.520        16.614        .88432E-04   -1.4802    
  12  Prefactor     9.6400        11.641        .12908E-03   -1.5087    
  13  Prefactor     .10000E-03    1079.8        .18184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5474        .17054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.690        11.814        .11246E-03   -1.4995    
  17  norm          8.2904        20.694        .13908E-03   -1.5132    
  18  Prefactor     4.9074        5.2425        .17523E-03   -1.5265    
  19  Prefactor     .10000E-03    15.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.4208        18.484        .13062E-03   -1.5094    
  21  Prefactor     7.7487        7.5982        .14408E-03   -1.5151    
  22  Prefactor     .10000E-03    4.2447        .16494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .68984        .25100        .38589E-03   -1.0430    
  24  Prefactor     1.1973        .16545        .19851E-03   -.86415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02219e-10
Minuit parameter uncertainties:
  1  3.5137e-06
  2  1.03679e-05
  3  3.42787e-06
  4  10.9855
  5  14.5576
  6  1.10086e-05
  7  0.190586
  8  13.1919
  9  19.8555
  10  6.37021e-05
  11  16.6181
  12  11.6437
  13  0.000560724
  14  8.59687e-06
  15  8.05364e-06
  16  11.8167
  17  20.7123
  18  5.24301
  19  3.05274e-05
  20  18.4953
  21  7.59913
  22  8.28352e-07
  23  0.251414
  24  0.165524
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  8.054e-06  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.197e+00  1.655e-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:  6.898e-01  2.514e-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: 9.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/16956/likelihoodResults_298944001_299203201_4FGL_J2334.2+0736_daily_bin230.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) = 6721.67197902
delta logL = -0.000252128729699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6721.67172869
delta logL = -1.80188999366e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8793       1.0000          .0000       10.000    
     3 'Normalizat'    .68983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1973       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=   6721.672     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      276 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10637E-03    5.5107        .18142E-01** at limit **
   2  Index         2.7529        6.2345        .50000        .23688E-04
   3  Normalizat    .68984        .35002E-02    .38589E-03   -.58362E-04
   4  Prefactor     1.1973        .23299E-02    .19851E-03   -.10535E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106369
  Index      = 2.75286
  Normalizat = 0.689838
  Prefactor  = 1.19728
 **********
 **   18 **HESSE 
 **********

 FCN=   6721.672     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10637E-03    76.418        .29024E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7529        7.5233        .50000       -.46613    
   3  Normalizat    .68984        .12985E-01    .15436E-04   -1.0430    
   4  Prefactor     1.1973        .86438E-02    .39701E-04   -.86415    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04246e-08
Minuit parameter uncertainties:
  1  0.0441782
  2  323.312
  3  0.0129854
  4  0.00864381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/16956': 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) = 6721.67172821
delta logL = -1.31891556521e-06

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.064e-04  4.418e-02  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.753e+00  3.233e+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.197e+00  8.644e-03  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:  6.898e-01  1.299e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.557 7.602

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/16956/cmap_HighResolution_298944001_299203201_4FGL_J2334.2+0736_daily_bin230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-03', job_status='DONE', photon_flux_upper_limit='9.85e-08', time_completed='2021-09-29 23:40:18.771907', job_id='16956', GAL2='1.20', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1632984018.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='-1.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='230' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:40:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 16956: <4FGL_J2334.2+0736_daily_bin230> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin230> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:25:27 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:25:29 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:25:29 2021
Terminated at Wed Sep 29 23:40:19 2021
Results reported at Wed Sep 29 23:40:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin230 353.557 7.602 298944001 299203201 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 :                                   660.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

