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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1446
RA = 352.629, Dec = 11.0479
tmin = 614131201, tmax = 614390401
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='1721', job_status='RUN', time_executed='2021-09-29 22:39:54.804322', time_epoch_executed='1632980394.8' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1721

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1721/ft1_4FGL_J2330.5+1102_daily_bin1446.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1721/ft2_4FGL_J2330.5+1102_daily_bin1446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1721/ft1_4FGL_J2330.5+1102_daily_bin1446.fits outfile=/scratch/kocevski/1721/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1446.fits ra=352.629 dec=11.0479 rad=12.0 tmin=614131201.0 tmax=614390401.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 4.69
user 4.45
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1721/ft2_4FGL_J2330.5+1102_daily_bin1446.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/1721/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1446.fits evtable="EVENTS" outfile="/scratch/kocevski/1721/ft1_filtered_4FGL_J2330.5+1102_daily_bin1446.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1721/ft1_filtered_4FGL_J2330.5+1102_daily_bin1446.fits" evtable="EVENTS" scfile=/scratch/kocevski/1721/ft2_4FGL_J2330.5+1102_daily_bin1446.fits sctable="SC_DATA" outfile=/scratch/kocevski/1721/ltcube_614131201_614390401_4FGL_J2330.5+1102_daily_bin1446.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/1721/ft2_4FGL_J2330.5+1102_daily_bin1446.fits
.....................!
real 10.82
user 10.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1721/ft1_filtered_4FGL_J2330.5+1102_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/1721/ft2_4FGL_J2330.5+1102_daily_bin1446.fits sctable="SC_DATA" expcube=/scratch/kocevski/1721/ltcube_614131201_614390401_4FGL_J2330.5+1102_daily_bin1446.fits outfile=/scratch/kocevski/1721/expmap_614131201_614390401_4FGL_J2330.5+1102_daily_bin1446.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/1721/ltcube_614131201_614390401_4FGL_J2330.5+1102_daily_bin1446.fits
.....................!
real 190.11
user 185.71
sys 4.08

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/1721/ft1_filtered_4FGL_J2330.5+1102_daily_bin1446.fits scfile=/scratch/kocevski/1721/ft2_4FGL_J2330.5+1102_daily_bin1446.fits outfile=/scratch/kocevski/1721/cmap_614131201_614390401_4FGL_J2330.5+1102_daily_bin1446.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1721/ft1_filtered_4FGL_J2330.5+1102_daily_bin1446.fits scfile=/scratch/kocevski/1721/ft2_4FGL_J2330.5+1102_daily_bin1446.fits outfile=/scratch/kocevski/1721/cmap_HighResolution_614131201_614390401_4FGL_J2330.5+1102_daily_bin1446.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    15.348       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .44810       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.418       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2101       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8003       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6074       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.828       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11444E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3612       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10881E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2028       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80197       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=   6065.585     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     2093 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.756        .24165E-05** at limit **
   2  Prefactor     15.349        18.201        .25903E-07    .58413E-05
   3  Prefactor     .44810        .14953       -.65687E-08   -.17181E-03
   4  Prefactor     40.408        40.719       -.52204E-05   -.36252E-03
   5  Prefactor     6.2101        6.5380       -.14339E-06   -.65298E-04
   6  Prefactor     3.7988        8.3183        .44595E-05   -.11216E-02
   7  Prefactor     .10000E-03    10.987        .11029E-05** at limit **
   8  Prefactor     .10000E-03    2.2151       -.13476E-08** at limit **
   9  Prefactor     5.5985        13.701       -.46677E-06   -.11621E-03
  10  Prefactor     15.826        16.759       -.58097E-06   -.88385E-04
  11  Prefactor     .10001E-03    27.545       -.47744E-05** at limit **
  12  norm          .10000E-03    5.8136        .71734E-07** at limit **
  13  Prefactor     7.3597        6.2773        .23905E-07   -.16197E-04
  14  Prefactor     .10000E-03    22.171        .43742E-05** at limit **
  15  norm          .10000E-03    6.4907       -.20503E-06** at limit **
  16  Prefactor     .10000E-03    25.749        .11060E-05** at limit **
  17  Prefactor     .10000E-03    11.467       -.44034E-05** at limit **
  18  Prefactor     .10000E-03    2.8575        .15487E-07** at limit **
  19  Normalizat    1.2031        .20603        .76229E-06   -.50021E-04
  20  Prefactor     .80181        .12399       -.30085E-06    .38089E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 15.3486
  Prefactor  = 0.448101
  Prefactor  = 40.4078
  Prefactor  = 6.21005
  Prefactor  = 3.79876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.59845
  Prefactor  = 15.8261
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 7.3597
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Normalizat = 1.20306
  Prefactor  = 0.801809
 **********
 **   18 **HESSE 
 **********

 FCN=   6065.585     FROM HESSE     STATUS=OK           289 CALLS     2382 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.349        18.213        .10224E-03   -1.4924    
   3  Prefactor     .44810        .14952        .16454E-04   -1.5574    
   4  Prefactor     40.408        41.777        .63050E-04   -1.4436    
   5  Prefactor     6.2101        6.5311        .16109E-03   -1.5210    
   6  Prefactor     3.7988        10.094        .10353E-02   -1.5318    
   7  Prefactor     .10000E-03    11.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2268        .11315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5985        13.673        .16965E-03   -1.5235    
  10  Prefactor     15.826        16.799        .10067E-03   -1.4912    
  11  Prefactor     .10001E-03    28.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.8418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.3597        6.2806        .14783E-03   -1.5165    
  14  Prefactor     .10000E-03    22.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.5008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8703        .12855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2031        .24192        .27529E-03   -.86508    
  20  Prefactor     .80181        .14517        .20445E-03   -.99662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83794e-09
Minuit parameter uncertainties:
  1  0.000244941
  2  18.2196
  3  0.149521
  4  41.8072
  5  6.53189
  6  10.0986
  7  0.000122347
  8  3.62187e-08
  9  13.6811
  10  16.8039
  11  0.000779638
  12  1.19274e-05
  13  6.28114
  14  0.00063692
  15  1.92251e-05
  16  0.000158571
  17  0.000474817
  18  2.62552e-06
  19  0.242142
  20  0.145237
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  7.360e+00  6.281e+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.018e-01  1.452e-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.203e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.97
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 5.16e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 9.95e-06

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

Saving results to:
/scratch/kocevski/1721/likelihoodResults_614131201_614390401_4FGL_J2330.5+1102_daily_bin1446.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) = 6065.12356883
delta logL = 0.461808213985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6065.11583859
delta logL = 0.469538449635

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4370       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8888       1.0000          .0000       10.000    
     3 'Normalizat'    1.2457       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78685       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=   6065.116     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 19.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4391        8.3339        .28479E-05   -.14888E-02
   2  Index         1.8888        .87810        .39577E-04    .88716E-04
   3  Normalizat    1.2456        .20043       -.22710E-05   -.45492E-03
   4  Prefactor     .78693        .12343        .68516E-06   -.45739E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.43906
  Index      = 1.88876
  Normalizat = 1.24562
  Prefactor  = 0.786933
 **********
 **   18 **HESSE 
 **********

 FCN=   6065.116     FROM HESSE     STATUS=OK            27 CALLS      233 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4391        8.2555        .15819E-03   -1.5200    
   2  Index         1.8888        .85153        .99207E-02   -.67161    
   3  Normalizat    1.2456        .23310        .27120E-03   -.85205    
   4  Prefactor     .78693        .14411        .20614E-03   -1.0021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67529e-09
Minuit parameter uncertainties:
  1  8.257
  2  0.858391
  3  0.233293
  4  0.144181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1721': 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) = 6065.11583833
delta logL = 0.469538706106

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  6.439e+00  8.257e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  1.889e+00  8.584e-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:  7.869e-01  1.442e-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.246e+00  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.90
Ra Dec: 352.629 11.048
Photon Index (Free Index): 1.89 +/- 0.86
Photon Flux (Free Index): 1.91e-08 +/- 3.19e-08
Energy Flux (Free Index): 1.77e-05 +/- 2.54e-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/1721/cmap_HighResolution_614131201_614390401_4FGL_J2330.5+1102_daily_bin1446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='5.16e-08', energy_flux2='1.77e-05', photon_flux_error='4.40e-08', dlogl='4.70e-01', energy_flux='1.17e-05', photon_flux2='1.91e-08', job_status='DONE', time_completed='2021-09-29 22:50:30.165832', photon_index_error2='0.86', photon_index2='1.89', ts='2.97', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='2.54e-05', EG='1.20', time_epoch_completed='1632981030.17', return_code='0', job_id='1721', GAL2='0.79', EG2='1.25', return_code2='0', energy_flux_error='9.95e-06', photon_flux_error2='3.19e-08', ts2='3.90', photon_index='2.79' WHERE bin_id='1446' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:50:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 1721: <4FGL_J2330.5+1102_daily_bin1446> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1446> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 22:36:00 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:36:02 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:36:02 2021
Terminated at Wed Sep 29 22:50:30 2021
Results reported at Wed Sep 29 22:50:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1446 352.629 11.0479 614131201 614390401 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 :                                   584.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

