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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1354
RA = 352.629, Dec = 11.0479
tmin = 590284801, tmax = 590544001
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='1599', job_status='RUN', time_executed='2021-09-29 22:37:51.814435', time_epoch_executed='1632980271.81' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1599

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1599/ft1_4FGL_J2330.5+1102_daily_bin1354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1599/ft2_4FGL_J2330.5+1102_daily_bin1354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1599/ft1_4FGL_J2330.5+1102_daily_bin1354.fits outfile=/scratch/kocevski/1599/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1354.fits ra=352.629 dec=11.0479 rad=12.0 tmin=590284801.0 tmax=590544001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.68
user 3.46
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1599/ft1_filtered_4FGL_J2330.5+1102_daily_bin1354.fits" evtable="EVENTS" scfile=/scratch/kocevski/1599/ft2_4FGL_J2330.5+1102_daily_bin1354.fits sctable="SC_DATA" outfile=/scratch/kocevski/1599/ltcube_590284801_590544001_4FGL_J2330.5+1102_daily_bin1354.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/1599/ft2_4FGL_J2330.5+1102_daily_bin1354.fits
.....................!
real 11.93
user 11.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1599/ft1_filtered_4FGL_J2330.5+1102_daily_bin1354.fits evtable="EVENTS" scfile=/scratch/kocevski/1599/ft2_4FGL_J2330.5+1102_daily_bin1354.fits sctable="SC_DATA" expcube=/scratch/kocevski/1599/ltcube_590284801_590544001_4FGL_J2330.5+1102_daily_bin1354.fits outfile=/scratch/kocevski/1599/expmap_590284801_590544001_4FGL_J2330.5+1102_daily_bin1354.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/1599/ltcube_590284801_590544001_4FGL_J2330.5+1102_daily_bin1354.fits
.....................!
real 192.04
user 186.79
sys 4.92

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/1599/ft1_filtered_4FGL_J2330.5+1102_daily_bin1354.fits scfile=/scratch/kocevski/1599/ft2_4FGL_J2330.5+1102_daily_bin1354.fits outfile=/scratch/kocevski/1599/cmap_590284801_590544001_4FGL_J2330.5+1102_daily_bin1354.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/1599/ft1_filtered_4FGL_J2330.5+1102_daily_bin1354.fits scfile=/scratch/kocevski/1599/ft2_4FGL_J2330.5+1102_daily_bin1354.fits outfile=/scratch/kocevski/1599/cmap_HighResolution_590284801_590544001_4FGL_J2330.5+1102_daily_bin1354.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.1889       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28703       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.523       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.926       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.4703       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3169       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2909       1.0000         .10000E-03   10000.    
    15 'norm      '    2.3559       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2477       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96733       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=   6975.605     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2024 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.547        .50544E-09** at limit **
   2  Prefactor     1.1897        18.500       -.56076E-06   -.17965E-04
   3  Prefactor     .28704        .15944        .24837E-08    .47949E-04
   4  Prefactor     23.523        36.809       -.12684E-07    .16630E-03
   5  Prefactor     3.4442        9.3558        .41929E-08    .89906E-04
   6  Prefactor     .10000E-03    4.9070        .21973E-09** at limit **
   7  Prefactor     .10000E-03    45.018       -.65914E-09** at limit **
   8  Prefactor     11.928        7.5157       -.66454E-08    .15107E-02
   9  Prefactor     .10000E-03    5.5288        .35852E-09** at limit **
  10  Prefactor     .10000E-03    15.091       -.20403E-09** at limit **
  11  Prefactor     .10000E-03    77.142       -.29056E-08** at limit **
  12  norm          7.4715        8.7054       -.16581E-07   -.13476E-03
  13  Prefactor     5.3171        5.8635        .29161E-08    .39040E-04
  14  Prefactor     8.2919        24.161       -.22390E-08   -.82745E-04
  15  norm          2.3565        10.269       -.13296E-06   -.27100E-04
  16  Prefactor     .10001E-03    21.171        .96724E-08** at limit **
  17  Prefactor     .10001E-03    21.820       -.11266E-07** at limit **
  18  Prefactor     .10000E-03    2.3487       -.19333E-09** at limit **
  19  Normalizat    1.2476        .21099        .73771E-08    .36817E-05
  20  Prefactor     .96733        .12656        .16344E-07    .66796E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.18973
  Prefactor  = 0.287036
  Prefactor  = 23.5228
  Prefactor  = 3.44423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.47147
  Prefactor  = 5.31714
  Prefactor  = 8.29186
  norm       = 2.35653
  Prefactor  = 0.000100009
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Normalizat = 1.24763
  Prefactor  = 0.967327
 **********
 **   18 **HESSE 
 **********

 FCN=   6975.605     FROM HESSE     STATUS=OK           291 CALLS     2315 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1897        75.541        .20900E-02   -1.5490    
   3  Prefactor     .28704        .15987        .23079E-04   -1.5601    
   4  Prefactor     23.523        36.855        .82589E-04   -1.4738    
   5  Prefactor     3.4442        9.3001        .21795E-03   -1.5337    
   6  Prefactor     .10000E-03    4.9153        .18067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    45.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.928        7.5322        .11600E-03   -1.5017    
   9  Prefactor     .10000E-03    5.5451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    77.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.4715        8.7665        .73368E-03   -1.5161    
  13  Prefactor     5.3171        5.8519        .17430E-03   -1.5247    
  14  Prefactor     8.2919        24.136        .13923E-03   -1.5132    
  15  norm          2.3565        13.440        .13352E-02   -1.5401    
  16  Prefactor     .10001E-03    21.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    21.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.3567        .12499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2476        .24632        .30227E-03   -.85143    
  20  Prefactor     .96733        .14855        .20649E-03   -.93827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14849e-09
Minuit parameter uncertainties:
  1  1.65399e-05
  2  18.9846
  3  0.159869
  4  36.8908
  5  9.30402
  6  7.0395e-07
  7  0.000199978
  8  7.53278
  9  4.59595e-07
  10  3.45781e-05
  11  0.000242172
  12  8.76801
  13  5.85258
  14  24.1643
  15  11.2589
  16  0.000861883
  17  0.000875727
  18  2.71033e-07
  19  0.246553
  20  0.148617
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  5.317e+00  5.853e+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.673e-01  1.486e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.248e+00  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.84
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 3.73e-08 +/- 4.10e-08
Energy Flux (Fixed Index): 8.42e-06 +/- 9.27e-06

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

Saving results to:
/scratch/kocevski/1599/likelihoodResults_590284801_590544001_4FGL_J2330.5+1102_daily_bin1354.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) = 6974.665216
delta logL = 0.939285808759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6974.6431902
delta logL = 0.961311609504

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2201       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6287       1.0000          .0000       10.000    
     3 'Normalizat'    1.2768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95718       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=   6974.643     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      208 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2201        4.4003        .49040E-02    .22062E-02
   2  Index         1.6287        .42262        .26764       -.80984E-04
   3  Normalizat    1.2768        .20398        .67651E-01    .68266E-05
   4  Prefactor     .95719        .12508        .45730E-01    .79795E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.22005
  Index      = 1.62866
  Normalizat = 1.27678
  Prefactor  = 0.957189
 **********
 **   18 **HESSE 
 **********

 FCN=   6974.643     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2201        5.7990        .17372E-03   -1.5297    
   2  Index         1.6287        .70609        .93059E-02   -.73997    
   3  Normalizat    1.2768        .23811        .29930E-03   -.84262    
   4  Prefactor     .95719        .14612        .20738E-03   -.94170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.994e-09
Minuit parameter uncertainties:
  1  5.79974
  2  0.710469
  3  0.238318
  4  0.146178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1599': 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) = 6974.6431902
delta logL = 0.961311610212

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  4.220e+00  5.800e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  1.629e+00  7.105e-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:  9.572e-01  1.462e-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.277e+00  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 352.629 11.048
Photon Index (Free Index): 1.63 +/- 0.71
Photon Flux (Free Index): 1.11e-08 +/- 1.66e-08
Energy Flux (Free Index): 2.29e-05 +/- 3.77e-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/1599/cmap_HighResolution_590284801_590544001_4FGL_J2330.5+1102_daily_bin1354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='3.73e-08', energy_flux2='2.29e-05', photon_flux_error='4.10e-08', dlogl='9.61e-01', energy_flux='8.42e-06', photon_flux2='1.11e-08', job_status='DONE', time_completed='2021-09-29 22:49:43.930261', photon_index_error2='0.71', photon_index2='1.63', ts='1.84', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='3.77e-05', EG='1.25', time_epoch_completed='1632980983.93', return_code='0', job_id='1599', GAL2='0.96', EG2='1.28', return_code2='0', energy_flux_error='9.27e-06', photon_flux_error2='1.66e-08', ts2='3.77', photon_index='2.79' WHERE bin_id='1354' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:49:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 1599: <4FGL_J2330.5+1102_daily_bin1354> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1354 352.629 11.0479 590284801 590544001 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 :                                   608.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            834 sec.

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

