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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1581
RA = 352.629, Dec = 11.0479
tmin = 649123201, tmax = 649382401
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='2881', job_status='RUN', time_executed='2021-09-29 22:43:35.999540', time_epoch_executed='1632980616.0' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2881

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2881/ft1_4FGL_J2330.5+1102_daily_bin1581.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2881/ft2_4FGL_J2330.5+1102_daily_bin1581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2881/ft1_4FGL_J2330.5+1102_daily_bin1581.fits outfile=/scratch/kocevski/2881/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1581.fits ra=352.629 dec=11.0479 rad=12.0 tmin=649123201.0 tmax=649382401.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 2.99
user 2.76
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2881/ft2_4FGL_J2330.5+1102_daily_bin1581.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/2881/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1581.fits evtable="EVENTS" outfile="/scratch/kocevski/2881/ft1_filtered_4FGL_J2330.5+1102_daily_bin1581.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2881/ft1_filtered_4FGL_J2330.5+1102_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/2881/ft2_4FGL_J2330.5+1102_daily_bin1581.fits sctable="SC_DATA" expcube=/scratch/kocevski/2881/ltcube_649123201_649382401_4FGL_J2330.5+1102_daily_bin1581.fits outfile=/scratch/kocevski/2881/expmap_649123201_649382401_4FGL_J2330.5+1102_daily_bin1581.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/2881/ltcube_649123201_649382401_4FGL_J2330.5+1102_daily_bin1581.fits
.....................!
real 190.40
user 184.97
sys 5.13

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/2881/ft1_filtered_4FGL_J2330.5+1102_daily_bin1581.fits scfile=/scratch/kocevski/2881/ft2_4FGL_J2330.5+1102_daily_bin1581.fits outfile=/scratch/kocevski/2881/cmap_649123201_649382401_4FGL_J2330.5+1102_daily_bin1581.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2881/ft1_filtered_4FGL_J2330.5+1102_daily_bin1581.fits scfile=/scratch/kocevski/2881/ft2_4FGL_J2330.5+1102_daily_bin1581.fits outfile=/scratch/kocevski/2881/cmap_HighResolution_649123201_649382401_4FGL_J2330.5+1102_daily_bin1581.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .56101       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6310       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.122       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4103       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8168       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.817       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .49982       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1060       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80806       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=   6721.574     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2043 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.231        .59219E-07** at limit **
   2  Prefactor     .10000E-03    31.301       -.14967E-05** at limit **
   3  Prefactor     .56101        .18723       -.58079E-08    .37275E-03
   4  Prefactor     .10000E-03    13.341       -.55774E-06** at limit **
   5  Prefactor     .10000E-03    15.261       -.92676E-06** at limit **
   6  Prefactor     .10000E-03    52.062        .14472E-05** at limit **
   7  Prefactor     .10000E-03    6.3391       -.20701E-07** at limit **
   8  Prefactor     8.6335        5.9692       -.22707E-07   -.73397E-04
   9  Prefactor     14.122        11.402        .10022E-06   -.39243E-04
  10  Prefactor     .10000E-03    7.2067       -.65467E-08** at limit **
  11  Prefactor     3.3902        274.13       -.93006E-05   -.35984E-04
  12  norm          .10000E-03    13.577        .56344E-06** at limit **
  13  Prefactor     9.8173        8.0650        .69193E-07   -.12358E-03
  14  Prefactor     28.813        27.470        .24582E-07   -.33164E-04
  15  norm          .10000E-03    14.027        .72702E-06** at limit **
  16  Prefactor     .10000E-03    108.41       -.10088E-05** at limit **
  17  Prefactor     .10000E-03    25.192        .13169E-05** at limit **
  18  Prefactor     .49904        4.7082        .28864E-05   -.23910E-03
  19  Normalizat    1.1058        .19917       -.26148E-08   -.73132E-04
  20  Prefactor     .80802        .11472       -.25648E-06   -.55430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.561007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.63346
  Prefactor  = 14.1221
  Prefactor  = 0.0001
  Prefactor  = 3.3902
  norm       = 0.0001
  Prefactor  = 9.81734
  Prefactor  = 28.8128
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.499043
  Normalizat = 1.10585
  Prefactor  = 0.808022
 **********
 **   18 **HESSE 
 **********

 FCN=   6721.574     FROM HESSE     STATUS=OK           291 CALLS     2334 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .56101        .18572        .19420E-04   -1.5558    
   4  Prefactor     .10000E-03    13.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.933        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    54.246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.6335        5.9828        .13644E-03   -1.5120    
   9  Prefactor     14.122        11.382        .10659E-03   -1.4956    
  10  Prefactor     .10000E-03    7.2254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.3902        297.73        .21906E-03   -1.5340    
  12  norm          .10000E-03    14.108        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.8173        8.0800        .12790E-03   -1.5081    
  14  Prefactor     28.813        27.468        .74632E-04   -1.4634    
  15  norm          .10000E-03    14.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    109.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .49904        4.9694        .35163E-03   -1.5567    
  19  Normalizat    1.1058        .23308        .29090E-03   -.89564    
  20  Prefactor     .80802        .13407        .19949E-03   -.99433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84144e-10
Minuit parameter uncertainties:
  1  1.28328e-05
  2  0.000351602
  3  0.185725
  4  8.7624e-05
  5  0.000113227
  6  0.000318858
  7  2.14945e-06
  8  5.98321
  9  11.3833
  10  5.91559e-07
  11  63.8709
  12  8.08944e-05
  13  8.08085
  14  27.4805
  15  9.46381e-05
  16  0.000150443
  17  0.00025245
  18  3.14961
  19  0.233301
  20  0.13412
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  9.817e+00  8.081e+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.080e-01  1.341e-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.106e+00  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.23
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 6.89e-08 +/- 5.66e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/2881/likelihoodResults_649123201_649382401_4FGL_J2330.5+1102_daily_bin1581.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) = 6721.55284477
delta logL = 0.0211876106314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6721.54235648
delta logL = 0.0316759039133

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5745       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0075       1.0000          .0000       10.000    
     3 'Normalizat'    1.0939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81315       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6721.542     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      261 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5680        9.8575        .68447E-03    .15206E-03
   2  Index         3.0079        .99785        .83767E-02    .12124E-04
   3  Normalizat    1.0940        .23293        .29225E-03   -.18672E-05
   4  Prefactor     .81310        .13600        .19894E-03    .18287E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.56803
  Index      = 3.00794
  Normalizat = 1.09401
  Prefactor  = 0.813103
 **********
 **   18 **HESSE 
 **********

 FCN=   6721.542     FROM HESSE     STATUS=OK            27 CALLS      288 TOTAL
                     EDM=   .33E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5680        9.0268        .13689E-03   -1.5122    
   2  Index         3.0079        .91338        .33507E-03   -.40979    
   3  Normalizat    1.0940        .23279        .11690E-04   -.89944    
   4  Prefactor     .81310        .13587        .79576E-05   -.99247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27692e-13
Minuit parameter uncertainties:
  1  9.02825
  2  0.919534
  3  0.233013
  4  0.135922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2881': 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) = 6721.5423561
delta logL = 0.0316762795474

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  8.568e+00  9.028e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  3.008e+00  9.195e-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.131e-01  1.359e-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.094e+00  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 352.629 11.048
Photon Index (Free Index): 3.01 +/- 0.92
Photon Flux (Free Index): 7.85e-08 +/- 7.08e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.23e-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/2881/cmap_HighResolution_649123201_649382401_4FGL_J2330.5+1102_daily_bin1581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', photon_flux='6.89e-08', energy_flux2='1.56e-05', photon_flux_error='5.66e-08', dlogl='3.17e-02', energy_flux='1.56e-05', photon_flux2='7.85e-08', job_status='DONE', time_completed='2021-09-29 22:53:42.875726', photon_index_error2='0.92', photon_index2='3.01', ts='2.23', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.85e-07', energy_flux_error2='1.23e-05', EG='1.11', time_epoch_completed='1632981222.88', return_code='0', job_id='2881', GAL2='0.81', EG2='1.09', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='7.08e-08', ts2='2.31', photon_index='2.79' WHERE bin_id='1581' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:53:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 2881: <4FGL_J2330.5+1102_daily_bin1581> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1581> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 22:40:23 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:40:24 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:40:24 2021
Terminated at Wed Sep 29 22:53:43 2021
Results reported at Wed Sep 29 22:53:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1581 352.629 11.0479 649123201 649382401 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 :                                   599.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            800 sec.

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

