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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1011
RA = 352.629, Dec = 11.0479
tmin = 501379201, tmax = 501638401
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='89', job_status='RUN', time_executed='2021-09-29 22:33:02.845771', time_epoch_executed='1632979982.85' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89/ft1_4FGL_J2330.5+1102_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89/ft2_4FGL_J2330.5+1102_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89/ft1_4FGL_J2330.5+1102_daily_bin1011.fits outfile=/scratch/kocevski/89/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1011.fits ra=352.629 dec=11.0479 rad=12.0 tmin=501379201.0 tmax=501638401.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/89/ft2_4FGL_J2330.5+1102_daily_bin1011.fits

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89/ft1_filtered_4FGL_J2330.5+1102_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/89/ft2_4FGL_J2330.5+1102_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/89/ltcube_501379201_501638401_4FGL_J2330.5+1102_daily_bin1011.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/89/ft2_4FGL_J2330.5+1102_daily_bin1011.fits
.....................!
real 12.02
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89/ft1_filtered_4FGL_J2330.5+1102_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/89/ft2_4FGL_J2330.5+1102_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/89/ltcube_501379201_501638401_4FGL_J2330.5+1102_daily_bin1011.fits outfile=/scratch/kocevski/89/expmap_501379201_501638401_4FGL_J2330.5+1102_daily_bin1011.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/89/ltcube_501379201_501638401_4FGL_J2330.5+1102_daily_bin1011.fits
.....................!
real 190.94
user 184.81
sys 5.78

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/89/ft1_filtered_4FGL_J2330.5+1102_daily_bin1011.fits scfile=/scratch/kocevski/89/ft2_4FGL_J2330.5+1102_daily_bin1011.fits outfile=/scratch/kocevski/89/cmap_501379201_501638401_4FGL_J2330.5+1102_daily_bin1011.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89/ft1_filtered_4FGL_J2330.5+1102_daily_bin1011.fits scfile=/scratch/kocevski/89/ft2_4FGL_J2330.5+1102_daily_bin1011.fits outfile=/scratch/kocevski/89/cmap_HighResolution_501379201_501638401_4FGL_J2330.5+1102_daily_bin1011.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14609E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.109       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2398       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8647       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4790       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6134       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10784E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11232E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1289       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.185       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3243       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .77561E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3666       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2388       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94211       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=   8726.450     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2105 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.295        .11088E-04** at limit **
   2  Prefactor     36.204        39.581       -.29482E-05   -.72376E-05
   3  Prefactor     3.2384        .35566        .17415E-07   -.88446E-03
   4  Prefactor     .10000E-03    33.995       -.10876E-04** at limit **
   5  Prefactor     .10000E-03    4.3938       -.47915E-07** at limit **
   6  Prefactor     .10000E-03    4.3372       -.95093E-08** at limit **
   7  Prefactor     5.8526        17.933       -.71061E-05   -.33203E-04
   8  Prefactor     4.4781        8.0396        .81586E-06   -.26876E-03
   9  Prefactor     6.6008        10.397       -.38452E-06    .42603E-04
  10  Prefactor     .10000E-03    9.4162        .40477E-06** at limit **
  11  Prefactor     .10000E-03    16.092       -.28120E-06** at limit **
  12  norm          3.1407        8.6010       -.96211E-05   -.33322E-03
  13  Prefactor     12.179        7.5846        .15885E-05    .11195E-03
  14  Prefactor     .10000E-03    8.1015        .30832E-06** at limit **
  15  norm          2.3217        7.7711        .62713E-05   -.27352E-03
  16  Prefactor     .10000E-03    12.578       -.29346E-06** at limit **
  17  Prefactor     .10381E-03    14.174        .39309E-07** at limit **
  18  Prefactor     8.3604        8.9820        .50699E-05   -.89753E-04
  19  Normalizat    1.2394        .22061       -.69479E-06    .10457E-03
  20  Prefactor     .94214        .13045        .70093E-06    .39451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 36.2043
  Prefactor  = 3.23844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.85265
  Prefactor  = 4.47806
  Prefactor  = 6.60084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.14071
  Prefactor  = 12.1788
  Prefactor  = 0.0001
  norm       = 2.32171
  Prefactor  = 0.0001
  Prefactor  = 0.000103809
  Prefactor  = 8.36041
  Normalizat = 1.23936
  Prefactor  = 0.942139
 **********
 **   18 **HESSE 
 **********

 FCN=   8726.450     FROM HESSE     STATUS=OK           301 CALLS     2406 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.204        39.845        .66693E-04   -1.4504    
   3  Prefactor     3.2384        .35841        .16772E-04   -1.5348    
   4  Prefactor     .10000E-03    34.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8526        17.989        .16583E-03   -1.5224    
   8  Prefactor     4.4781        8.0163        .19025E-03   -1.5285    
   9  Prefactor     6.6008        10.296        .15604E-03   -1.5194    
  10  Prefactor     .10000E-03    9.4309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1407        8.7179        .22920E-03   -1.5354    
  13  Prefactor     12.179        7.5799        .11476E-03   -1.5010    
  14  Prefactor     .10000E-03    8.1173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3217        7.6304        .26903E-03   -1.5403    
  16  Prefactor     .10000E-03    12.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10381E-03    17.495        .10054       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.3604        8.9320        .13860E-03   -1.5130    
  19  Normalizat    1.2394        .25854        .34765E-03   -.85395    
  20  Prefactor     .94214        .15286        .23584E-03   -.94684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32623e-10
Minuit parameter uncertainties:
  1  1.30719e-05
  2  39.8739
  3  0.35841
  4  0.000144229
  5  1.09061e-06
  6  6.51363e-06
  7  18.006
  8  8.01822
  9  10.2991
  10  2.32116e-05
  11  7.54319e-06
  12  8.72144
  13  7.58054
  14  3.2321e-05
  15  7.63356
  16  5.74371e-06
  17  0.0163304
  18  8.93346
  19  0.258809
  20  0.152929
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.218e+01  7.581e+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.421e-01  1.529e-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:  1.239e+00  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.31
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 8.54e-08 +/- 5.31e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.20e-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) = 8725.86988135
delta logL = 0.57973478709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8725.81962848
delta logL = 0.629987654802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.465       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2171       1.0000          .0000       10.000    
     3 'Normalizat'    1.2708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92705       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=   8725.820     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      270 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.466        9.5266        .98704E-04   -.21420E-02
   2  Index         2.2171        .45680        .84023E-02   -.53084E-03
   3  Normalizat    1.2708        .25168        .34390E-03    .13560E-03
   4  Prefactor     .92703        .15131        .23739E-03    .17576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.466
  Index      = 2.21707
  Normalizat = 1.27082
  Prefactor  = 0.927034
 **********
 **   18 **HESSE 
 **********

 FCN=   8725.820     FROM HESSE     STATUS=OK            23 CALLS      293 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.466        9.5092        .19741E-04   -1.4896    
   2  Index         2.2171        .45590        .33609E-03   -.59027    
   3  Normalizat    1.2708        .25191        .13756E-04   -.84442    
   4  Prefactor     .92703        .15144        .94957E-05   -.95203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77802e-09
Minuit parameter uncertainties:
  1  9.51008
  2  0.456823
  3  0.252148
  4  0.151513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89': 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) = 8725.81962842
delta logL = 0.629987710821

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.647e+01  9.510e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.217e+00  4.568e-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:  9.270e-01  1.515e-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:  1.271e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.53
Ra Dec: 352.629 11.048
Photon Index (Free Index): 2.22 +/- 0.46
Photon Flux (Free Index): 6.31e-08 +/- 4.38e-08
Energy Flux (Free Index): 2.75e-05 +/- 1.99e-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/89/cmap_HighResolution_501379201_501638401_4FGL_J2330.5+1102_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.54e-08', energy_flux2='2.75e-05', photon_flux_error='5.31e-08', dlogl='6.30e-01', energy_flux='1.93e-05', photon_flux2='6.31e-08', job_status='DONE', time_completed='2021-09-29 22:43:52.618291', photon_index_error2='0.46', photon_index2='2.22', ts='5.31', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='1.24', time_epoch_completed='1632980632.62', return_code='0', job_id='89', GAL2='0.93', EG2='1.27', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.38e-08', ts2='6.53', photon_index='2.79' WHERE bin_id='1011' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:43:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 89: <4FGL_J2330.5+1102_daily_bin1011> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1011> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 22:30:45 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:30:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 22:30:46 2021
Terminated at Wed Sep 29 22:43:53 2021
Results reported at Wed Sep 29 22:43:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1011 352.629 11.0479 501379201 501638401 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 :                                   645.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

