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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1040
RA = 352.629, Dec = 11.0479
tmin = 508896001, tmax = 509155201
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='1132', job_status='RUN', time_executed='2021-09-29 22:37:06.100276', time_epoch_executed='1632980226.1' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1132

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1132/ft1_4FGL_J2330.5+1102_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1132/ft2_4FGL_J2330.5+1102_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1132/ft1_4FGL_J2330.5+1102_daily_bin1040.fits outfile=/scratch/kocevski/1132/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1040.fits ra=352.629 dec=11.0479 rad=12.0 tmin=508896001.0 tmax=509155201.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.69
user 3.46
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1132/ft1_filtered_4FGL_J2330.5+1102_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/1132/ft2_4FGL_J2330.5+1102_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/1132/ltcube_508896001_509155201_4FGL_J2330.5+1102_daily_bin1040.fits outfile=/scratch/kocevski/1132/expmap_508896001_509155201_4FGL_J2330.5+1102_daily_bin1040.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/1132/ltcube_508896001_509155201_4FGL_J2330.5+1102_daily_bin1040.fits
.....................!
real 198.23
user 192.87
sys 5.01

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/1132/ft1_filtered_4FGL_J2330.5+1102_daily_bin1040.fits scfile=/scratch/kocevski/1132/ft2_4FGL_J2330.5+1102_daily_bin1040.fits outfile=/scratch/kocevski/1132/cmap_508896001_509155201_4FGL_J2330.5+1102_daily_bin1040.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1132/ft1_filtered_4FGL_J2330.5+1102_daily_bin1040.fits scfile=/scratch/kocevski/1132/ft2_4FGL_J2330.5+1102_daily_bin1040.fits outfile=/scratch/kocevski/1132/cmap_HighResolution_508896001_509155201_4FGL_J2330.5+1102_daily_bin1040.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.309       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7872       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3510       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13157E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.683       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0041       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4840       1.0000         .10000E-03   10000.    
    12 'norm      '    7.3533       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11987E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5825       1.0000         .10000E-03   10000.    
    15 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.464       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13106E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13220E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .68733       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2732       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=   8051.868     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     1771 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.609        .24151E-06** at limit **
   2  Prefactor     22.301        22.988       -.24536E-08    .10368E-04
   3  Prefactor     4.7867        .37484        .25491E-08    .54329E-03
   4  Prefactor     5.3550        21.136       -.41098E-06   -.17508E-04
   5  Prefactor     .10000E-03    3.3650       -.14715E-06** at limit **
   6  Prefactor     .10001E-03    63.550        .38534E-04** at limit **
   7  Prefactor     16.686        25.057       -.12900E-07   -.12834E-03
   8  Prefactor     .10000E-03    1.7826       -.13037E-06** at limit **
   9  Prefactor     .10000E-03    3.3434        .37084E-06** at limit **
  10  Prefactor     5.0060        13.179       -.42114E-06    .12413E-04
  11  Prefactor     3.3409        306.92        .12053E-04   -.32990E-05
  12  norm          7.3436        7.1350       -.13391E-05    .87123E-04
  13  Prefactor     .10001E-03    4.3433        .18622E-05** at limit **
  14  Prefactor     4.6096        17.000        .72989E-06    .66514E-04
  15  norm          .10000E-03    9.9394       -.24976E-06** at limit **
  16  Prefactor     24.509        31.820       -.96179E-06   -.22446E-03
  17  Prefactor     .10000E-03    15.007       -.10550E-05** at limit **
  18  Prefactor     .10000E-03    3.9068       -.38433E-06** at limit **
  19  Normalizat    .68710        .22421       -.11501E-05   -.86951E-04
  20  Prefactor     1.2734        .14092        .15940E-05    .44619E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.3005
  Prefactor  = 4.78671
  Prefactor  = 5.35499
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 16.6857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.00601
  Prefactor  = 3.34091
  norm       = 7.34364
  Prefactor  = 0.000100006
  Prefactor  = 4.60958
  norm       = 0.0001
  Prefactor  = 24.509
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.687098
  Prefactor  = 1.27338
 **********
 **   18 **HESSE 
 **********

 FCN=   8051.868     FROM HESSE     STATUS=OK           293 CALLS     2064 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.301        23.018        .84803E-04   -1.4763    
   3  Prefactor     4.7867        .37537        .14568E-04   -1.5270    
   4  Prefactor     5.3550        21.121        .17373E-03   -1.5245    
   5  Prefactor     .10000E-03    3.3814        .16074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    61.731        .41732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.686        25.046        .98057E-04   -1.4891    
   8  Prefactor     .10000E-03    1.7904        .11700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3526        .16031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0060        13.165        .17977E-03   -1.5260    
  11  Prefactor     3.3409        318.01        .21663E-02   -1.5342    
  12  norm          7.3436        7.1793        .73954E-03   -1.5166    
  13  Prefactor     .10001E-03    4.5060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6096        16.968        .18804E-03   -1.5279    
  15  norm          .10000E-03    9.9767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.509        31.910        .80987E-04   -1.4717    
  17  Prefactor     .10000E-03    15.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.9884        .17327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .68710        .25286        .43090E-03   -1.0440    
  20  Prefactor     1.2734        .16138        .21180E-03   -.84102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70219e-09
Minuit parameter uncertainties:
  1  7.06665e-05
  2  23.0269
  3  0.375368
  4  21.151
  5  1.54691e-05
  6  0.00142467
  7  25.0622
  8  8.07488e-06
  9  5.03909e-05
  10  13.1725
  11  65.5507
  12  7.18016
  13  0.000325016
  14  16.9856
  15  2.98906e-05
  16  31.9323
  17  0.000178972
  18  3.44343e-05
  19  0.253293
  20  0.161438
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  3.250e-04  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.273e+00  1.614e-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:  6.871e-01  2.533e-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: 8.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1132/likelihoodResults_508896001_509155201_4FGL_J2330.5+1102_daily_bin1040.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): 102
logL (Free Index) = 8051.868849
delta logL = -0.00105708480442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8051.86779282
delta logL = -8.99691258383e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7848       1.0000          .0000       10.000    
     3 'Normalizat'    .68692       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2735       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.

 FCN=   8051.868     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    607.32        .18142E-02** at limit **
   2  Index         2.7527        5.8990        .50000        .25359E-05
   3  Normalizat    .68710        .80015E-01    .43090E-03    .18996E-04
   4  Prefactor     1.2734        .52377E-01    .21180E-03    .25013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100078
  Index      = 2.75267
  Normalizat = 0.687105
  Prefactor  = 1.27337
 **********
 **   18 **HESSE 
 **********

 FCN=   8051.868     FROM HESSE     STATUS=OK            29 CALLS      275 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    5.1128        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7527        6.5141        .50000       -.46617    
   3  Normalizat    .68710        .24581        .17236E-04   -1.0440    
   4  Prefactor     1.2734        .16111        .84720E-05   -.84102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47513e-08
Minuit parameter uncertainties:
  1  0.00125961
  2  237.16
  3  0.246205
  4  0.161172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1132': 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) = 8051.8677919
delta logL = 1.68856786331e-08

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.001e-04  1.260e-03  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.753e+00  2.372e+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:  1.273e+00  1.612e-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:  6.871e-01  2.462e-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/1132/cmap_HighResolution_508896001_509155201_4FGL_J2330.5+1102_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-03', job_status='DONE', photon_flux_upper_limit='8.98e-08', time_completed='2021-09-29 22:49:26.811468', job_id='1132', GAL2='1.27', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1632980966.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.69e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1040' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:49:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 1132: <4FGL_J2330.5+1102_daily_bin1040> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1040 352.629 11.0479 508896001 509155201 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 :                                   679.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            854 sec.

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

