/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 197 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 = 6705
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2330.5+1102_daily_bin59
RA = 352.629, Dec = 11.0479
tmin = 254620801, tmax = 254880001
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='994495', job_status='RUN', time_executed='2021-09-29 22:14:06.337663', time_epoch_executed='1632978846.34' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994495

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994495/ft1_4FGL_J2330.5+1102_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994495/ft2_4FGL_J2330.5+1102_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994495/ft1_4FGL_J2330.5+1102_daily_bin59.fits outfile=/scratch/kocevski/994495/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin59.fits ra=352.629 dec=11.0479 rad=12.0 tmin=254620801.0 tmax=254880001.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 1.33
user 1.15
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994495/ft1_filtered_4FGL_J2330.5+1102_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/994495/ft2_4FGL_J2330.5+1102_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/994495/ltcube_254620801_254880001_4FGL_J2330.5+1102_daily_bin59.fits outfile=/scratch/kocevski/994495/expmap_254620801_254880001_4FGL_J2330.5+1102_daily_bin59.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/994495/ltcube_254620801_254880001_4FGL_J2330.5+1102_daily_bin59.fits
.....................!
real 190.73
user 185.08
sys 5.33

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/994495/ft1_filtered_4FGL_J2330.5+1102_daily_bin59.fits scfile=/scratch/kocevski/994495/ft2_4FGL_J2330.5+1102_daily_bin59.fits outfile=/scratch/kocevski/994495/cmap_254620801_254880001_4FGL_J2330.5+1102_daily_bin59.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994495/ft1_filtered_4FGL_J2330.5+1102_daily_bin59.fits scfile=/scratch/kocevski/994495/ft2_4FGL_J2330.5+1102_daily_bin59.fits outfile=/scratch/kocevski/994495/cmap_HighResolution_254620801_254880001_4FGL_J2330.5+1102_daily_bin59.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.093       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2051       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.424       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .53630       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10979E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2420       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.762       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    28.363       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.711       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7765       1.0000         .10000E-03   10000.    
    15 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .92183E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6702       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1961       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86050       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=   10826.24     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2374 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.379        .90712E-02** at limit **
   2  Prefactor     10.094        15.904        .31532E-02    .53722E-03
   3  Prefactor     1.2051        .18310        .36515E-02    .62151E-03
   4  Prefactor     18.425        22.465        .23327E-02   -.15868E-04
   5  Prefactor     .51146        4.7844        .67110E-01    .61258E-03
   6  Prefactor     .10000E-03    11.629        .90712E-02** at limit **
   7  Prefactor     .10000E-03    30.493        .90712E-02** at limit **
   8  Prefactor     .10000E-03    1.6292        .90712E-02** at limit **
   9  Prefactor     4.2419        5.0142        .48909E-02    .37406E-03
  10  Prefactor     19.767        14.934        .22525E-02    .21613E-02
  11  Prefactor     .10000E-03    12.007        .90712E-02** at limit **
  12  norm          28.363        10.819        .18806E-02    .55869E-04
  13  Prefactor     14.714        8.7205        .26107E-02   -.11439E-02
  14  Prefactor     4.7733        13.281        .46023E-02   -.26669E-03
  15  norm          .10000E-03    13.536        .90712E-02** at limit **
  16  Prefactor     .10000E-03    6.5898        .90712E-02** at limit **
  17  Prefactor     .10007E-03    10.858        .11891    ** at limit **
  18  Prefactor     4.6719        6.5915        .46555E-02    .34735E-02
  19  Normalizat    1.1958        .17131        .68466E-01    .18377E-03
  20  Prefactor     .86061        .10111        .44500E-01    .22049E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 10.094
  Prefactor  = 1.20512
  Prefactor  = 18.425
  Prefactor  = 0.511457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.24192
  Prefactor  = 19.767
  Prefactor  = 0.000100002
  norm       = 28.3633
  Prefactor  = 14.7135
  Prefactor  = 4.77335
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100072
  Prefactor  = 4.6719
  Normalizat = 1.19583
  Prefactor  = 0.860612
 **********
 **   18 **HESSE 
 **********

 FCN=   10826.24     FROM HESSE     STATUS=OK           305 CALLS     2679 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.094        15.914        .12613E-03   -1.5072    
   3  Prefactor     1.2051        .18278        .16151E-04   -1.5488    
   4  Prefactor     18.425        22.486        .93309E-04   -1.4849    
   5  Prefactor     .51146        21.931        .41673E-02   -1.5565    
   6  Prefactor     .10000E-03    11.934        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6359        .12962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2419        5.0047        .19564E-03   -1.5296    
  10  Prefactor     19.767        14.948        .90098E-04   -1.4818    
  11  Prefactor     .10000E-03    12.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          28.363        10.805        .75226E-04   -1.4642    
  13  Prefactor     14.714        8.7437        .10443E-03   -1.4941    
  14  Prefactor     4.7733        13.248        .18409E-03   -1.5271    
  15  norm          .10000E-03    13.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.5935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10007E-03    15.055        .95993E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6719        6.5938        .18622E-03   -1.5276    
  19  Normalizat    1.1958        .20022        .30292E-03   -.86732    
  20  Prefactor     .86061        .11804        .21502E-03   -.97531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70117e-08
Minuit parameter uncertainties:
  1  0.00017173
  2  15.9204
  3  0.182779
  4  22.4958
  5  6.70033
  6  0.000120027
  7  1.38354e-05
  8  3.12691e-06
  9  5.00518
  10  14.9509
  11  0.000324409
  12  10.8058
  13  8.74448
  14  13.2557
  15  0.000182502
  16  1.03e-05
  17  0.00208965
  18  6.59478
  19  0.200346
  20  0.118079
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.606e-01  1.181e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.196e+00  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.98
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 6.13e-08
Energy Flux (Fixed Index): 2.33e-05 +/- 1.39e-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) = 10824.6866016
delta logL = 1.55502273461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10824.6795594
delta logL = 1.56206491507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3654       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8707       1.0000          .0000       10.000    
     3 'Normalizat'    1.1368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88705       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10824.68     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      283 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3648        9.7751        .92403E-04   -.10706E-02
   2  Index         3.8708        1.2538        .50667E-02   -.26626E-03
   3  Normalizat    1.1368        .19635        .30910E-03   -.38758E-03
   4  Prefactor     .88705        .11890        .21214E-03   -.54119E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.36475
  Index      = 3.87077
  Normalizat = 1.13676
  Prefactor  = 0.887053
 **********
 **   18 **HESSE 
 **********

 FCN=   10824.68     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3648        6.0061        .36961E-05   -1.5245    
   2  Index         3.8708        .77508        .20267E-03   -.22781    
   3  Normalizat    1.1368        .19647        .12364E-04   -.88580    
   4  Prefactor     .88705        .11865        .42429E-04   -.96595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02805e-10
Minuit parameter uncertainties:
  1  6.00682
  2  0.778392
  3  0.196598
  4  0.118684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994495': 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) = 10824.6795594
delta logL = 1.56206492349

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.871e-01  1.187e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.137e+00  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.53
Ra Dec: 352.629 11.048
Photon Index (Free Index): 3.87 +/- 0.78
Photon Flux (Free Index): 1.54e-07 +/- 6.33e-08
Energy Flux (Free Index): 2.35e-05 +/- 1.00e-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/994495/cmap_HighResolution_254620801_254880001_4FGL_J2330.5+1102_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='2.35e-05', photon_flux_error='6.13e-08', dlogl='1.56e+00', energy_flux='2.33e-05', photon_flux2='1.54e-07', job_status='DONE', time_completed='2021-09-29 22:26:48.412252', photon_index_error2='0.78', photon_index2='3.87', ts='4.98', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.00e-05', EG='1.20', time_epoch_completed='1632979608.41', return_code='0', job_id='994495', GAL2='0.89', EG2='1.14', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='6.33e-08', ts2='8.53', photon_index='2.79' WHERE bin_id='59' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:26:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 994495: <4FGL_J2330.5+1102_daily_bin59> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin59> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 22:10:36 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:10:37 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:10:37 2021
Terminated at Wed Sep 29 22:26:49 2021
Results reported at Wed Sep 29 22:26:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin59 352.629 11.0479 254620801 254880001 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 :                                   762.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

