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


Performing analysis on: 4FGL_J2334.8+1432_daily_bin239
RA = 353.723, Dec = 14.5346
tmin = 301276801, tmax = 301536001
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='22909', job_status='RUN', time_executed='2021-09-29 23:46:07.869005', time_epoch_executed='1632984367.87' WHERE source_name='4FGL J2334.8+1432' and cadence='daily' and bin_id='239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/22909

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/22909/ft1_4FGL_J2334.8+1432_daily_bin239.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/22909/ft2_4FGL_J2334.8+1432_daily_bin239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/22909/ft1_4FGL_J2334.8+1432_daily_bin239.fits outfile=/scratch/kocevski/22909/ft1_filteredMKT_4FGL_J2334.8+1432_daily_bin239.fits ra=353.723 dec=14.5346 rad=12.0 tmin=301276801.0 tmax=301536001.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 5.05
user 4.28
sys 0.72

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/22909/ft2_4FGL_J2334.8+1432_daily_bin239.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/22909/ft2_4FGL_J2334.8+1432_daily_bin239.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/22909/ft1_filteredMKT_4FGL_J2334.8+1432_daily_bin239.fits evtable="EVENTS" outfile="/scratch/kocevski/22909/ft1_filtered_4FGL_J2334.8+1432_daily_bin239.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/22909/ft1_filtered_4FGL_J2334.8+1432_daily_bin239.fits" evtable="EVENTS" scfile=/scratch/kocevski/22909/ft2_4FGL_J2334.8+1432_daily_bin239.fits sctable="SC_DATA" outfile=/scratch/kocevski/22909/ltcube_301276801_301536001_4FGL_J2334.8+1432_daily_bin239.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/22909/ft2_4FGL_J2334.8+1432_daily_bin239.fits
.....................!
real 11.56
user 11.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/22909/ft1_filtered_4FGL_J2334.8+1432_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/22909/ft2_4FGL_J2334.8+1432_daily_bin239.fits sctable="SC_DATA" expcube=/scratch/kocevski/22909/ltcube_301276801_301536001_4FGL_J2334.8+1432_daily_bin239.fits outfile=/scratch/kocevski/22909/expmap_301276801_301536001_4FGL_J2334.8+1432_daily_bin239.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/22909/ltcube_301276801_301536001_4FGL_J2334.8+1432_daily_bin239.fits
.....................!
real 192.80
user 187.34
sys 5.15

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2334.8+1432 @ 353.723 14.5346

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/22909/ft1_filtered_4FGL_J2334.8+1432_daily_bin239.fits scfile=/scratch/kocevski/22909/ft2_4FGL_J2334.8+1432_daily_bin239.fits outfile=/scratch/kocevski/22909/cmap_301276801_301536001_4FGL_J2334.8+1432_daily_bin239.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.723 yref=14.5346 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/22909/ft1_filtered_4FGL_J2334.8+1432_daily_bin239.fits scfile=/scratch/kocevski/22909/ft2_4FGL_J2334.8+1432_daily_bin239.fits outfile=/scratch/kocevski/22909/cmap_HighResolution_301276801_301536001_4FGL_J2334.8+1432_daily_bin239.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.723 yref=14.5346 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/22909/ft1_filtered_4FGL_J2334.8+1432_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/22909/ft2_4FGL_J2334.8+1432_daily_bin239.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/22909/Model_4FGL_J2334.8+1432_daily_bin239.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/22909/ft1_filtered_4FGL_J2334.8+1432_daily_bin239.fits....................!
real 97.34
user 95.96
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/22909/ft1_filtered_4FGL_J2334.8+1432_daily_bin239.fits', '/scratch/kocevski/22909/ft2_4FGL_J2334.8+1432_daily_bin239.fits', expMap='/scratch/kocevski/22909/expmap_301276801_301536001_4FGL_J2334.8+1432_daily_bin239.fits', expCube='/scratch/kocevski/22909/ltcube_301276801_301536001_4FGL_J2334.8+1432_daily_bin239.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/22909/Model_4FGL_J2334.8+1432_daily_bin239.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2334.8+1432'

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  4.331e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
450        alpha:  1.902e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
451         beta:  8.816e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
452           Eb:  1.535e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/22909/ft1_filtered_4FGL_J2334.8+1432_daily_bin239.fits
Spacecraft file(s): /scratch/kocevski/22909/ft2_4FGL_J2334.8+1432_daily_bin239.fits
Exposure map: /scratch/kocevski/22909/expmap_301276801_301536001_4FGL_J2334.8+1432_daily_bin239.fits
Exposure cube: /scratch/kocevski/22909/ltcube_301276801_301536001_4FGL_J2334.8+1432_daily_bin239.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/22909/Model_4FGL_J2334.8+1432_daily_bin239.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) = 8658.77295854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.3328       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7094       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5822       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24379       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7106       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.931       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6133       1.0000         .10000E-03   10000.    
    13 'norm      '    .12184E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4747       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13623E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    38.527       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.530       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3083       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .69721       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2894       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5270E+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=   8658.719     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     2657 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3334        3.9808        .11930E-03    .27064E-04
   2  Prefactor     .10000E-03    11.280        .18142E-02** at limit **
   3  Prefactor     7.7062        11.896        .14442E-03    .14012E-04
   4  Prefactor     .10000E-03    39.219        .18142E-02** at limit **
   5  Prefactor     .10000E-03    20.980        .18142E-02** at limit **
   6  Prefactor     4.5823        .38359        .15787E-04    .24485E-04
   7  Prefactor     .19992        22.678        .14632        .14030E-03
   8  Prefactor     6.7102        9.6697        .15490E-03    .16734E-04
   9  Prefactor     .10000E-03    4.3768        .18142E-02** at limit **
  10  Prefactor     .10000E-03    10.383        .33952E-02** at limit **
  11  Prefactor     13.915        15.126        .10732E-03    .22035E-04
  12  Prefactor     4.6151        14.321        .18739E-03    .30940E-04
  13  norm          .10001E-03    10.832        .65424E-01** at limit **
  14  Prefactor     7.4712        9.1443        .14669E-03    .17050E-05
  15  Prefactor     .10000E-03    31.260        .12811    ** at limit **
  16  norm          38.525        19.029        .64574E-04    .19578E-04
  17  Prefactor     .10000E-03    34.951        .18142E-02** at limit **
  18  Prefactor     13.555        30.392        .10889E-03    .84148E-04
  19  Prefactor     4.3074        8.1162        .19408E-03   -.13824E-04
  20  Normalizat    .69720        .28323        .46266E-03    .28308E-04
  21  Prefactor     1.2894        .16286        .21625E-03    .22753E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.33342
  Prefactor  = 0.0001
  Prefactor  = 7.70624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.58225
  Prefactor  = 0.199916
  Prefactor  = 6.7102
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 13.915
  Prefactor  = 4.61512
  norm       = 0.000100008
  Prefactor  = 7.47119
  Prefactor  = 0.000100002
  norm       = 38.5254
  Prefactor  = 0.0001
  Prefactor  = 13.5545
  Prefactor  = 4.30742
  Normalizat = 0.697198
  Prefactor  = 1.28937
 **********
 **   18 **HESSE 
 **********

 FCN=   8658.719     FROM HESSE     STATUS=OK           325 CALLS     2982 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3334        3.9805        .47720E-05   -1.5131    
   2  Prefactor     .10000E-03    11.282        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.7062        11.896        .57769E-05   -1.5153    
   4  Prefactor     .10000E-03    39.222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5823        .38358        .63147E-06   -1.5280    
   7  Prefactor     .19992        22.509        .14734       -1.5619    
   8  Prefactor     6.7102        9.6692        .61959E-05   -1.5190    
   9  Prefactor     .10000E-03    4.3770        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.450        .67904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.915        15.100        .42926E-05   -1.4962    
  12  Prefactor     4.6151        14.318        .74958E-05   -1.5278    
  13  norm          .10001E-03    9.2582        .72930E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.4712        9.1261        .58677E-05   -1.5161    
  15  Prefactor     .10000E-03    31.362        .12785       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          38.525        19.029        .12915E-04   -1.4466    
  17  Prefactor     .10000E-03    34.952        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.555        30.366        .43557E-05   -1.4971    
  19  Prefactor     4.3074        8.1151        .77634E-05   -1.5293    
  20  Normalizat    .69720        .28334        .18506E-04   -1.0400    
  21  Prefactor     1.2894        .16295        .43251E-04   -.83624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81259e-10
Minuit parameter uncertainties:
  1  3.98066
  2  2.01329e-06
  3  11.8995
  4  4.41476e-05
  5  1.97561e-05
  6  0.383583
  7  4.2432
  8  9.67142
  9  4.70987e-06
  10  0.000275373
  11  15.1045
  12  14.3289
  13  0.000549251
  14  9.1278
  15  0.000525949
  16  19.0316
  17  3.87293e-05
  18  30.4001
  19  8.11716
  20  0.283932
  21  0.163015
Done.

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

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  3.853e+01  1.903e+01  1.000e-04  1.000e+04 ( 1.000e-13)
450        alpha:  1.902e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
451         beta:  8.816e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
452           Eb:  1.535e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  1.289e+00  1.630e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  6.972e-01  2.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.28
Ra Dec: 353.723 14.535
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 5.61e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 4.75e-05 +/- 2.34e-05

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) = 8658.71868526
delta logL = 0.000407266124967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8658.71865079
delta logL = 0.000441739312009

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    38.622       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8872       1.0000          .0000       5.0000    
     3 'Normalizat'    .69825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2892       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8658.719     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      235 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          38.656        447.86        .16123E-02   -.13200E-04
   2  alpha         1.8882        3.0880        .26404        .48311E-04
   3  Normalizat    .69814        .26343        .10428        .50033E-04
   4  Prefactor     1.2892        .89980E-01    .48927E-01    .53575E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 38.6564
  alpha      = 1.88819
  Normalizat = 0.698142
  Prefactor  = 1.28916
 **********
 **   18 **HESSE 
 **********

 FCN=   8658.719     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          38.656        19.749        .64494E-04   -1.4464    
   2  alpha         1.8882        .44956        .13401E-01   -.24724    
   3  Normalizat    .69814        .26155        .46237E-03   -1.0397    
   4  Prefactor     1.2892        .16160        .21627E-03   -.83630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5524e-09
Minuit parameter uncertainties:
  1  19.7526
  2  0.45218
  3  0.262013
  4  0.161667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/22909': 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) = 8658.71864584
delta logL = 0.000446684965937

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  3.866e+01  1.975e+01  1.000e-04  1.000e+04 ( 1.000e-13)
450        alpha:  1.888e+00  4.522e-01  0.000e+00  5.000e+00 ( 1.000e+00)
451         beta:  8.816e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
452           Eb:  1.535e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  1.289e+00  1.617e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  6.981e-01  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.22
Ra Dec: 353.723 14.535
Photon Index (Free Index): 1.89 +/- 0.45
Photon Flux (Free Index): 5.52e-08 +/- 4.02e-08
Energy Flux (Free Index): 4.80e-05 +/- 3.16e-05

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/22909/cmap_HighResolution_301276801_301536001_4FGL_J2334.8+1432_daily_bin239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.61e-08', energy_flux2='4.80e-05', photon_flux_error='2.77e-08', dlogl='4.47e-04', energy_flux='4.75e-05', photon_flux2='5.52e-08', job_status='DONE', time_completed='2021-09-29 23:58:08.305471', photon_index_error2='0.45', photon_index2='1.89', ts='13.28', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='3.16e-05', EG='0.70', time_epoch_completed='1632985088.31', return_code='0', job_id='22909', GAL2='1.29', EG2='0.70', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='4.02e-08', ts2='13.22', photon_index='1.90' WHERE bin_id='239' AND source_name='4FGL J2334.8+1432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:58:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 22909: <4FGL_J2334.8+1432_daily_bin239> in cluster <slac> Done

Job <4FGL_J2334.8+1432_daily_bin239> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 23:45:50 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:45:51 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:45:51 2021
Terminated at Wed Sep 29 23:58:09 2021
Results reported at Wed Sep 29 23:58:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.8+1432_daily_bin239 353.723 14.5346 301276801 301536001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2334.8+1432 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   717.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            739 sec.

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

