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


Performing analysis on: 4FGL_J2334.8+1432_daily_bin748
RA = 353.723, Dec = 14.5346
tmin = 433209601, tmax = 433468801
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='25586', job_status='RUN', time_executed='2021-09-29 23:55:26.673276', time_epoch_executed='1632984926.67' WHERE source_name='4FGL J2334.8+1432' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25586

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25586/ft1_4FGL_J2334.8+1432_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25586/ft2_4FGL_J2334.8+1432_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25586/ft1_4FGL_J2334.8+1432_daily_bin748.fits outfile=/scratch/kocevski/25586/ft1_filteredMKT_4FGL_J2334.8+1432_daily_bin748.fits ra=353.723 dec=14.5346 rad=12.0 tmin=433209601.0 tmax=433468801.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.98
user 5.71
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25586/ft1_filtered_4FGL_J2334.8+1432_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/25586/ft2_4FGL_J2334.8+1432_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/25586/ltcube_433209601_433468801_4FGL_J2334.8+1432_daily_bin748.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/25586/ft2_4FGL_J2334.8+1432_daily_bin748.fits
.....................!
real 12.05
user 11.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25586/ft1_filtered_4FGL_J2334.8+1432_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/25586/ft2_4FGL_J2334.8+1432_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/25586/ltcube_433209601_433468801_4FGL_J2334.8+1432_daily_bin748.fits outfile=/scratch/kocevski/25586/expmap_433209601_433468801_4FGL_J2334.8+1432_daily_bin748.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/25586/ltcube_433209601_433468801_4FGL_J2334.8+1432_daily_bin748.fits
.....................!
real 190.10
user 185.31
sys 4.38

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/25586/ft1_filtered_4FGL_J2334.8+1432_daily_bin748.fits scfile=/scratch/kocevski/25586/ft2_4FGL_J2334.8+1432_daily_bin748.fits outfile=/scratch/kocevski/25586/cmap_433209601_433468801_4FGL_J2334.8+1432_daily_bin748.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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/25586/ft1_filtered_4FGL_J2334.8+1432_daily_bin748.fits scfile=/scratch/kocevski/25586/ft2_4FGL_J2334.8+1432_daily_bin748.fits outfile=/scratch/kocevski/25586/cmap_HighResolution_433209601_433468801_4FGL_J2334.8+1432_daily_bin748.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.55
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/25586/ft1_filtered_4FGL_J2334.8+1432_daily_bin748.fits', '/scratch/kocevski/25586/ft2_4FGL_J2334.8+1432_daily_bin748.fits', expMap='/scratch/kocevski/25586/expmap_433209601_433468801_4FGL_J2334.8+1432_daily_bin748.fits', expCube='/scratch/kocevski/25586/ltcube_433209601_433468801_4FGL_J2334.8+1432_daily_bin748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/25586/Model_4FGL_J2334.8+1432_daily_bin748.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/25586/ft1_filtered_4FGL_J2334.8+1432_daily_bin748.fits
Spacecraft file(s): /scratch/kocevski/25586/ft2_4FGL_J2334.8+1432_daily_bin748.fits
Exposure map: /scratch/kocevski/25586/expmap_433209601_433468801_4FGL_J2334.8+1432_daily_bin748.fits
Exposure cube: /scratch/kocevski/25586/ltcube_433209601_433468801_4FGL_J2334.8+1432_daily_bin748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/25586/Model_4FGL_J2334.8+1432_daily_bin748.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) = 4579.96959984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6851       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.560       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .78049E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5539       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8783       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.474       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10834E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7759       1.0000         .10000E-03   10000.    
    15 'Prefactor '    78.567       1.0000         .10000E-03   10000.    
    16 'norm      '    20.256       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.091       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.388       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0335       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .72507       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78139       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.

 FCN=   4579.943     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2195 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6845        3.5221        .16203E-06   -.34999E-05
   2  Prefactor     .10000E-03    6.5591       -.72663E-06** at limit **
   3  Prefactor     25.564        17.382       -.21670E-06   -.33158E-04
   4  Prefactor     .10000E-03    35.359       -.55372E-09** at limit **
   5  Prefactor     .10000E-03    423.82       -.18032E-05** at limit **
   6  Prefactor     7.5520        .70042       -.35446E-07   -.47759E-03
   7  Prefactor     .10000E-03    15.217        .11803E-07** at limit **
   8  Prefactor     .10000E-03    6.8860       -.19849E-07** at limit **
   9  Prefactor     5.8736        14.310        .79700E-07   -.91965E-05
  10  Prefactor     34.477        15.906       -.22284E-07   -.59680E-04
  11  Prefactor     .10000E-03    10.412        .43736E-06** at limit **
  12  Prefactor     .10000E-03    12.413       -.31330E-06** at limit **
  13  norm          .10000E-03    3.8665        .40438E-07** at limit **
  14  Prefactor     6.7742        10.050        .36913E-05    .15055E-03
  15  Prefactor     78.578        44.292       -.80681E-06    .28518E-06
  16  norm          20.256        17.758       -.22046E-06   -.15433E-04
  17  Prefactor     27.838        92.117       -.14499E-05   -.29673E-04
  18  Prefactor     19.313        40.053       -.71402E-06    .75486E-05
  19  Prefactor     9.0334        8.7450        .47546E-07   -.11773E-04
  20  Normalizat    .72496        .31155        .53374E-05   -.69030E-04
  21  Prefactor     .78147        .17203       -.38027E-05    .69292E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.6845
  Prefactor  = 0.0001
  Prefactor  = 25.5638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.55204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.87357
  Prefactor  = 34.4768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.77419
  Prefactor  = 78.5782
  norm       = 20.2559
  Prefactor  = 27.8384
  Prefactor  = 19.3133
  Prefactor  = 9.03343
  Normalizat = 0.724956
  Prefactor  = 0.781474
 **********
 **   18 **HESSE 
 **********

 FCN=   4579.943     FROM HESSE     STATUS=OK           317 CALLS     2512 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6845        3.5061        .13829E-03   -1.5380    
   2  Prefactor     .10000E-03    6.5736        .16926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.564        17.421        .79236E-04   -1.4696    
   4  Prefactor     .10000E-03    35.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    436.18        .37039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.5520        .69996        .16475E-04   -1.5158    
   7  Prefactor     .10000E-03    15.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8995        .17342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8736        14.297        .16564E-03   -1.5223    
  10  Prefactor     34.477        15.906        .68251E-04   -1.4533    
  11  Prefactor     .10000E-03    10.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.8673        .12991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7742        10.397        .77071E-03   -1.5187    
  15  Prefactor     78.578        44.282        .45307E-04   -1.3933    
  16  norm          20.256        17.762        .88993E-04   -1.4808    
  17  Prefactor     27.838        92.513        .75588E-04   -1.4652    
  18  Prefactor     19.313        39.998        .90961E-04   -1.4829    
  19  Prefactor     9.0334        8.7444        .13335E-03   -1.5107    
  20  Normalizat    .72496        .34046        .40428E-03   -1.0292    
  21  Prefactor     .78147        .18649        .22959E-03   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51926e-10
Minuit parameter uncertainties:
  1  3.50642
  2  1.20282e-05
  3  17.4246
  4  1.73529e-06
  5  0.000389687
  6  0.699961
  7  8.87857e-07
  8  4.37197e-07
  9  14.3057
  10  15.9083
  11  4.89677e-07
  12  1.15598e-05
  13  1.29016e-05
  14  10.3994
  15  44.3006
  16  17.7667
  17  92.9955
  18  40.0539
  19  8.7456
  20  0.341458
  21  0.186643
Done.

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

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  2.026e+01  1.777e+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:  7.815e-01  1.866e-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:  7.250e-01  3.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.76
Ra Dec: 353.723 14.535
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 2.95e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 2.19e-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) = 4579.66344637
delta logL = 0.279958084592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4579.66315816
delta logL = 0.280246296446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.256       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3920       1.0000          .0000       5.0000    
     3 'Normalizat'    .73445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78065       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=   4579.663     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      202 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.395        20.124        .22248E-02   -.13129E-03
   2  alpha         1.3937        .60258        .41545        .31673E-04
   3  Normalizat    .73446        .27235        .90693E-01    .52288E-04
   4  Prefactor     .78059        .16107        .43465E-01    .10090E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.3951
  alpha      = 1.39372
  Normalizat = 0.734461
  Prefactor  = 0.780594
 **********
 **   18 **HESSE 
 **********

 FCN=   4579.663     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.395        19.283        .88993E-04   -1.4804    
   2  alpha         1.3937        .64464        .16359E-01   -.45840    
   3  Normalizat    .73446        .30966        .40186E-03   -1.0255    
   4  Prefactor     .78059        .18421        .22974E-03   -1.0045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47448e-10
Minuit parameter uncertainties:
  1  19.2893
  2  0.653866
  3  0.310407
  4  0.184352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25586': 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) = 4579.66313257
delta logL = 0.280271878849

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  2.040e+01  1.929e+01  1.000e-04  1.000e+04 ( 1.000e-13)
450        alpha:  1.394e+00  6.539e-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:  7.806e-01  1.844e-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:  7.345e-01  3.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.31
Ra Dec: 353.723 14.535
Photon Index (Free Index): 1.39 +/- 0.65
Photon Flux (Free Index): 1.68e-08 +/- 1.94e-08
Energy Flux (Free Index): 5.02e-05 +/- 6.92e-05

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/25586/cmap_HighResolution_433209601_433468801_4FGL_J2334.8+1432_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.95e-08', energy_flux2='5.02e-05', photon_flux_error='2.59e-08', dlogl='2.80e-01', energy_flux='2.50e-05', photon_flux2='1.68e-08', job_status='DONE', time_completed='2021-09-30 00:04:00.479192', photon_index_error2='0.65', photon_index2='1.39', ts='6.76', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='6.92e-05', EG='0.72', time_epoch_completed='1632985440.48', return_code='0', job_id='25586', GAL2='0.78', EG2='0.73', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='1.94e-08', ts2='7.31', photon_index='1.90' WHERE bin_id='748' AND source_name='4FGL J2334.8+1432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:04:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 25586: <4FGL_J2334.8+1432_daily_bin748> in cluster <slac> Done

Job <4FGL_J2334.8+1432_daily_bin748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:55:14 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:55: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:55:15 2021
Terminated at Thu Sep 30 00:04:01 2021
Results reported at Thu Sep 30 00:04:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.8+1432_daily_bin748 353.723 14.5346 433209601 433468801 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 :                                   511.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            527 sec.

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

