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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1437
RA = 352.629, Dec = 11.0479
tmin = 611798401, tmax = 612057601
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='1712', job_status='RUN', time_executed='2021-09-29 22:39:24.042336', time_epoch_executed='1632980364.04' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1712

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1712/ft1_4FGL_J2330.5+1102_daily_bin1437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1712/ft2_4FGL_J2330.5+1102_daily_bin1437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1712/ft1_4FGL_J2330.5+1102_daily_bin1437.fits outfile=/scratch/kocevski/1712/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1437.fits ra=352.629 dec=11.0479 rad=12.0 tmin=611798401.0 tmax=612057601.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.52
user 3.28
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1712/ft2_4FGL_J2330.5+1102_daily_bin1437.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/1712/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1437.fits evtable="EVENTS" outfile="/scratch/kocevski/1712/ft1_filtered_4FGL_J2330.5+1102_daily_bin1437.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1712/ft1_filtered_4FGL_J2330.5+1102_daily_bin1437.fits" evtable="EVENTS" scfile=/scratch/kocevski/1712/ft2_4FGL_J2330.5+1102_daily_bin1437.fits sctable="SC_DATA" outfile=/scratch/kocevski/1712/ltcube_611798401_612057601_4FGL_J2330.5+1102_daily_bin1437.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/1712/ft2_4FGL_J2330.5+1102_daily_bin1437.fits
.....................!
real 11.91
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1712/ft1_filtered_4FGL_J2330.5+1102_daily_bin1437.fits evtable="EVENTS" scfile=/scratch/kocevski/1712/ft2_4FGL_J2330.5+1102_daily_bin1437.fits sctable="SC_DATA" expcube=/scratch/kocevski/1712/ltcube_611798401_612057601_4FGL_J2330.5+1102_daily_bin1437.fits outfile=/scratch/kocevski/1712/expmap_611798401_612057601_4FGL_J2330.5+1102_daily_bin1437.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/1712/ltcube_611798401_612057601_4FGL_J2330.5+1102_daily_bin1437.fits
.....................!
real 190.97
user 185.57
sys 5.02

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/1712/ft1_filtered_4FGL_J2330.5+1102_daily_bin1437.fits scfile=/scratch/kocevski/1712/ft2_4FGL_J2330.5+1102_daily_bin1437.fits outfile=/scratch/kocevski/1712/cmap_611798401_612057601_4FGL_J2330.5+1102_daily_bin1437.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/1712/ft1_filtered_4FGL_J2330.5+1102_daily_bin1437.fits scfile=/scratch/kocevski/1712/ft2_4FGL_J2330.5+1102_daily_bin1437.fits outfile=/scratch/kocevski/1712/cmap_HighResolution_611798401_612057601_4FGL_J2330.5+1102_daily_bin1437.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29998       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.212       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.497       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9819       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9322       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.419       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .38551       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99249       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95557       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=   8315.099     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2061 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.988        .40508E-07** at limit **
   2  Prefactor     .10000E-03    8.9793        .10338E-06** at limit **
   3  Prefactor     .29995        .12005       -.37757E-08   -.67719E-03
   4  Prefactor     13.201        23.181        .57780E-05    .38393E-03
   5  Prefactor     12.494        7.2042        .40682E-06    .31063E-03
   6  Prefactor     .10000E-03    3.8385        .77234E-07** at limit **
   7  Prefactor     2.9823        9.2873        .53986E-07   -.91447E-04
   8  Prefactor     6.9288        6.7630        .25667E-05   -.92552E-03
   9  Prefactor     .10000E-03    3.6499        .86147E-08** at limit **
  10  Prefactor     10.414        18.250        .11614E-06    .16963E-03
  11  Prefactor     .10000E-03    23.615        .32140E-06** at limit **
  12  norm          .10000E-03    2.8182        .69477E-08** at limit **
  13  Prefactor     .10000E-03    2.3932        .11084E-07** at limit **
  14  Prefactor     .10000E-03    8.5035       -.45782E-07** at limit **
  15  norm          .10000E-03    4.8815        .33611E-07** at limit **
  16  Prefactor     .10000E-03    59.427       -.44544E-06** at limit **
  17  Prefactor     .10000E-03    21.791        .60926E-06** at limit **
  18  Prefactor     .10000E-03    4.1122        .72883E-07** at limit **
  19  Normalizat    .99258        .16981       -.11639E-05    .24827E-04
  20  Prefactor     .95564        .10576       -.14356E-06   -.42415E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.299948
  Prefactor  = 13.2015
  Prefactor  = 12.4945
  Prefactor  = 0.0001
  Prefactor  = 2.98231
  Prefactor  = 6.92878
  Prefactor  = 0.0001
  Prefactor  = 10.4143
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.992579
  Prefactor  = 0.955639
 **********
 **   18 **HESSE 
 **********

 FCN=   8315.099     FROM HESSE     STATUS=OK           295 CALLS     2356 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .29995        .11898        .19180E-04   -1.5598    
   4  Prefactor     13.201        24.616        .11020E-03   -1.4981    
   5  Prefactor     12.494        7.2343        .11331E-03   -1.5001    
   6  Prefactor     .10000E-03    3.8474        .17446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9823        9.3019        .23511E-03   -1.5363    
   8  Prefactor     6.9288        7.2925        .76188E-03   -1.5181    
   9  Prefactor     .10000E-03    3.6672        .17011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.414        18.829        .12413E-03   -1.5062    
  11  Prefactor     .10000E-03    25.570        .14463       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.8614        .14946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4126        .13771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.5232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.8918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    60.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1771        .18056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99258        .19837        .29641E-03   -.93279    
  20  Prefactor     .95564        .12432        .18985E-03   -.94223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66108e-09
Minuit parameter uncertainties:
  1  8.52229e-06
  2  9.08322e-06
  3  0.11898
  4  24.635
  5  7.23478
  6  1.64945e-07
  7  9.30637
  8  7.29345
  9  2.79348e-07
  10  18.8397
  11  0.000537232
  12  1.47057e-06
  13  2.07919e-06
  14  1.08345e-06
  15  2.41998e-06
  16  1.24802e-05
  17  0.000140242
  18  1.04616e-05
  19  0.198515
  20  0.124358
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  2.079e-06  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.556e-01  1.244e-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:  9.926e-01  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/1712/likelihoodResults_611798401_612057601_4FGL_J2330.5+1102_daily_bin1437.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) = 8315.10091766
delta logL = -0.00197482524163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8315.09894284
delta logL = -9.64064383879e-10

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 'Index     '    2.7858       1.0000          .0000       10.000    
     3 'Normalizat'    .99258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95564       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8315.099     FROM MIGRAD    STATUS=FAILED        80 CALLS      218 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    2.5174        .13771E-02** at limit **
   2  Index         2.7490        6.3651        .90581E-02    .17330E-05
   3  Normalizat    .99258        .19515        .29642E-03   -.61903E-04
   4  Prefactor     .95564        .12370        .18985E-03   -.56170E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8315.099     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      342 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    2.5174        .16304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7490        6.3651        .10698E-02   -.46699    
   3  Normalizat    .99258        .19515        .12917E-03   -.93279    
   4  Prefactor     .95564        .12370        .71542E-04   -.94223    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8315.099     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      369 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4164        .27543E-03** at limit **
   2  Index         2.7124        8.2033        .18116E-02   -.27612E-07
   3  Normalizat    .99258        .19535        .11857E-04    .27998E-04
   4  Prefactor     .95564        .12382        .75939E-05    .28145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.71237
  Normalizat = 0.992579
  Prefactor  = 0.955639
 **********
 **   18 **HESSE 
 **********

 FCN=   8315.099     FROM HESSE     STATUS=OK            29 CALLS      398 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4167        .55085E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7124        8.3001        .36233E-01   -.47521    
   3  Normalizat    .99258        .19584        .23713E-05   -.93279    
   4  Prefactor     .95564        .12410        .15188E-05   -.94223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81311e-12
Minuit parameter uncertainties:
  1  5.80672e-06
  2  300.547
  3  0.195985
  4  0.124134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1712': 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) = 8315.09894281
delta logL = 2.90983734885e-08

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  5.807e-06  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.712e+00  3.005e+02  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.556e-01  1.241e-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:  9.926e-01  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/1712/cmap_HighResolution_611798401_612057601_4FGL_J2330.5+1102_daily_bin1437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-03', job_status='DONE', photon_flux_upper_limit='6.65e-08', time_completed='2021-09-29 22:51:05.216818', job_id='1712', GAL2='0.96', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632981065.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1437' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:51:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 1712: <4FGL_J2330.5+1102_daily_bin1437> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1437 352.629 11.0479 611798401 612057601 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 :                                   675.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

