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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1388
RA = 352.629, Dec = 11.0479
tmin = 599097601, tmax = 599356801
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='1651', job_status='RUN', time_executed='2021-09-29 22:38:26.718477', time_epoch_executed='1632980306.72' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1651/ft1_4FGL_J2330.5+1102_daily_bin1388.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1651/ft2_4FGL_J2330.5+1102_daily_bin1388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1651/ft1_4FGL_J2330.5+1102_daily_bin1388.fits outfile=/scratch/kocevski/1651/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1388.fits ra=352.629 dec=11.0479 rad=12.0 tmin=599097601.0 tmax=599356801.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.88
user 2.63
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1651/ft2_4FGL_J2330.5+1102_daily_bin1388.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/1651/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1388.fits evtable="EVENTS" outfile="/scratch/kocevski/1651/ft1_filtered_4FGL_J2330.5+1102_daily_bin1388.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/1651/ft1_filtered_4FGL_J2330.5+1102_daily_bin1388.fits" evtable="EVENTS" scfile=/scratch/kocevski/1651/ft2_4FGL_J2330.5+1102_daily_bin1388.fits sctable="SC_DATA" outfile=/scratch/kocevski/1651/ltcube_599097601_599356801_4FGL_J2330.5+1102_daily_bin1388.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/1651/ft2_4FGL_J2330.5+1102_daily_bin1388.fits
.....................!
real 12.18
user 11.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1651/ft1_filtered_4FGL_J2330.5+1102_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/1651/ft2_4FGL_J2330.5+1102_daily_bin1388.fits sctable="SC_DATA" expcube=/scratch/kocevski/1651/ltcube_599097601_599356801_4FGL_J2330.5+1102_daily_bin1388.fits outfile=/scratch/kocevski/1651/expmap_599097601_599356801_4FGL_J2330.5+1102_daily_bin1388.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/1651/ltcube_599097601_599356801_4FGL_J2330.5+1102_daily_bin1388.fits
.....................!
real 190.47
user 185.23
sys 4.89

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/1651/ft1_filtered_4FGL_J2330.5+1102_daily_bin1388.fits scfile=/scratch/kocevski/1651/ft2_4FGL_J2330.5+1102_daily_bin1388.fits outfile=/scratch/kocevski/1651/cmap_599097601_599356801_4FGL_J2330.5+1102_daily_bin1388.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1651/ft1_filtered_4FGL_J2330.5+1102_daily_bin1388.fits scfile=/scratch/kocevski/1651/ft2_4FGL_J2330.5+1102_daily_bin1388.fits outfile=/scratch/kocevski/1651/cmap_HighResolution_599097601_599356801_4FGL_J2330.5+1102_daily_bin1388.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.629 yref=11.0479 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14548E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .61827       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.786       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9221       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7548       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3678       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.584       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5551       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .99022       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3491       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11266E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10352E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6320       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8167       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86855       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96095       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=   9778.428     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2047 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.469        .14419E-05** at limit **
   2  Prefactor     .10000E-03    10.386        .39917E-06** at limit **
   3  Prefactor     .61823        .13179        .28551E-09   -.32773E-03
   4  Prefactor     13.801        25.960       -.33851E-05    .46197E-05
   5  Prefactor     3.9238        4.9428       -.10963E-06   -.34420E-05
   6  Prefactor     .10000E-03    3.4316        .26569E-07** at limit **
   7  Prefactor     6.7544        13.152        .44034E-06    .15830E-04
   8  Prefactor     3.3662        4.2284        .36810E-06    .12381E-04
   9  Prefactor     21.582        10.789        .97756E-07    .72857E-04
  10  Prefactor     4.5547        11.711       -.27061E-07   -.73245E-05
  11  Prefactor     .10000E-03    17.827       -.16954E-05** at limit **
  12  norm          .96053        4.3281       -.56649E-06    .11690E-03
  13  Prefactor     1.3647        4.6792        .60512E-06    .23917E-04
  14  Prefactor     .10000E-03    11.615       -.11549E-06** at limit **
  15  norm          .10000E-03    6.2749        .48406E-06** at limit **
  16  Prefactor     8.6355        24.152       -.58759E-06    .10022E-04
  17  Prefactor     .10000E-03    6.4579       -.71495E-06** at limit **
  18  Prefactor     3.8141        4.9325        .20393E-05    .42571E-04
  19  Normalizat    .86870        .15766       -.72654E-06    .36305E-04
  20  Prefactor     .96089        .95732E-01    .27408E-06    .45326E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.618227
  Prefactor  = 13.8013
  Prefactor  = 3.92377
  Prefactor  = 0.0001
  Prefactor  = 6.75438
  Prefactor  = 3.36624
  Prefactor  = 21.582
  Prefactor  = 4.55472
  Prefactor  = 0.0001
  norm       = 0.960525
  Prefactor  = 1.36472
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.63545
  Prefactor  = 0.0001
  Prefactor  = 3.81414
  Normalizat = 0.868704
  Prefactor  = 0.960887
 **********
 **   18 **HESSE 
 **********

 FCN=   9778.428     FROM HESSE     STATUS=OK           299 CALLS     2346 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .61823        .13149        .15872E-04   -1.5551    
   4  Prefactor     13.801        26.007        .10788E-03   -1.4965    
   5  Prefactor     3.9238        4.9367        .20371E-03   -1.5312    
   6  Prefactor     .10000E-03    3.4442        .17888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7544        13.151        .15438E-03   -1.5188    
   8  Prefactor     3.3662        4.2050        .21269E-03   -1.5341    
   9  Prefactor     21.582        10.836        .86215E-04   -1.4779    
  10  Prefactor     4.5547        11.659        .18862E-03   -1.5281    
  11  Prefactor     .10000E-03    17.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .96053        14.955        .31036E-02   -1.5512    
  13  Prefactor     1.3647        4.6176        .33734E-03   -1.5474    
  14  Prefactor     .10000E-03    11.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.3188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.6355        24.136        .13644E-03   -1.5120    
  17  Prefactor     .10000E-03    6.4757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8141        4.9417        .10330E-02   -1.5317    
  19  Normalizat    .86870        .18023        .30479E-03   -.97569    
  20  Prefactor     .96089        .11099        .18637E-03   -.94045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43508e-10
Minuit parameter uncertainties:
  1  1.20239e-05
  2  3.22291e-06
  3  0.131489
  4  26.0279
  5  4.9372
  6  4.17402e-06
  7  13.1568
  8  4.20533
  9  10.837
  10  11.6643
  11  4.4564e-06
  12  7.58212
  13  4.61885
  14  3.81503e-07
  15  8.44993e-06
  16  24.1628
  17  1.43861e-07
  18  4.94224
  19  0.180356
  20  0.111021
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.609e-01  1.110e-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.687e-01  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 8.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1651/likelihoodResults_599097601_599356801_4FGL_J2330.5+1102_daily_bin1388.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) = 9778.38909483
delta logL = 0.0386349379187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9778.38063657
delta logL = 0.0470931972668

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9462       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2815       1.0000          .0000       10.000    
     3 'Normalizat'    .87254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95871       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9778.381     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      296 TOTAL
                     EDM=   .52E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9498        4.7103        .29753E-03    .31332E-05
   2  Index         2.2837        1.3712        .13526E-01   -.21315E-05
   3  Normalizat    .87250        .17154        .30418E-03   -.19435E-05
   4  Prefactor     .95873        .11023        .18655E-03   -.37784E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.9498
  Index      = 2.2837
  Normalizat = 0.872505
  Prefactor  = 0.958725
 **********
 **   18 **HESSE 
 **********

 FCN=   9778.381     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .29E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9498        4.7192        .11901E-04   -1.5429    
   2  Index         2.2837        1.3743        .54105E-03   -.57432    
   3  Normalizat    .87250        .17167        .12167E-04   -.97433    
   4  Prefactor     .95873        .11030        .74619E-05   -.94118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91563e-14
Minuit parameter uncertainties:
  1  4.72007
  2  1.40008
  3  0.171777
  4  0.110326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1651': 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) = 9778.38063507
delta logL = 0.047094696256

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.950e+00  4.720e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.284e+00  1.400e+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:  9.587e-01  1.103e-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.725e-01  1.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 352.629 11.048

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/1651/cmap_HighResolution_599097601_599356801_4FGL_J2330.5+1102_daily_bin1388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-03', job_status='DONE', photon_flux_upper_limit='8.31e-08', time_completed='2021-09-29 22:51:29.801159', job_id='1651', GAL2='0.96', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632981089.8', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.71e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1388' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:51:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 1651: <4FGL_J2330.5+1102_daily_bin1388> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1388> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 22:35:54 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:35:55 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:35:55 2021
Terminated at Wed Sep 29 22:51:30 2021
Results reported at Wed Sep 29 22:51:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1388 352.629 11.0479 599097601 599356801 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 :                                   744.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            936 sec.

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

