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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin89
RA = 352.629, Dec = 11.0479
tmin = 262396801, tmax = 262656001
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='994538', job_status='RUN', time_executed='2021-09-29 22:10:48.145590', time_epoch_executed='1632978648.15' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994538

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994538/ft1_4FGL_J2330.5+1102_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994538/ft2_4FGL_J2330.5+1102_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994538/ft1_4FGL_J2330.5+1102_daily_bin89.fits outfile=/scratch/kocevski/994538/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin89.fits ra=352.629 dec=11.0479 rad=12.0 tmin=262396801.0 tmax=262656001.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.40
user 1.23
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994538/ft2_4FGL_J2330.5+1102_daily_bin89.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/994538/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin89.fits evtable="EVENTS" outfile="/scratch/kocevski/994538/ft1_filtered_4FGL_J2330.5+1102_daily_bin89.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/994538/ft1_filtered_4FGL_J2330.5+1102_daily_bin89.fits" evtable="EVENTS" scfile=/scratch/kocevski/994538/ft2_4FGL_J2330.5+1102_daily_bin89.fits sctable="SC_DATA" outfile=/scratch/kocevski/994538/ltcube_262396801_262656001_4FGL_J2330.5+1102_daily_bin89.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/994538/ft2_4FGL_J2330.5+1102_daily_bin89.fits
.....................!
real 12.42
user 12.08
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994538/ft1_filtered_4FGL_J2330.5+1102_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/994538/ft2_4FGL_J2330.5+1102_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/994538/ltcube_262396801_262656001_4FGL_J2330.5+1102_daily_bin89.fits outfile=/scratch/kocevski/994538/expmap_262396801_262656001_4FGL_J2330.5+1102_daily_bin89.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/994538/ltcube_262396801_262656001_4FGL_J2330.5+1102_daily_bin89.fits
.....................!
real 189.83
user 185.00
sys 4.51

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/994538/ft1_filtered_4FGL_J2330.5+1102_daily_bin89.fits scfile=/scratch/kocevski/994538/ft2_4FGL_J2330.5+1102_daily_bin89.fits outfile=/scratch/kocevski/994538/cmap_262396801_262656001_4FGL_J2330.5+1102_daily_bin89.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.34
sys 0.18

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.814       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.418       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5176       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0487       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22630E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.643       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.963       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2095       1.0000         .10000E-03   10000.    
    12 'norm      '    12.329       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1518       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.716       1.0000         .10000E-03   10000.    
    15 'norm      '    5.4911       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.109       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1828       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .74261       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10754.37     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     2000 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.814        29.535        .13962E-06    .12809E-04
   2  Prefactor     20.418        15.094       -.12494E-06    .23591E-04
   3  Prefactor     1.5176        .20147       -.12436E-07    .25778E-02
   4  Prefactor     .10000E-03    11.427        .10588E-05** at limit **
   5  Prefactor     9.0499        6.5921       -.27327E-06    .12349E-03
   6  Prefactor     .10000E-03    11.044       -.38003E-05** at limit **
   7  Prefactor     .10000E-03    4.8492       -.15367E-06** at limit **
   8  Prefactor     .10002E-03    2.4734       -.26339E-05** at limit **
   9  Prefactor     13.643        7.7834        .14138E-05    .83990E-05
  10  Prefactor     13.980        14.130        .14758E-04    .46132E-03
  11  Prefactor     5.1946        86.132       -.57780E-04   -.10158E-05
  12  norm          12.319        10.267       -.42416E-05   -.24653E-03
  13  Prefactor     4.1613        9.2936        .63223E-05   -.12801E-03
  14  Prefactor     34.711        23.090       -.51275E-05   -.73269E-04
  15  norm          5.4906        6.3670       -.45398E-06    .18504E-04
  16  Prefactor     .10000E-03    17.302       -.73442E-05** at limit **
  17  Prefactor     .10000E-03    15.878        .13063E-04** at limit **
  18  Prefactor     16.108        6.3816       -.19678E-06    .14123E-04
  19  Normalizat    1.1828        .16598        .97804E-07    .41816E-03
  20  Prefactor     .74267        .97032E-01    .36965E-06    .44936E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.8145
  Prefactor  = 20.4176
  Prefactor  = 1.51761
  Prefactor  = 0.0001
  Prefactor  = 9.04989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 13.6434
  Prefactor  = 13.9799
  Prefactor  = 5.19461
  norm       = 12.3187
  Prefactor  = 4.16131
  Prefactor  = 34.7109
  norm       = 5.4906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1085
  Normalizat = 1.18278
  Prefactor  = 0.742669
 **********
 **   18 **HESSE 
 **********

 FCN=   10754.37     FROM HESSE     STATUS=OK           293 CALLS     2293 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.814        29.584        .58602E-04   -1.4338    
   2  Prefactor     20.418        15.116        .88640E-04   -1.4804    
   3  Prefactor     1.5176        .20228        .15814E-04   -1.5462    
   4  Prefactor     .10000E-03    11.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0499        6.5887        .13324E-03   -1.5106    
   6  Prefactor     .10000E-03    11.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    6.1133        .31209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.643        7.7752        .10844E-03   -1.4969    
  10  Prefactor     13.980        14.137        .10719E-03   -1.4960    
  11  Prefactor     5.1946        86.266        .17612E-03   -1.5252    
  12  norm          12.319        10.032        .11408E-03   -1.5006    
  13  Prefactor     4.1613        9.0465        .19781E-03   -1.5300    
  14  Prefactor     34.711        23.086        .68014E-04   -1.4529    
  15  norm          5.4906        6.3652        .17146E-03   -1.5239    
  16  Prefactor     .10000E-03    17.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.108        6.3874        .99791E-04   -1.4905    
  19  Normalizat    1.1828        .19410        .29179E-03   -.87137    
  20  Prefactor     .74267        .11332        .21917E-03   -1.0188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79693e-09
Minuit parameter uncertainties:
  1  29.5934
  2  15.1187
  3  0.202281
  4  7.52931e-06
  5  6.58927
  6  8.12306e-06
  7  2.04484e-05
  8  0.000698753
  9  7.77578
  10  14.1405
  11  42.4093
  12  10.0336
  13  9.04949
  14  23.0922
  15  6.36597
  16  0.000112875
  17  2.05476e-05
  18  6.38766
  19  0.194217
  20  0.113353
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  4.161e+00  9.049e+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:  7.427e-01  1.134e-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.183e+00  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/994538/likelihoodResults_262396801_262656001_4FGL_J2330.5+1102_daily_bin89.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) = 10753.9468864
delta logL = 0.427740504989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10753.9416546
delta logL = 0.432972322984

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9767       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9855       1.0000          .0000       10.000    
     3 'Normalizat'    1.1378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76069       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=   10753.94     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      257 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9740        28.956        .73711E-02    .13469E-02
   2  Index         3.9867        3.2565        .20589        .14646E-03
   3  Normalizat    1.1378        .38887E-01    .67017E-01    .11163E-04
   4  Prefactor     .76068        .23832E-01    .43203E-01    .15881E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.97396
  Index      = 3.98671
  Normalizat = 1.1378
  Prefactor  = 0.760675
 **********
 **   18 **HESSE 
 **********

 FCN=   10753.94     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9740        80.522        .12785E-03   -1.5427    
   2  Index         3.9867        6.7906        .86377E-02   -.20407    
   3  Normalizat    1.1378        .18131        .29649E-03   -.88547    
   4  Prefactor     .76068        .11251        .21677E-03   -1.0119    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11855e-06
Minuit parameter uncertainties:
  1  25.2508
  2  8.67752
  3  0.181411
  4  0.11254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994538': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10753.9416543
delta logL = 0.432972622175

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.974e+00  2.525e+01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  3.987e+00  8.678e+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:  7.607e-01  1.125e-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.138e+00  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 352.629 11.048
Photon Index (Free Index): 3.99 +/- 8.68
Photon Flux (Free Index): 6.64e-08 +/- 7.54e-08
Energy Flux (Free Index): 9.97e-06 +/- 2.28e-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/994538/cmap_HighResolution_262396801_262656001_4FGL_J2330.5+1102_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', energy_flux2='9.97e-06', dlogl='4.33e-01', photon_flux2='6.64e-08', job_status='DONE', time_completed='2021-09-29 22:23:49.165666', photon_index_error2='8.68', photon_index2='3.99', ts='0.38', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='2.28e-05', EG='1.18', time_epoch_completed='1632979429.17', return_code='0', job_id='994538', GAL2='0.76', EG2='1.14', return_code2='102', photon_flux_error2='7.54e-08', ts2='1.34', photon_index='2.79' WHERE bin_id='89' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:23:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 994538: <4FGL_J2330.5+1102_daily_bin89> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin89 352.629 11.0479 262396801 262656001 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 :                                   779.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            790 sec.

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

