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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1477
RA = 352.629, Dec = 11.0479
tmin = 622166401, tmax = 622425601
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='2719', job_status='RUN', time_executed='2021-09-29 22:43:49.463434', time_epoch_executed='1632980629.46' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1477'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2719

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2719/ft1_4FGL_J2330.5+1102_daily_bin1477.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2719/ft2_4FGL_J2330.5+1102_daily_bin1477.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2719/ft1_4FGL_J2330.5+1102_daily_bin1477.fits outfile=/scratch/kocevski/2719/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1477.fits ra=352.629 dec=11.0479 rad=12.0 tmin=622166401.0 tmax=622425601.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.67
user 3.43
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2719/ft1_filtered_4FGL_J2330.5+1102_daily_bin1477.fits" evtable="EVENTS" scfile=/scratch/kocevski/2719/ft2_4FGL_J2330.5+1102_daily_bin1477.fits sctable="SC_DATA" outfile=/scratch/kocevski/2719/ltcube_622166401_622425601_4FGL_J2330.5+1102_daily_bin1477.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/2719/ft2_4FGL_J2330.5+1102_daily_bin1477.fits
.....................!
real 12.01
user 11.62
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2719/ft1_filtered_4FGL_J2330.5+1102_daily_bin1477.fits evtable="EVENTS" scfile=/scratch/kocevski/2719/ft2_4FGL_J2330.5+1102_daily_bin1477.fits sctable="SC_DATA" expcube=/scratch/kocevski/2719/ltcube_622166401_622425601_4FGL_J2330.5+1102_daily_bin1477.fits outfile=/scratch/kocevski/2719/expmap_622166401_622425601_4FGL_J2330.5+1102_daily_bin1477.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/2719/ltcube_622166401_622425601_4FGL_J2330.5+1102_daily_bin1477.fits
.....................!
real 190.22
user 185.01
sys 4.85

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

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .69877E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .53232       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16398E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.799       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8451       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.118       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .33813       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.563       1.0000         .10000E-03   10000.    
    15 'norm      '    11.499       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .85634       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0874       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=   6648.393     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     1744 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13301E-03    78.444       -.14313E-05** at limit **
   2  Prefactor     .13591E-03    727.48       -.18293E-05** at limit **
   3  Prefactor     .53249        .16662       -.24456E-06   -.48283E-02
   4  Prefactor     .16483E-03    65.775       -.28811E-07** at limit **
   5  Prefactor     .10000E-03    2.2953       -.88012E-06** at limit **
   6  Prefactor     .10000E-03    30.016        .19897E-05** at limit **
   7  Prefactor     22.821        2.2926       -.26857E-08    .75658E-03
   8  Prefactor     .10000E-03    3.3867        .44575E-06** at limit **
   9  Prefactor     3.8475        5.2818       -.63725E-06    .21169E-02
  10  Prefactor     .10000E-03    8.4939        .42760E-06** at limit **
  11  Prefactor     .10000E-03    21.416       -.76645E-06** at limit **
  12  norm          12.101        10.128       -.10283E-05   -.29676E-02
  13  Prefactor     .35508        48.822        .68919E-06    .10967E-02
  14  Prefactor     15.559        1.2889       -.65746E-07   -.14081E-03
  15  norm          11.496        1.2282       -.33725E-07   -.32546E-04
  16  Prefactor     .10000E-03    11.448        .63300E-06** at limit **
  17  Prefactor     .10000E-03    5.6149        .52656E-06** at limit **
  18  Prefactor     .10000E-03    7.1606       -.44970E-06** at limit **
  19  Normalizat    .85638        .23634       -.38294E-06   -.99998E-04
  20  Prefactor     1.0873        .14423       -.11909E-06   -.15294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000133014
  Prefactor  = 0.000135914
  Prefactor  = 0.532487
  Prefactor  = 0.000164827
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 22.8211
  Prefactor  = 0.0001
  Prefactor  = 3.84752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.101
  Prefactor  = 0.355075
  Prefactor  = 15.5594
  norm       = 11.496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.856377
  Prefactor  = 1.08731
 **********
 **   18 **HESSE 
 **********

 FCN=   6648.393     FROM HESSE     STATUS=OK           343 CALLS     2087 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13301E-03    118.59        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .13591E-03    10.022        .13597       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .53249        .17103        .40473E-02   -1.5562    
   4  Prefactor     .16483E-03    141.93        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2880        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9577        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.821        26.552        .20972E-02   -1.4752    
   8  Prefactor     .10000E-03    3.3396        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.8475        10.944        .51452E-02   -1.5316    
  10  Prefactor     .10000E-03    8.4762        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.412        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.101        11.517        .28769E-02   -1.5012    
  13  Prefactor     .35508        10.153        .67059E-01   -1.5589    
  14  Prefactor     15.559        28.985        .25381E-02   -1.4919    
  15  norm          11.496        11.383        .29534E-02   -1.5030    
  16  Prefactor     .10000E-03    11.443        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.6149        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.9744        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .85638        .21244        .75735E-01   -.98010    
  20  Prefactor     1.0873        .12661        .38088E-01   -.89873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66827e-07
Minuit parameter uncertainties:
  1  0.125391
  2  0.0379503
  3  0.171025
  4  0.192298
  5  1.34918e-05
  6  0.000232394
  7  26.5662
  8  8.50517e-06
  9  10.9494
  10  1.53882e-05
  11  0.000166736
  12  11.5193
  13  3.79756
  14  29.0109
  15  11.3851
  16  1.54884e-05
  17  1.41786e-05
  18  1.13025e-05
  19  0.212649
  20  0.126645
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  3.551e-01  3.798e+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.087e+00  1.266e-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.564e-01  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/2719/likelihoodResults_622166401_622425601_4FGL_J2330.5+1102_daily_bin1477.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): 102
logL (Free Index) = 6647.02833987
delta logL = 1.3650015893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6646.750477
delta logL = 1.64286445738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28813E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9996       1.0000          .0000       10.000    
     3 'Normalizat'    .73221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1392       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=   6646.750     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      404 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28785E-03    .96426E-02    .21738E-03** at limit **
   2  Index        10.0000        5.0001        .50000    ** at limit **
   3  Normalizat    .73205        .12616        .81182E-01    .21648E-04
   4  Prefactor     1.1395        .76806E-01    .36256E-01    .11015E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000287847
  Index      = 10
  Normalizat = 0.732051
  Prefactor  = 1.13949
 **********
 **   18 **HESSE 
 **********

 FCN=   6646.750     FROM HESSE     STATUS=OK            35 CALLS      439 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28785E-03    .26680E-03    .11186E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.3492        .35842        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .73205        .24122        .35947E-03   -1.0264    
   4  Prefactor     1.1395        .14853        .18388E-03   -.88214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77513e-10
Minuit parameter uncertainties:
  1  0.000266796
  2  0.000365466
  3  0.241569
  4  0.148589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2719': 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) = 6646.75046638
delta logL = 1.64287507874

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  2.878e-04  2.668e-04  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  1.000e+01  3.655e-04  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.139e+00  1.486e-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.321e-01  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.55
Ra Dec: 352.629 11.048
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.11e-07 +/- 9.97e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.12e-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/2719/cmap_HighResolution_622166401_622425601_4FGL_J2330.5+1102_daily_bin1477.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='1.64e+00', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-29 22:53:47.536953', photon_index_error2='0.00', photon_index2='10.00', ts='0.00', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.12e-05', EG='0.86', time_epoch_completed='1632981227.54', return_code='0', job_id='2719', GAL2='1.14', EG2='0.73', return_code2='0', photon_flux_error2='9.97e-08', ts2='3.55', photon_index='2.79' WHERE bin_id='1477' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:53:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 2719: <4FGL_J2330.5+1102_daily_bin1477> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1477 352.629 11.0479 622166401 622425601 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 :                                   593.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            817 sec.

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

