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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1104
RA = 352.629, Dec = 11.0479
tmin = 525484801, tmax = 525744001
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='1226', job_status='RUN', time_executed='2021-09-29 22:37:57.325194', time_epoch_executed='1632980277.33' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1226

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1226/ft1_4FGL_J2330.5+1102_daily_bin1104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1226/ft2_4FGL_J2330.5+1102_daily_bin1104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1226/ft1_4FGL_J2330.5+1102_daily_bin1104.fits outfile=/scratch/kocevski/1226/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1104.fits ra=352.629 dec=11.0479 rad=12.0 tmin=525484801.0 tmax=525744001.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.62
user 3.38
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1226/ft1_filtered_4FGL_J2330.5+1102_daily_bin1104.fits evtable="EVENTS" scfile=/scratch/kocevski/1226/ft2_4FGL_J2330.5+1102_daily_bin1104.fits sctable="SC_DATA" expcube=/scratch/kocevski/1226/ltcube_525484801_525744001_4FGL_J2330.5+1102_daily_bin1104.fits outfile=/scratch/kocevski/1226/expmap_525484801_525744001_4FGL_J2330.5+1102_daily_bin1104.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/1226/ltcube_525484801_525744001_4FGL_J2330.5+1102_daily_bin1104.fits
.....................!
real 190.70
user 185.06
sys 5.31

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/1226/ft1_filtered_4FGL_J2330.5+1102_daily_bin1104.fits scfile=/scratch/kocevski/1226/ft2_4FGL_J2330.5+1102_daily_bin1104.fits outfile=/scratch/kocevski/1226/cmap_525484801_525744001_4FGL_J2330.5+1102_daily_bin1104.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1226/ft1_filtered_4FGL_J2330.5+1102_daily_bin1104.fits scfile=/scratch/kocevski/1226/ft2_4FGL_J2330.5+1102_daily_bin1104.fits outfile=/scratch/kocevski/1226/cmap_HighResolution_525484801_525744001_4FGL_J2330.5+1102_daily_bin1104.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.629 yref=11.0479 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.494       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .79304       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13731E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .80996       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.416       1.0000         .10000E-03   10000.    
    12 'norm      '    .10345E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.321       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .43613E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.365       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8986       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97518       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0178       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=   7786.698     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2067 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.491        22.846        .10333E-05    .17937E-05
   2  Prefactor     .10000E-03    9.3071        .63751E-06** at limit **
   3  Prefactor     .79290        .18620        .21406E-07   -.65951E-03
   4  Prefactor     .10000E-03    48.558       -.15163E-05** at limit **
   5  Prefactor     .10000E-03    2.5723        .61791E-06** at limit **
   6  Prefactor     .10000E-03    20.839       -.18445E-06** at limit **
   7  Prefactor     .10000E-03    8.3221       -.92574E-06** at limit **
   8  Prefactor     .10000E-03    3.5699        .95697E-06** at limit **
   9  Prefactor     .76320        7.6172       -.18648E-05    .16913E-03
  10  Prefactor     .10000E-03    21.146        .10753E-05** at limit **
  11  Prefactor     37.485        46.284        .53663E-04   -.18064E-04
  12  norm          .10000E-03    5.8823        .49486E-06** at limit **
  13  Prefactor     12.344        9.2564       -.87133E-06    .44602E-05
  14  Prefactor     .10000E-03    6.5491       -.26846E-06** at limit **
  15  norm          .10000E-03    7.0741        .42356E-07** at limit **
  16  Prefactor     .10002E-03    161.79        .24088E-04** at limit **
  17  Prefactor     14.385        24.213       -.26108E-05   -.67264E-04
  18  Prefactor     5.8994        5.6199        .27670E-06   -.37520E-04
  19  Normalizat    .97505        .20431       -.50604E-05    .75196E-04
  20  Prefactor     1.0177        .11933        .48489E-06   -.21801E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4914
  Prefactor  = 0.0001
  Prefactor  = 0.792896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.763197
  Prefactor  = 0.0001
  Prefactor  = 37.4849
  norm       = 0.0001
  Prefactor  = 12.3436
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 14.3853
  Prefactor  = 5.89943
  Normalizat = 0.975054
  Prefactor  = 1.01769
 **********
 **   18 **HESSE 
 **********

 FCN=   7786.698     FROM HESSE     STATUS=OK           287 CALLS     2354 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.491        22.865        .93133E-04   -1.4848    
   2  Prefactor     .10000E-03    9.3391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .79290        .18608        .17645E-04   -1.5530    
   4  Prefactor     .10000E-03    48.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.5831        .13820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.499        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.3505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5955        .16279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .76320        29.422        .45153E-02   -1.5533    
  10  Prefactor     .10000E-03    21.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.485        46.294        .65522E-04   -1.4483    
  12  norm          .10000E-03    5.9490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.344        9.2855        .11412E-03   -1.5005    
  14  Prefactor     .10000E-03    6.5532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.0981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    168.16        .38770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.385        24.275        .10568E-03   -1.4949    
  18  Prefactor     5.8994        5.6216        .16535E-03   -1.5222    
  19  Normalizat    .97505        .24079        .32369E-03   -.93871    
  20  Prefactor     1.0177        .14107        .19565E-03   -.92142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19893e-09
Minuit parameter uncertainties:
  1  22.8755
  2  1.05853e-05
  3  0.186084
  4  0.000168583
  5  8.75546e-06
  6  0.000198715
  7  5.34686e-05
  8  2.0967e-05
  9  9.48169
  10  0.000108587
  11  46.338
  12  7.2333e-05
  13  9.28658
  14  1.42149e-05
  15  2.13722e-05
  16  0.00353894
  17  24.2912
  18  5.62211
  19  0.241054
  20  0.141124
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.234e+01  9.287e+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:  1.018e+00  1.411e-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.751e-01  2.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.39
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 8.66e-08 +/- 6.51e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/1226/likelihoodResults_525484801_525744001_4FGL_J2330.5+1102_daily_bin1104.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) = 7784.98982624
delta logL = 1.70801015568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7784.95430347
delta logL = 1.74353292457

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7784.954     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      260 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9049        12.148        .75370E-02    .52252E-03
   2  Index         4.6741        2.8701        .11999        .15834E-03
   3  Normalizat    .85483        .67031E-01    .77513E-01    .18933E-04
   4  Prefactor     1.0738        .41303E-01    .38674E-01   -.51897E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.90487
  Index      = 4.6741
  Normalizat = 0.854828
  Prefactor  = 1.07378
 **********
 **   18 **HESSE 
 **********

 FCN=   7784.954     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      291 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9049        20.165        .54595E-04   -1.5432    
   2  Index         4.6741        3.8375        .47967E-02   -.65227E-01
   3  Normalizat    .85483        .22654        .34310E-03   -.98066    
   4  Prefactor     1.0738        .13777        .19102E-03   -.90309    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.38899e-07
Minuit parameter uncertainties:
  1  12.4005
  2  4.37816
  3  0.226795
  4  0.137813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1226': 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): 102
logL (Free Index) = 7784.95430168
delta logL = 1.74353471719

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.074e+00  1.378e-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:  8.548e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.51
Ra Dec: 352.629 11.048
Photon Index (Free Index): 4.67 +/- 4.38
Photon Flux (Free Index): 1.72e-07 +/- 8.50e-08
Energy Flux (Free Index): 2.35e-05 +/- 1.71e-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/1226/cmap_HighResolution_525484801_525744001_4FGL_J2330.5+1102_daily_bin1104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-02', comment='SUCCESS', photon_flux='8.66e-08', energy_flux2='2.35e-05', photon_flux_error='6.51e-08', dlogl='1.74e+00', energy_flux='1.96e-05', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-09-29 22:50:35.803670', photon_index_error2='4.38', photon_index2='4.67', ts='2.39', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='2.06e-07', energy_flux_error2='1.71e-05', EG='0.98', time_epoch_completed='1632981035.8', return_code='0', job_id='1226', GAL2='1.07', EG2='0.85', return_code2='102', energy_flux_error='1.47e-05', photon_flux_error2='8.50e-08', ts2='6.51', photon_index='2.79' WHERE bin_id='1104' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:50:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 1226: <4FGL_J2330.5+1102_daily_bin1104> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1104 352.629 11.0479 525484801 525744001 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 :                             287.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

