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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1625
RA = 352.629, Dec = 11.0479
tmin = 660528001, tmax = 660787201
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='107463', job_status='RUN', time_executed='2021-12-10 00:44:23.607468', time_epoch_executed='1639125863.61' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107463

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107463/ft1_4FGL_J2330.5+1102_daily_bin1625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107463/ft2_4FGL_J2330.5+1102_daily_bin1625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107463/ft1_4FGL_J2330.5+1102_daily_bin1625.fits outfile=/scratch/kocevski/107463/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1625.fits ra=352.629 dec=11.0479 rad=12.0 tmin=660528001.0 tmax=660787201.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.56
user 3.34
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/107463/ft2_4FGL_J2330.5+1102_daily_bin1625.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107463/ft2_4FGL_J2330.5+1102_daily_bin1625.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/107463/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1625.fits evtable="EVENTS" outfile="/scratch/kocevski/107463/ft1_filtered_4FGL_J2330.5+1102_daily_bin1625.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107463/ft1_filtered_4FGL_J2330.5+1102_daily_bin1625.fits" evtable="EVENTS" scfile=/scratch/kocevski/107463/ft2_4FGL_J2330.5+1102_daily_bin1625.fits sctable="SC_DATA" outfile=/scratch/kocevski/107463/ltcube_660528001_660787201_4FGL_J2330.5+1102_daily_bin1625.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/107463/ft2_4FGL_J2330.5+1102_daily_bin1625.fits
.....................!
real 11.84
user 11.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107463/ft1_filtered_4FGL_J2330.5+1102_daily_bin1625.fits evtable="EVENTS" scfile=/scratch/kocevski/107463/ft2_4FGL_J2330.5+1102_daily_bin1625.fits sctable="SC_DATA" expcube=/scratch/kocevski/107463/ltcube_660528001_660787201_4FGL_J2330.5+1102_daily_bin1625.fits outfile=/scratch/kocevski/107463/expmap_660528001_660787201_4FGL_J2330.5+1102_daily_bin1625.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/107463/ltcube_660528001_660787201_4FGL_J2330.5+1102_daily_bin1625.fits
.....................!
real 193.06
user 187.49
sys 5.24

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

Setting source of interest to:
4FGL J2330.5+1102 @ 352.629 11.0479

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/107463/ft1_filtered_4FGL_J2330.5+1102_daily_bin1625.fits scfile=/scratch/kocevski/107463/ft2_4FGL_J2330.5+1102_daily_bin1625.fits outfile=/scratch/kocevski/107463/cmap_660528001_660787201_4FGL_J2330.5+1102_daily_bin1625.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=352.629 yref=11.0479 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107463/ft1_filtered_4FGL_J2330.5+1102_daily_bin1625.fits scfile=/scratch/kocevski/107463/ft2_4FGL_J2330.5+1102_daily_bin1625.fits outfile=/scratch/kocevski/107463/cmap_HighResolution_660528001_660787201_4FGL_J2330.5+1102_daily_bin1625.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=352.629 yref=11.0479 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/107463/ft1_filtered_4FGL_J2330.5+1102_daily_bin1625.fits evtable="EVENTS" scfile=/scratch/kocevski/107463/ft2_4FGL_J2330.5+1102_daily_bin1625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/107463/Model_4FGL_J2330.5+1102_daily_bin1625.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/107463/ft1_filtered_4FGL_J2330.5+1102_daily_bin1625.fits.....................!
real 69.46
user 68.15
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/107463/ft1_filtered_4FGL_J2330.5+1102_daily_bin1625.fits', '/scratch/kocevski/107463/ft2_4FGL_J2330.5+1102_daily_bin1625.fits', expMap='/scratch/kocevski/107463/expmap_660528001_660787201_4FGL_J2330.5+1102_daily_bin1625.fits', expCube='/scratch/kocevski/107463/ltcube_660528001_660787201_4FGL_J2330.5+1102_daily_bin1625.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/107463/Model_4FGL_J2330.5+1102_daily_bin1625.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2330.5+1102'

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  2.056e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.787e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/107463/ft1_filtered_4FGL_J2330.5+1102_daily_bin1625.fits
Spacecraft file(s): /scratch/kocevski/107463/ft2_4FGL_J2330.5+1102_daily_bin1625.fits
Exposure map: /scratch/kocevski/107463/expmap_660528001_660787201_4FGL_J2330.5+1102_daily_bin1625.fits
Exposure cube: /scratch/kocevski/107463/ltcube_660528001_660787201_4FGL_J2330.5+1102_daily_bin1625.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/107463/Model_4FGL_J2330.5+1102_daily_bin1625.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) = 6293.04807654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .77975       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.342       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2591       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.789       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.204       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.560       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23605       1.0000         .10000E-03   10000.    
    15 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.230       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .74262       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98928       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6293.042     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2109 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.732       -.20250E-05** at limit **
   2  Prefactor     .10000E-03    10.295        .12103E-06** at limit **
   3  Prefactor     .77986        .18073        .17368E-07   -.40159E-03
   4  Prefactor     32.315        37.597        .56203E-05   -.53817E-05
   5  Prefactor     .10000E-03    3.1980        .10765E-07** at limit **
   6  Prefactor     .10000E-03    3.2129        .10726E-07** at limit **
   7  Prefactor     .10000E-03    5.6720       -.24828E-07** at limit **
   8  Prefactor     5.2589        5.1951        .29449E-07   -.36050E-03
   9  Prefactor     31.784        13.556       -.65556E-07    .39455E-04
  10  Prefactor     .10000E-03    4.3245       -.63762E-07** at limit **
  11  Prefactor     28.243        52.866        .52251E-05   -.41478E-05
  12  norm          .10000E-03    4.3260        .29802E-07** at limit **
  13  Prefactor     15.562        8.4492        .51918E-06   -.23480E-04
  14  Prefactor     .10000E-03    27.728       -.54274E-06** at limit **
  15  norm          .10000E-03    11.294        .11529E-06** at limit **
  16  Prefactor     21.223        29.775        .11009E-04   -.71536E-05
  17  Prefactor     .10000E-03    16.668        .18574E-05** at limit **
  18  Prefactor     .10000E-03    6.5566        .15433E-06** at limit **
  19  Normalizat    .74258        .20579       -.29667E-05    .11811E-04
  20  Prefactor     .98934        .12509        .10204E-06   -.60183E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.779855
  Prefactor  = 32.3148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.25889
  Prefactor  = 31.784
  Prefactor  = 0.0001
  Prefactor  = 28.2434
  norm       = 0.0001
  Prefactor  = 15.5619
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.2233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.742577
  Prefactor  = 0.989341
 **********
 **   18 **HESSE 
 **********

 FCN=   6293.042     FROM HESSE     STATUS=OK           299 CALLS     2408 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    69.094        .48527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .77986        .17747        .15281E-04   -1.5531    
   4  Prefactor     32.315        37.577        .70458E-04   -1.4570    
   5  Prefactor     .10000E-03    3.2175        .13850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2168        .13887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2589        5.1891        .17148E-03   -1.5249    
   9  Prefactor     31.784        13.557        .71067E-04   -1.4580    
  10  Prefactor     .10000E-03    4.3272        .16110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.243        52.828        .75437E-04   -1.4645    
  12  norm          .10000E-03    4.3408        .16090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.562        8.4566        .10154E-03   -1.4919    
  14  Prefactor     .10000E-03    35.343        .10305       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.223        29.723        .86930E-04   -1.4786    
  17  Prefactor     .10000E-03    16.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.6692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .74258        .23734        .33522E-03   -1.0224    
  20  Prefactor     .98934        .14562        .18678E-03   -.93086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11791e-10
Minuit parameter uncertainties:
  1  4.55129e-06
  2  0.00056799
  3  0.177473
  4  37.6044
  5  5.41397e-06
  6  3.00371e-07
  7  3.58006e-06
  8  5.18952
  9  13.5584
  10  4.08488e-06
  11  52.9159
  12  4.85982e-06
  13  8.45727
  14  0.000170778
  15  1.49036e-05
  16  29.7436
  17  3.13162e-05
  18  3.06588e-05
  19  0.237667
  20  0.145674
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.556e+01  8.457e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.787e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.893e-01  1.457e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.426e-01  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.10
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 5.92e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.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) = 6293.04108948
delta logL = 0.00129104499592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6293.03812577
delta logL = 0.00425476219152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.512       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8712       1.0000          .0000       10.000    
     3 'Normalizat'    .73659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99252       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6293.038     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      210 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.519        124.45        .26285E-02    .13334E-03
   2  Index         2.8714        3.7054        .18494        .10746E-03
   3  Normalizat    .73639        .84863E-01    .76010E-01    .82237E-04
   4  Prefactor     .99258        .47761E-01    .46173E-01    .95594E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5185
  Index      = 2.87136
  Normalizat = 0.736386
  Prefactor  = 0.992582
 **********
 **   18 **HESSE 
 **********

 FCN=   6293.038     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.519        16.216        .10514E-03   -1.4946    
   2  Index         2.8714        1.0761        .63978E-02   -.43977    
   3  Normalizat    .73639        .24244        .33647E-03   -1.0247    
   4  Prefactor     .99258        .15091        .18652E-03   -.92977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43922e-11
Minuit parameter uncertainties:
  1  16.2209
  2  1.08652
  3  0.242793
  4  0.150978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107463': 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) = 6293.0381249
delta logL = 0.00425562301552

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.452e+01  1.622e+01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.871e+00  1.087e+00  0.000e+00  1.000e+01 (-1.000e+00)
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.926e-01  1.510e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.364e-01  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.13
Ra Dec: 352.629 11.048
Photon Index (Free Index): 2.87 +/- 1.09
Photon Flux (Free Index): 1.13e-07 +/- 6.92e-08
Energy Flux (Free Index): 2.41e-05 +/- 1.50e-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/107463/cmap_HighResolution_660528001_660787201_4FGL_J2330.5+1102_daily_bin1625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='2.41e-05', photon_flux_error='5.92e-08', dlogl='4.26e-03', energy_flux='2.47e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-12-10 00:53:26.219951', photon_index_error2='1.09', photon_index2='2.87', ts='6.10', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='0.74', time_epoch_completed='1639126406.22', return_code='0', job_id='107463', GAL2='0.99', EG2='0.74', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='6.92e-08', ts2='6.13', photon_index='2.79' WHERE bin_id='1625' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 10 00:53:26 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 107463: <4FGL_J2330.5+1102_daily_bin1625> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1625> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 10 00:40:37 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 10 00:40:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 10 00:40:39 2021
Terminated at Fri Dec 10 00:53:27 2021
Results reported at Fri Dec 10 00:53:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1625 352.629 11.0479 660528001 660787201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2330.5+1102 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   545.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             257.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            770 sec.

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

