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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin50
RA = 352.629, Dec = 11.0479
tmin = 252288001, tmax = 252547201
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='994482', job_status='RUN', time_executed='2021-09-29 22:12:58.099340', time_epoch_executed='1632978778.1' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994482

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994482/ft1_4FGL_J2330.5+1102_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994482/ft2_4FGL_J2330.5+1102_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994482/ft1_4FGL_J2330.5+1102_daily_bin50.fits outfile=/scratch/kocevski/994482/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin50.fits ra=352.629 dec=11.0479 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.53
user 2.34
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994482/ft2_4FGL_J2330.5+1102_daily_bin50.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/994482/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin50.fits evtable="EVENTS" outfile="/scratch/kocevski/994482/ft1_filtered_4FGL_J2330.5+1102_daily_bin50.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.46
user 0.32
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994482/ft1_filtered_4FGL_J2330.5+1102_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/994482/ft2_4FGL_J2330.5+1102_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/994482/ltcube_252288001_252547201_4FGL_J2330.5+1102_daily_bin50.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/994482/ft2_4FGL_J2330.5+1102_daily_bin50.fits
.....................!
real 12.61
user 12.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994482/ft1_filtered_4FGL_J2330.5+1102_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/994482/ft2_4FGL_J2330.5+1102_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/994482/ltcube_252288001_252547201_4FGL_J2330.5+1102_daily_bin50.fits outfile=/scratch/kocevski/994482/expmap_252288001_252547201_4FGL_J2330.5+1102_daily_bin50.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/994482/ltcube_252288001_252547201_4FGL_J2330.5+1102_daily_bin50.fits
.....................!
real 190.31
user 185.70
sys 4.29

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/994482/ft1_filtered_4FGL_J2330.5+1102_daily_bin50.fits scfile=/scratch/kocevski/994482/ft2_4FGL_J2330.5+1102_daily_bin50.fits outfile=/scratch/kocevski/994482/cmap_252288001_252547201_4FGL_J2330.5+1102_daily_bin50.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    2.0171       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6679       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .66050       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10940E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.064       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.088       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7064       1.0000         .10000E-03   10000.    
    15 'norm      '    6.9508       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.691       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1516       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .31270       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2610       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=   7016.586     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     2038 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.472       -.38252E-05** at limit **
   2  Prefactor     .10000E-03    7.6728        .10660E-06** at limit **
   3  Prefactor     2.0171        .26423        .12289E-07    .30509E-02
   4  Prefactor     .10000E-03    16.389        .29175E-05** at limit **
   5  Prefactor     .10000E-03    13.064       -.21240E-05** at limit **
   6  Prefactor     7.6684        8.9674        .74654E-07    .87161E-03
   7  Prefactor     .67727        85.461        .21259E-04   -.12307E-03
   8  Prefactor     .10000E-03    3.8714       -.11611E-07** at limit **
   9  Prefactor     .10000E-03    6.0361        .27825E-05** at limit **
  10  Prefactor     .10000E-03    6.0560       -.44322E-07** at limit **
  11  Prefactor     .10000E-03    15.453        .30672E-05** at limit **
  12  norm          15.072        12.059       -.80099E-06   -.47449E-05
  13  Prefactor     14.088        10.249        .59353E-06    .22550E-03
  14  Prefactor     3.7037        29.075        .49548E-05    .14599E-03
  15  norm          6.9502        10.169       -.50716E-07    .79571E-05
  16  Prefactor     .10000E-03    26.262        .20317E-05** at limit **
  17  Prefactor     18.689        21.964        .51103E-06    .32062E-04
  18  Prefactor     6.1513        5.5353        .16650E-06    .54938E-04
  19  Normalizat    .31270        .24748       -.28171E-07    .91591E-04
  20  Prefactor     1.2611        .15254       -.37506E-06    .14611E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 2.01708
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.66836
  Prefactor  = 0.677266
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 15.0724
  Prefactor  = 14.088
  Prefactor  = 3.70366
  norm       = 6.95025
  Prefactor  = 0.0001
  Prefactor  = 18.6894
  Prefactor  = 6.15125
  Normalizat = 0.312701
  Prefactor  = 1.26107
 **********
 **   18 **HESSE 
 **********

 FCN=   7016.586     FROM HESSE     STATUS=OK           293 CALLS     2331 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.6774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0171        .26331        .14905E-04   -1.5424    
   4  Prefactor     .10000E-03    16.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6684        9.7276        .72409E-03   -1.5154    
   7  Prefactor     .67727        96.744        .53237E-02   -1.5543    
   8  Prefactor     .10000E-03    3.9454        .16086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.003        .34443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.072        11.890        .10319E-03   -1.4931    
  13  Prefactor     14.088        10.196        .10671E-03   -1.4957    
  14  Prefactor     3.7037        29.338        .20976E-03   -1.5323    
  15  norm          6.9502        10.163        .15217E-03   -1.5181    
  16  Prefactor     .10000E-03    26.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.689        21.759        .92643E-04   -1.4843    
  18  Prefactor     6.1513        5.5230        .16186E-03   -1.5212    
  19  Normalizat    .31270        .22541        .51112E-03   -1.2209    
  20  Prefactor     1.2611        .14343        .17595E-03   -.84472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04449e-09
Minuit parameter uncertainties:
  1  0.00045092
  2  9.43234e-06
  3  0.263308
  4  0.000287439
  5  7.6118e-05
  6  9.72958
  7  16.2146
  8  1.84777e-06
  9  0.000628974
  10  4.08777e-06
  11  0.00029297
  12  11.8918
  13  10.1972
  14  20.8615
  15  10.1651
  16  0.000189704
  17  21.7678
  18  5.52341
  19  0.226066
  20  0.143479
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.409e+01  1.020e+01  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.261e+00  1.435e-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:  3.127e-01  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.04
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 9.88e-08 +/- 7.14e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 1.62e-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) = 7015.44859341
delta logL = 1.13700357895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7015.43514505
delta logL = 1.15045193609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9227       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2605       1.0000          .0000       10.000    
     3 'Normalizat'    .24453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2966       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=   7015.435     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      257 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9213        21.000        .59406E-02    .67553E-03
   2  Index         4.2609        3.1046        .11884        .17913E-03
   3  Normalizat    .24454        .72615E-01    .13021        .86711E-04
   4  Prefactor     1.2966        .47647E-01    .32669E-01   -.18111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.92128
  Index      = 4.26086
  Normalizat = 0.244539
  Prefactor  = 1.29656
 **********
 **   18 **HESSE 
 **********

 FCN=   7015.435     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9213        32.461        .64713E-04   -1.5366    
   2  Index         4.2609        3.9666        .47837E-02   -.14837    
   3  Normalizat    .24454        .21929        .57487E-03   -1.2631    
   4  Prefactor     1.2966        .14741        .17376E-03   -.83409    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.45317e-10
Minuit parameter uncertainties:
  1  19.489
  2  4.60322
  3  0.220069
  4  0.14746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994482': 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) = 7015.43514495
delta logL = 1.15045203888

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.297e+00  1.475e-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:  2.445e-01  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.79
Ra Dec: 352.629 11.048
Photon Index (Free Index): 4.26 +/- 4.60
Photon Flux (Free Index): 1.45e-07 +/- 7.10e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.79e-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/994482/cmap_HighResolution_252288001_252547201_4FGL_J2330.5+1102_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.88e-08', energy_flux2='2.09e-05', photon_flux_error='7.14e-08', dlogl='1.15e+00', energy_flux='2.23e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-29 22:22:26.352173', photon_index_error2='4.60', photon_index2='4.26', ts='4.04', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='1.79e-05', EG='0.31', time_epoch_completed='1632979346.35', return_code='0', job_id='994482', GAL2='1.30', EG2='0.24', return_code2='102', energy_flux_error='1.62e-05', photon_flux_error2='7.10e-08', ts2='6.79', photon_index='2.79' WHERE bin_id='50' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:22:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 994482: <4FGL_J2330.5+1102_daily_bin50> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin50> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 22:10:35 2021
Job was executed on host(s) <bullet0199>, 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:22:27 2021
Results reported at Wed Sep 29 22:22:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin50 352.629 11.0479 252288001 252547201 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 :                                   567.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            712 sec.

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

