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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1071
RA = 352.629, Dec = 11.0479
tmin = 516931201, tmax = 517190401
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='1178', job_status='RUN', time_executed='2021-09-29 22:37:44.133857', time_epoch_executed='1632980264.13' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1178

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1178/ft1_4FGL_J2330.5+1102_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1178/ft2_4FGL_J2330.5+1102_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1178/ft1_4FGL_J2330.5+1102_daily_bin1071.fits outfile=/scratch/kocevski/1178/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1071.fits ra=352.629 dec=11.0479 rad=12.0 tmin=516931201.0 tmax=517190401.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.93
user 3.70
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1178/ft1_filtered_4FGL_J2330.5+1102_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/1178/ft2_4FGL_J2330.5+1102_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/1178/ltcube_516931201_517190401_4FGL_J2330.5+1102_daily_bin1071.fits outfile=/scratch/kocevski/1178/expmap_516931201_517190401_4FGL_J2330.5+1102_daily_bin1071.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/1178/ltcube_516931201_517190401_4FGL_J2330.5+1102_daily_bin1071.fits
.....................!
real 191.10
user 185.87
sys 4.91

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/1178/ft1_filtered_4FGL_J2330.5+1102_daily_bin1071.fits scfile=/scratch/kocevski/1178/ft2_4FGL_J2330.5+1102_daily_bin1071.fits outfile=/scratch/kocevski/1178/cmap_516931201_517190401_4FGL_J2330.5+1102_daily_bin1071.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1178/ft1_filtered_4FGL_J2330.5+1102_daily_bin1071.fits scfile=/scratch/kocevski/1178/ft2_4FGL_J2330.5+1102_daily_bin1071.fits outfile=/scratch/kocevski/1178/cmap_HighResolution_516931201_517190401_4FGL_J2330.5+1102_daily_bin1071.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    20.427       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5157       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12962E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6075       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .52648E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.250       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8947       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.531       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15108       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .76090       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1779       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8597.838     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1760 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.371        .20083E-05** at limit **
   2  Prefactor     20.427        1.0318        .13731E-07   -.30623E-03
   3  Prefactor     2.5156        .27033        .98110E-07    .20605E-02
   4  Prefactor     .10023E-03    54.105       -.31598E-06** at limit **
   5  Prefactor     .10000E-03    19.870       -.94296E-06** at limit **
   6  Prefactor     8.6053        7.3716       -.54139E-06   -.58329E-02
   7  Prefactor     .10000E-03    8.2491       -.17944E-05** at limit **
   8  Prefactor     .10000E-03    35.679       -.46439E-05** at limit **
   9  Prefactor     .10000E-03    5.2983        .20032E-06** at limit **
  10  Prefactor     .10000E-03    4.3288       -.60928E-06** at limit **
  11  Prefactor     .10900E-03    59.892        .53760E-05** at limit **
  12  norm          13.242        4.2489       -.30452E-06    .33525E-03
  13  Prefactor     2.8964        5.5406        .16849E-06   -.29594E-04
  14  Prefactor     14.536        1.7175        .10695E-08    .38468E-03
  15  norm          .10000E-03    4.6224       -.93722E-06** at limit **
  16  Prefactor     .10852E-03    45.628        .25136E-05** at limit **
  17  Prefactor     .10093E-03    638.28        .18250E-05** at limit **
  18  Prefactor     .10000E-03    1.9739        .13416E-07** at limit **
  19  Normalizat    .76094        .22560       -.27435E-05   -.98346E-04
  20  Prefactor     1.1779        .14154        .96821E-07   -.16270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.4265
  Prefactor  = 2.51562
  Prefactor  = 0.000100232
  Prefactor  = 0.0001
  Prefactor  = 8.60532
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000109
  norm       = 13.2425
  Prefactor  = 2.89638
  Prefactor  = 14.5364
  norm       = 0.0001
  Prefactor  = 0.000108516
  Prefactor  = 0.000100928
  Prefactor  = 0.0001
  Normalizat = 0.76094
  Prefactor  = 1.17792
 **********
 **   18 **HESSE 
 **********

 FCN=   8597.838     FROM HESSE     STATUS=OK           343 CALLS     2103 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.375        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.427        19.316        .22155E-02   -1.4804    
   3  Prefactor     2.5156        .27724        .34420E-02   -1.5391    
   4  Prefactor     .10023E-03    55.002        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3177        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.6053        8.4330        .34158E-02   -1.5121    
   7  Prefactor     .10000E-03    8.2354        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3016        .64140E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2879        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3252        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10900E-03    100.32        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.242        11.249        .27511E-02   -1.4980    
  13  Prefactor     2.8964        6.9686        .59711E-02   -1.5368    
  14  Prefactor     14.536        26.533        .26268E-02   -1.4945    
  15  norm          .10000E-03    4.6205        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10852E-03    82.885        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10093E-03    16.248        .11802       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9693        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .76094        .20497        .86849E-01   -1.0153    
  20  Prefactor     1.1779        .12556        .35175E-01   -.87014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78977e-07
Minuit parameter uncertainties:
  1  5.58557e-05
  2  19.3222
  3  0.277242
  4  0.00714575
  5  4.65503e-05
  6  8.43414
  7  3.60953e-05
  8  0.000211202
  9  3.93786e-06
  10  8.92736e-06
  11  0.0601954
  12  11.2503
  13  6.97051
  14  26.5547
  15  1.58805e-05
  16  0.0532082
  17  0.00777004
  18  9.51582e-08
  19  0.205176
  20  0.12559
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  2.896e+00  6.971e+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.178e+00  1.256e-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:  7.609e-01  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1178/likelihoodResults_516931201_517190401_4FGL_J2330.5+1102_daily_bin1071.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) = 8597.8364517
delta logL = 0.00155370609355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8597.83612859
delta logL = 0.00187681740317

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0519       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6886       1.0000          .0000       10.000    
     3 'Normalizat'    .76201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1776       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=   8597.836     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      270 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0536        6.8809        .11612E-02   -.29509E-04
   2  Index         2.6886        1.5907        .97618E-02   -.18680E-05
   3  Normalizat    .76256        .22501        .38431E-03   -.28221E-04
   4  Prefactor     1.1772        .14187        .19966E-03   -.52955E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.05355
  Index      = 2.68856
  Normalizat = 0.762557
  Prefactor  = 1.17719
 **********
 **   18 **HESSE 
 **********

 FCN=   8597.836     FROM HESSE     STATUS=OK            27 CALLS      297 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0536        6.6701        .46446E-04   -1.5358    
   2  Index         2.6886        1.5443        .39047E-03   -.48057    
   3  Normalizat    .76256        .22517        .15372E-04   -1.0147    
   4  Prefactor     1.1772        .14193        .79863E-05   -.87036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89991e-12
Minuit parameter uncertainties:
  1  6.67169
  2  1.57739
  3  0.225448
  4  0.141976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1178': 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) = 8597.83612511
delta logL = 0.00188029933452

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  3.054e+00  6.672e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.689e+00  1.577e+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.177e+00  1.420e-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:  7.626e-01  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 352.629 11.048

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/1178/cmap_HighResolution_516931201_517190401_4FGL_J2330.5+1102_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.57e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-29 22:49:41.191677', job_id='1178', GAL2='1.18', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632980981.19', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.88e-03', ts2='0.29', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1071' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:49:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 1178: <4FGL_J2330.5+1102_daily_bin1071> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1071 352.629 11.0479 516931201 517190401 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 :                                   679.14 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            866 sec.

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

