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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1624
RA = 352.629, Dec = 11.0479
tmin = 660268801, tmax = 660528001
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='502675', job_status='RUN', time_executed='2021-12-08 09:38:53.541168', time_epoch_executed='1638985133.54' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502675

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502675/ft1_4FGL_J2330.5+1102_daily_bin1624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502675/ft2_4FGL_J2330.5+1102_daily_bin1624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502675/ft1_4FGL_J2330.5+1102_daily_bin1624.fits outfile=/scratch/kocevski/502675/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1624.fits ra=352.629 dec=11.0479 rad=12.0 tmin=660268801.0 tmax=660528001.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.90
user 3.64
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/502675/ft1_filtered_4FGL_J2330.5+1102_daily_bin1624.fits" evtable="EVENTS" scfile=/scratch/kocevski/502675/ft2_4FGL_J2330.5+1102_daily_bin1624.fits sctable="SC_DATA" outfile=/scratch/kocevski/502675/ltcube_660268801_660528001_4FGL_J2330.5+1102_daily_bin1624.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/502675/ft2_4FGL_J2330.5+1102_daily_bin1624.fits
.....................!
real 13.66
user 13.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502675/ft1_filtered_4FGL_J2330.5+1102_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/502675/ft2_4FGL_J2330.5+1102_daily_bin1624.fits sctable="SC_DATA" expcube=/scratch/kocevski/502675/ltcube_660268801_660528001_4FGL_J2330.5+1102_daily_bin1624.fits outfile=/scratch/kocevski/502675/expmap_660268801_660528001_4FGL_J2330.5+1102_daily_bin1624.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/502675/ltcube_660268801_660528001_4FGL_J2330.5+1102_daily_bin1624.fits
.....................!
real 192.67
user 185.79
sys 4.52

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/502675/ft1_filtered_4FGL_J2330.5+1102_daily_bin1624.fits scfile=/scratch/kocevski/502675/ft2_4FGL_J2330.5+1102_daily_bin1624.fits outfile=/scratch/kocevski/502675/cmap_660268801_660528001_4FGL_J2330.5+1102_daily_bin1624.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502675/ft1_filtered_4FGL_J2330.5+1102_daily_bin1624.fits scfile=/scratch/kocevski/502675/ft2_4FGL_J2330.5+1102_daily_bin1624.fits outfile=/scratch/kocevski/502675/cmap_HighResolution_660268801_660528001_4FGL_J2330.5+1102_daily_bin1624.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/502675/ft1_filtered_4FGL_J2330.5+1102_daily_bin1624.fits', '/scratch/kocevski/502675/ft2_4FGL_J2330.5+1102_daily_bin1624.fits', expMap='/scratch/kocevski/502675/expmap_660268801_660528001_4FGL_J2330.5+1102_daily_bin1624.fits', expCube='/scratch/kocevski/502675/ltcube_660268801_660528001_4FGL_J2330.5+1102_daily_bin1624.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/502675/Model_4FGL_J2330.5+1102_daily_bin1624.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/502675/ft1_filtered_4FGL_J2330.5+1102_daily_bin1624.fits
Spacecraft file(s): /scratch/kocevski/502675/ft2_4FGL_J2330.5+1102_daily_bin1624.fits
Exposure map: /scratch/kocevski/502675/expmap_660268801_660528001_4FGL_J2330.5+1102_daily_bin1624.fits
Exposure cube: /scratch/kocevski/502675/ltcube_660268801_660528001_4FGL_J2330.5+1102_daily_bin1624.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/502675/Model_4FGL_J2330.5+1102_daily_bin1624.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) = 6222.09672589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.091       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .51727       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1918       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .46692       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.031       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9864       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.028       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8951       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12682E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.596       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5804       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.479       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27496E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9221       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5832       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97777       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80578       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=   6222.064     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     1804 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.076        26.517       -.11567E-05   -.34522E-04
   2  Prefactor     .10000E-03    13.483        .10004E-06** at limit **
   3  Prefactor     .51726        .15488       -.16065E-07   -.85706E-03
   4  Prefactor     .10000E-03    9.3994        .30822E-07** at limit **
   5  Prefactor     4.1964        5.6269        .26510E-05    .77297E-03
   6  Prefactor     .45685        10.343        .32878E-05   -.27369E-03
   7  Prefactor     29.017        19.917       -.13448E-05   -.73283E-04
   8  Prefactor     8.9862        6.8998        .22929E-06    .40887E-04
   9  Prefactor     17.026        12.071        .20823E-06    .24686E-04
  10  Prefactor     4.8934        12.466        .30489E-06    .52090E-05
  11  Prefactor     .10000E-03    45.127        .26177E-06** at limit **
  12  norm          22.600        11.639       -.10395E-06   -.17078E-04
  13  Prefactor     4.5794        5.9170        .11683E-06    .19526E-04
  14  Prefactor     .10000E-03    26.473       -.14553E-06** at limit **
  15  norm          15.490        13.081       -.38530E-06   -.35785E-04
  16  Prefactor     .10105E-03    52.224       -.83948E-05** at limit **
  17  Prefactor     4.9317        18.686        .25098E-05    .88009E-04
  18  Prefactor     1.5821        3.7032        .26391E-06    .60706E-04
  19  Normalizat    .97769        .20124       -.53507E-07    .11919E-03
  20  Prefactor     .80589        .12234       -.49382E-06    .15074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.0763
  Prefactor  = 0.0001
  Prefactor  = 0.517259
  Prefactor  = 0.0001
  Prefactor  = 4.19645
  Prefactor  = 0.456847
  Prefactor  = 29.0167
  Prefactor  = 8.98617
  Prefactor  = 17.026
  Prefactor  = 4.89336
  Prefactor  = 0.0001
  norm       = 22.5997
  Prefactor  = 4.57944
  Prefactor  = 0.0001
  norm       = 15.4897
  Prefactor  = 0.000101053
  Prefactor  = 4.93175
  Prefactor  = 1.58208
  Normalizat = 0.97769
  Prefactor  = 0.805893
 **********
 **   18 **HESSE 
 **********

 FCN=   6222.064     FROM HESSE     STATUS=OK           305 CALLS     2109 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.076        26.544        .83358E-04   -1.4747    
   2  Prefactor     .10000E-03    13.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .51726        .15476        .16107E-04   -1.5564    
   4  Prefactor     .10000E-03    9.4051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1964        5.9050        .98420E-03   -1.5298    
   6  Prefactor     .45685        37.146        .41239E-02   -1.5573    
   7  Prefactor     29.017        19.940        .74357E-04   -1.4630    
   8  Prefactor     8.9862        6.8757        .13370E-03   -1.5108    
   9  Prefactor     17.026        12.066        .97061E-04   -1.4882    
  10  Prefactor     4.8934        12.417        .18180E-03   -1.5266    
  11  Prefactor     .10000E-03    45.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.600        11.601        .84264E-04   -1.4757    
  13  Prefactor     4.5794        5.8865        .18808E-03   -1.5280    
  14  Prefactor     .10000E-03    26.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.490        13.090        .10180E-03   -1.4921    
  16  Prefactor     .10105E-03    274.62        .87806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.9317        18.671        .18129E-03   -1.5264    
  18  Prefactor     1.5821        3.6586        .22507E-03   -1.5456    
  19  Normalizat    .97769        .22813        .28896E-03   -.93782    
  20  Prefactor     .80589        .14047        .19745E-03   -.99511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77519e-09
Minuit parameter uncertainties:
  1  26.5571
  2  1.11233e-05
  3  0.154758
  4  7.63145e-06
  5  5.90578
  6  8.24328
  7  19.9442
  8  6.87625
  9  12.0674
  10  12.4237
  11  7.93272e-05
  12  11.6025
  13  5.88727
  14  4.80678e-05
  15  13.092
  16  0.034166
  17  18.6926
  18  3.65907
  19  0.228356
  20  0.140531
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  4.579e+00  5.887e+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:  8.059e-01  1.405e-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:  9.777e-01  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 3.21e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 7.26e-06 +/- 9.32e-06

TS (Fixed Index): 1.09
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/502675/likelihoodResults_660268801_660528001_4FGL_J2330.5+1102_daily_bin1624.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) = 6222.04861313
delta logL = 0.0153091263328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6222.04541469
delta logL = 0.0185075675072

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0392       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5973       1.0000          .0000       10.000    
     3 'Normalizat'    .98172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80425       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6222.045     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      230 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0390        6.3803        .17913E-03    .60859E-03
   2  Index         2.5978        .97444        .12814E-01    .98087E-04
   3  Normalizat    .98171        .22273        .28846E-03   -.69602E-04
   4  Prefactor     .80426        .13923        .19764E-03   -.10423E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.03902
  Index      = 2.59783
  Normalizat = 0.981707
  Prefactor  = 0.804255
 **********
 **   18 **HESSE 
 **********

 FCN=   6222.045     FROM HESSE     STATUS=OK            25 CALLS      255 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0390        6.2723        .71651E-05   -1.5259    
   2  Index         2.5978        .95819        .51256E-03   -.50115    
   3  Normalizat    .98171        .22290        .11538E-04   -.93646    
   4  Prefactor     .80426        .13933        .79054E-05   -.99572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51173e-10
Minuit parameter uncertainties:
  1  6.27311
  2  0.96598
  3  0.223106
  4  0.139391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502675': 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) = 6222.04541453
delta logL = 0.0185077306614

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  5.039e+00  6.273e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.598e+00  9.660e-01  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:  8.043e-01  1.394e-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:  9.817e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 352.629 11.048
Photon Index (Free Index): 2.60 +/- 0.97
Photon Flux (Free Index): 2.85e-08 +/- 4.03e-08
Energy Flux (Free Index): 7.48e-06 +/- 9.07e-06

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/502675/cmap_HighResolution_660268801_660528001_4FGL_J2330.5+1102_daily_bin1624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', comment='SUCCESS', photon_flux='3.21e-08', energy_flux2='7.48e-06', photon_flux_error='4.12e-08', dlogl='1.85e-02', energy_flux='7.26e-06', photon_flux2='2.85e-08', job_status='DONE', time_completed='2021-12-08 09:48:33.455990', photon_index_error2='0.97', photon_index2='2.60', ts='1.09', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='9.07e-06', EG='0.98', time_epoch_completed='1638985713.46', return_code='0', job_id='502675', GAL2='0.80', EG2='0.98', return_code2='0', energy_flux_error='9.32e-06', photon_flux_error2='4.03e-08', ts2='1.13', photon_index='2.79' WHERE bin_id='1624' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:48:33 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 502675: <4FGL_J2330.5+1102_daily_bin1624> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1624> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 09:35:19 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:35:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:35:51 2021
Terminated at Wed Dec  8 09:48:34 2021
Results reported at Wed Dec  8 09:48:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1624 352.629 11.0479 660268801 660528001 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 :                                   574.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            795 sec.

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

