/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 9 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2334.8+1432_daily_bin27
RA = 353.723, Dec = 14.5346
tmin = 246326401, tmax = 246585601
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='22575', job_status='RUN', time_executed='2021-09-29 23:45:38.305973', time_epoch_executed='1632984338.31' WHERE source_name='4FGL J2334.8+1432' and cadence='daily' and bin_id='27'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/22575

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/22575/ft1_4FGL_J2334.8+1432_daily_bin27.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/22575/ft2_4FGL_J2334.8+1432_daily_bin27.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/22575/ft1_4FGL_J2334.8+1432_daily_bin27.fits outfile=/scratch/kocevski/22575/ft1_filteredMKT_4FGL_J2334.8+1432_daily_bin27.fits ra=353.723 dec=14.5346 rad=12.0 tmin=246326401.0 tmax=246585601.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 1.46
user 1.29
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/22575/ft1_filtered_4FGL_J2334.8+1432_daily_bin27.fits evtable="EVENTS" scfile=/scratch/kocevski/22575/ft2_4FGL_J2334.8+1432_daily_bin27.fits sctable="SC_DATA" expcube=/scratch/kocevski/22575/ltcube_246326401_246585601_4FGL_J2334.8+1432_daily_bin27.fits outfile=/scratch/kocevski/22575/expmap_246326401_246585601_4FGL_J2334.8+1432_daily_bin27.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/22575/ltcube_246326401_246585601_4FGL_J2334.8+1432_daily_bin27.fits
.....................!
real 191.95
user 185.91
sys 5.69

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/22575/ft1_filtered_4FGL_J2334.8+1432_daily_bin27.fits scfile=/scratch/kocevski/22575/ft2_4FGL_J2334.8+1432_daily_bin27.fits outfile=/scratch/kocevski/22575/cmap_246326401_246585601_4FGL_J2334.8+1432_daily_bin27.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/22575/ft1_filtered_4FGL_J2334.8+1432_daily_bin27.fits scfile=/scratch/kocevski/22575/ft2_4FGL_J2334.8+1432_daily_bin27.fits outfile=/scratch/kocevski/22575/cmap_HighResolution_246326401_246585601_4FGL_J2334.8+1432_daily_bin27.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55394       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 '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.3904       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3433       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.084       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4848       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8430       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13831E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.204       1.0000         .10000E-03   10000.    
    13 'norm      '    26.277       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.129       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.3273       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.261       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.327       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.370       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88241       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0014       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=   10032.45     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2228 TOTAL
                     EDM=   .73E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55391        2.0420       -.13364E-06   -.98062E-04
   2  Prefactor     .10000E-03    5.0240       -.22596E-07** at limit **
   3  Prefactor     .10000E-03    6.2577       -.17752E-07** at limit **
   4  Prefactor     .10000E-03    12.240        .44613E-07** at limit **
   5  Prefactor     8.3906        15.475        .35202E-07   -.19278E-04
   6  Prefactor     4.3433        .31772       -.49114E-08    .86052E-04
   7  Prefactor     34.080        32.665       -.42264E-05   -.20678E-05
   8  Prefactor     2.4849        1.7058        .91356E-08   -.39006E-03
   9  Prefactor     .10000E-03    2.7023        .30080E-08** at limit **
  10  Prefactor     4.8431        6.7036        .18775E-07   -.16441E-05
  11  Prefactor     .10000E-03    3.9308        .12189E-06** at limit **
  12  Prefactor     42.203        22.317       -.74480E-06    .35082E-05
  13  norm          26.274        12.393       -.10276E-06   -.32186E-04
  14  Prefactor     10.129        9.7763        .14046E-06   -.92990E-04
  15  Prefactor     .10000E-03    13.507       -.18329E-07** at limit **
  16  norm          7.3273        18.109       -.56836E-06   -.95327E-06
  17  Prefactor     30.258        45.476       -.40181E-05   -.13307E-06
  18  Prefactor     15.327        15.893        .16537E-07    .33235E-05
  19  Prefactor     11.370        7.2904       -.13472E-06    .10389E-04
  20  Normalizat    .88242        .20509        .11978E-05   -.21435E-04
  21  Prefactor     1.0014        .11526       -.80183E-08    .29367E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.553909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.3906
  Prefactor  = 4.34327
  Prefactor  = 34.0804
  Prefactor  = 2.48487
  Prefactor  = 0.0001
  Prefactor  = 4.84308
  Prefactor  = 0.0001
  Prefactor  = 42.2032
  norm       = 26.2742
  Prefactor  = 10.1291
  Prefactor  = 0.0001
  norm       = 7.32729
  Prefactor  = 30.2579
  Prefactor  = 15.3273
  Prefactor  = 11.3696
  Normalizat = 0.882421
  Prefactor  = 1.00139
 **********
 **   18 **HESSE 
 **********

 FCN=   10032.45     FROM HESSE     STATUS=OK           329 CALLS     2557 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55391        2.0482        .26404E-03   -1.5559    
   2  Prefactor     .10000E-03    5.0526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.3392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.3906        15.503        .69199E-03   -1.5129    
   6  Prefactor     4.3433        .32026        .14501E-04   -1.5291    
   7  Prefactor     34.080        32.672        .68639E-04   -1.4540    
   8  Prefactor     2.4849        5.9223        .12967E-02   -1.5393    
   9  Prefactor     .10000E-03    2.7051        .16080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8431        6.6723        .18279E-03   -1.5268    
  11  Prefactor     .10000E-03    39.889        .37283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.203        22.266        .61707E-04   -1.4408    
  13  norm          26.274        12.170        .78148E-04   -1.4682    
  14  Prefactor     10.129        9.9205        .62951E-03   -1.5071    
  15  Prefactor     .10000E-03    13.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.3273        18.097        .14817E-03   -1.5167    
  17  Prefactor     30.258        45.496        .72835E-04   -1.4607    
  18  Prefactor     15.327        15.899        .10230E-03   -1.4925    
  19  Prefactor     11.370        7.2912        .11881E-03   -1.5033    
  20  Normalizat    .88242        .23227        .38739E-03   -.97081    
  21  Prefactor     1.0014        .13255        .22118E-03   -.92683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1598e-10
Minuit parameter uncertainties:
  1  2.0485
  2  2.76078e-06
  3  5.0844e-06
  4  2.67123e-07
  5  15.51
  6  0.320264
  7  32.689
  8  5.92368
  9  4.33674e-07
  10  6.67335
  11  4.27927e-05
  12  22.2703
  13  12.1707
  14  9.92209
  15  1.94254e-06
  16  18.1108
  17  45.5478
  18  15.9033
  19  7.29175
  20  0.232529
  21  0.132591
Done.

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

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  7.327e+00  1.811e+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.001e+00  1.326e-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:  8.824e-01  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 353.723 14.535
Photon Flux Upper Limit: 7.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/22575/likelihoodResults_246326401_246585601_4FGL_J2334.8+1432_daily_bin27.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): 0
logL (Free Index) = 10032.0224666
delta logL = 0.42324413272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10032.0134845
delta logL = 0.432226254394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1670       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5569       1.0000          .0000       5.0000    
     3 'Normalizat'    .83252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0205       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=   10032.01     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      336 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1586        22.305        .10636E-01    .36295E-03
   2  alpha         3.5614        4.0237        .31045        .58124E-04
   3  Normalizat    .83202        .45326E-01    .89784E-01   -.26802E-05
   4  Prefactor     1.0205        .27357E-01    .42092E-01   -.38989E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15863
  alpha      = 3.56139
  Normalizat = 0.832016
  Prefactor  = 1.02054
 **********
 **   18 **HESSE 
 **********

 FCN=   10032.01     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      369 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1586        65.211        .11172E-03   -1.5493    
   2  alpha         3.5614        3.7501        .16032E-01    .43847    
   3  Normalizat    .83202        .19104        .39771E-03   -.98892    
   4  Prefactor     1.0205        .11647        .21927E-03   -.92048    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.1501e-09
Minuit parameter uncertainties:
  1  17.4037
  2  6.71543
  3  0.191196
  4  0.1165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/22575': 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) = 10032.0134736
delta logL = 0.432237162368

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  1.159e+00  1.740e+01  1.000e-04  1.000e+04 ( 1.000e-13)
450        alpha:  3.561e+00  6.715e+00  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.021e+00  1.165e-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:  8.320e-01  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 353.723 14.535
Photon Index (Free Index): 3.56 +/- 6.72
Photon Flux (Free Index): 4.67e-08 +/- 5.14e-08
Energy Flux (Free Index): 8.30e-06 +/- 1.66e-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/22575/cmap_HighResolution_246326401_246585601_4FGL_J2334.8+1432_daily_bin27.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-05', comment='SUCCESS', energy_flux2='8.30e-06', dlogl='4.32e-01', photon_flux2='4.67e-08', job_status='DONE', time_completed='2021-09-29 23:59:31.963844', photon_index_error2='6.72', photon_index2='3.56', ts='0.19', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='7.17e-08', energy_flux_error2='1.66e-05', EG='0.88', time_epoch_completed='1632985171.96', return_code='0', job_id='22575', GAL2='1.02', EG2='0.83', return_code2='102', photon_flux_error2='5.14e-08', ts2='1.10', photon_index='1.90' WHERE bin_id='27' AND source_name='4FGL J2334.8+1432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:59:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 22575: <4FGL_J2334.8+1432_daily_bin27> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.8+1432_daily_bin27 353.723 14.5346 246326401 246585601 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 :                                   832.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            852 sec.

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

