/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 186 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2330.5+1102_daily_bin353
RA = 352.629, Dec = 11.0479
tmin = 330825601, tmax = 331084801
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='995969', job_status='RUN', time_executed='2021-09-29 22:18:48.643747', time_epoch_executed='1632979128.64' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995969

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995969/ft1_4FGL_J2330.5+1102_daily_bin353.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995969/ft2_4FGL_J2330.5+1102_daily_bin353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995969/ft1_4FGL_J2330.5+1102_daily_bin353.fits outfile=/scratch/kocevski/995969/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin353.fits ra=352.629 dec=11.0479 rad=12.0 tmin=330825601.0 tmax=331084801.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.44
user 3.22
sys 0.21

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995969/ft1_filtered_4FGL_J2330.5+1102_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/995969/ft2_4FGL_J2330.5+1102_daily_bin353.fits sctable="SC_DATA" expcube=/scratch/kocevski/995969/ltcube_330825601_331084801_4FGL_J2330.5+1102_daily_bin353.fits outfile=/scratch/kocevski/995969/expmap_330825601_331084801_4FGL_J2330.5+1102_daily_bin353.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/995969/ltcube_330825601_331084801_4FGL_J2330.5+1102_daily_bin353.fits
.....................!
real 192.21
user 187.07
sys 4.83

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/995969/ft1_filtered_4FGL_J2330.5+1102_daily_bin353.fits scfile=/scratch/kocevski/995969/ft2_4FGL_J2330.5+1102_daily_bin353.fits outfile=/scratch/kocevski/995969/cmap_330825601_331084801_4FGL_J2330.5+1102_daily_bin353.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995969/ft1_filtered_4FGL_J2330.5+1102_daily_bin353.fits scfile=/scratch/kocevski/995969/ft2_4FGL_J2330.5+1102_daily_bin353.fits outfile=/scratch/kocevski/995969/cmap_HighResolution_330825601_331084801_4FGL_J2330.5+1102_daily_bin353.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .76411       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.559       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.465       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.713       1.0000         .10000E-03   10000.    
    15 'norm      '    2.3133       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11364E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.492       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92641       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94164       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=   6838.125     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2018 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.914        .90712E-02** at limit **
   2  Prefactor     .10000E-03    4.2279        .90712E-02** at limit **
   3  Prefactor     .76413        .16845        .34694E-02    .22931E-03
   4  Prefactor     .10000E-03    8.0166        .90712E-02** at limit **
   5  Prefactor     .10000E-03    1.7887        .90712E-02** at limit **
   6  Prefactor     .10000E-03    4.2028        .90712E-02** at limit **
   7  Prefactor     11.559        14.192        .29458E-02    .39388E-04
   8  Prefactor     .10000E-03    2.9169        .90712E-02** at limit **
   9  Prefactor     .10000E-03    7.3934        .90712E-02** at limit **
  10  Prefactor     .10000E-03    39.888        .90712E-02** at limit **
  11  Prefactor     .10000E-03    25.792        .90712E-02** at limit **
  12  norm          .10000E-03    3.7592        .90712E-02** at limit **
  13  Prefactor     12.468        6.8726        .28365E-02   -.34356E-02
  14  Prefactor     31.714        25.173        .17788E-02   -.42487E-03
  15  norm          2.3146        10.158        .67434E-02    .27007E-03
  16  Prefactor     .10000E-03    83.991        .90712E-02** at limit **
  17  Prefactor     10.483        20.512        .30925E-02    .46325E-04
  18  Prefactor     .10000E-03    4.0632        .90712E-02** at limit **
  19  Normalizat    .92630        .18189        .67899E-01    .26689E-04
  20  Prefactor     .94165        .11346        .45534E-01    .16450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.764133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 11.5592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.4685
  Prefactor  = 31.7139
  norm       = 2.31462
  Prefactor  = 0.000100001
  Prefactor  = 10.4833
  Prefactor  = 0.0001
  Normalizat = 0.926304
  Prefactor  = 0.94165
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.125     FROM HESSE     STATUS=OK           283 CALLS     2301 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.2286        .16606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .76413        .16832        .15357E-04   -1.5533    
   4  Prefactor     .10000E-03    8.0194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.7927        .10799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2204        .16556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.559        14.193        .11783E-03   -1.5028    
   8  Prefactor     .10000E-03    2.9479        .13787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    41.006        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.7752        .15636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.468        6.8685        .11346E-03   -1.5002    
  14  Prefactor     31.714        25.164        .71151E-04   -1.4581    
  15  norm          2.3146        10.117        .26974E-03   -1.5404    
  16  Prefactor     .10000E-03    84.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.483        20.514        .12370E-03   -1.5060    
  18  Prefactor     .10000E-03    4.1063        .16273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92630        .21036        .30037E-03   -.95542    
  20  Prefactor     .94165        .13159        .18862E-03   -.94701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68653e-09
Minuit parameter uncertainties:
  1  4.22901e-05
  2  0.000168845
  3  0.16832
  4  4.89247e-05
  5  1.71629e-07
  6  0.000181034
  7  14.1969
  8  1.42898e-07
  9  2.88626e-05
  10  0.000371435
  11  0.000168228
  12  3.49409e-07
  13  6.86889
  14  25.1722
  15  9.68088
  16  0.000445965
  17  20.528
  18  1.38255e-05
  19  0.210552
  20  0.131633
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.416e-01  1.316e-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.263e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.61
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 8.75e-08 +/- 4.81e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.09e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6837.30684453
delta logL = 0.818398996713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6837.30572032
delta logL = 0.819523203311

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.549       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2003       1.0000          .0000       10.000    
     3 'Normalizat'    .95275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92749       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=   6837.306     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      243 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.549        28.214        .23249E-02    .15904E-02
   2  Index         2.2002        1.0377        .17481        .12830E-04
   3  Normalizat    .95272        .18221        .67051E-01    .33758E-04
   4  Prefactor     .92752        .11632        .45354E-01    .19232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5491
  Index      = 2.20016
  Normalizat = 0.952717
  Prefactor  = 0.927517
 **********
 **   18 **HESSE 
 **********

 FCN=   6837.306     FROM HESSE     STATUS=OK            31 CALLS      274 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.549        9.8309        .92995E-04   -1.4846    
   2  Index         2.2002        .40622        .69057E-02   -.59435    
   3  Normalizat    .95272        .20767        .29660E-03   -.94632    
   4  Prefactor     .92752        .13145        .18975E-03   -.95186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27287e-09
Minuit parameter uncertainties:
  1  9.83176
  2  0.406874
  3  0.207848
  4  0.131495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995969': 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) = 6837.3057202
delta logL = 0.819523326677

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.275e-01  1.315e-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.527e-01  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.23
Ra Dec: 352.629 11.048
Photon Index (Free Index): 2.20 +/- 0.41
Photon Flux (Free Index): 7.00e-08 +/- 4.14e-08
Energy Flux (Free Index): 3.14e-05 +/- 2.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/995969/cmap_HighResolution_330825601_331084801_4FGL_J2330.5+1102_daily_bin353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.75e-08', energy_flux2='3.14e-05', photon_flux_error='4.81e-08', dlogl='8.20e-01', energy_flux='1.98e-05', photon_flux2='7.00e-08', job_status='DONE', time_completed='2021-09-29 22:28:11.427773', photon_index_error2='0.41', photon_index2='2.20', ts='5.61', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.22e-05', EG='0.93', time_epoch_completed='1632979691.43', return_code='0', job_id='995969', GAL2='0.93', EG2='0.95', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='4.14e-08', ts2='7.23', photon_index='2.79' WHERE bin_id='353' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:28:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 995969: <4FGL_J2330.5+1102_daily_bin353> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin353> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 22:15:32 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:15:33 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:15:33 2021
Terminated at Wed Sep 29 22:28:12 2021
Results reported at Wed Sep 29 22:28:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin353 352.629 11.0479 330825601 331084801 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 :                                   561.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

