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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1639
RA = 352.629, Dec = 11.0479
tmin = 664156801, tmax = 664416001
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='202168', job_status='RUN', time_executed='2022-01-21 00:42:17.379227', time_epoch_executed='1642754537.38' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1639'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202168

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202168/ft1_4FGL_J2330.5+1102_daily_bin1639.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202168/ft2_4FGL_J2330.5+1102_daily_bin1639.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/202168/ft1_4FGL_J2330.5+1102_daily_bin1639.fits outfile=/scratch/kocevski/202168/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1639.fits ra=352.629 dec=11.0479 rad=12.0 tmin=664156801.0 tmax=664416001.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.98
user 3.73
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/202168/ft2_4FGL_J2330.5+1102_daily_bin1639.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/202168/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1639.fits evtable="EVENTS" outfile="/scratch/kocevski/202168/ft1_filtered_4FGL_J2330.5+1102_daily_bin1639.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/202168/ft1_filtered_4FGL_J2330.5+1102_daily_bin1639.fits" evtable="EVENTS" scfile=/scratch/kocevski/202168/ft2_4FGL_J2330.5+1102_daily_bin1639.fits sctable="SC_DATA" outfile=/scratch/kocevski/202168/ltcube_664156801_664416001_4FGL_J2330.5+1102_daily_bin1639.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/202168/ft2_4FGL_J2330.5+1102_daily_bin1639.fits
.....................!
real 13.95
user 13.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202168/ft1_filtered_4FGL_J2330.5+1102_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/202168/ft2_4FGL_J2330.5+1102_daily_bin1639.fits sctable="SC_DATA" expcube=/scratch/kocevski/202168/ltcube_664156801_664416001_4FGL_J2330.5+1102_daily_bin1639.fits outfile=/scratch/kocevski/202168/expmap_664156801_664416001_4FGL_J2330.5+1102_daily_bin1639.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/202168/ltcube_664156801_664416001_4FGL_J2330.5+1102_daily_bin1639.fits
.....................!
real 192.72
user 187.37
sys 4.97

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/202168/ft1_filtered_4FGL_J2330.5+1102_daily_bin1639.fits scfile=/scratch/kocevski/202168/ft2_4FGL_J2330.5+1102_daily_bin1639.fits outfile=/scratch/kocevski/202168/cmap_664156801_664416001_4FGL_J2330.5+1102_daily_bin1639.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202168/ft1_filtered_4FGL_J2330.5+1102_daily_bin1639.fits scfile=/scratch/kocevski/202168/ft2_4FGL_J2330.5+1102_daily_bin1639.fits outfile=/scratch/kocevski/202168/cmap_HighResolution_664156801_664416001_4FGL_J2330.5+1102_daily_bin1639.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .77883       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4772       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11489E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.681       1.0000         .10000E-03   10000.    
    12 'norm      '    9.3399       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.068       1.0000         .10000E-03   10000.    
    15 'norm      '    15.825       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89442       1.0000         .10000E-01   10.000    
    20 '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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6409.154     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2033 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.677        .87211E-05** at limit **
   2  Prefactor     .10000E-03    5.0901       -.40151E-07** at limit **
   3  Prefactor     .77882        .17809        .46166E-08   -.56858E-03
   4  Prefactor     .10000E-03    7.9564        .39986E-06** at limit **
   5  Prefactor     4.4762        7.5819       -.23401E-06   -.22697E-03
   6  Prefactor     .10000E-03    11.677       -.85309E-05** at limit **
   7  Prefactor     .10000E-03    13.503        .75829E-05** at limit **
   8  Prefactor     .10000E-03    3.6856       -.10100E-06** at limit **
   9  Prefactor     .10000E-03    12.096        .19749E-05** at limit **
  10  Prefactor     .10000E-03    12.577        .35527E-06** at limit **
  11  Prefactor     27.685        35.965        .23168E-05   -.79704E-05
  12  norm          9.3422        9.1228        .56946E-06   -.81209E-04
  13  Prefactor     .10000E-03    3.7810        .87532E-08** at limit **
  14  Prefactor     30.074        28.394        .84366E-06    .11562E-05
  15  norm          15.825        13.167        .94998E-07   -.55373E-05
  16  Prefactor     .10000E-03    26.535        .23988E-05** at limit **
  17  Prefactor     .10000E-03    14.673       -.11699E-04** at limit **
  18  Prefactor     .10000E-03    1.7083        .91311E-07** at limit **
  19  Normalizat    .89434        .18829       -.46461E-06    .44505E-04
  20  Prefactor     .95875        .11811       -.10093E-06    .38553E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.778815
  Prefactor  = 0.0001
  Prefactor  = 4.47622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 27.6847
  norm       = 9.34219
  Prefactor  = 0.0001
  Prefactor  = 30.0739
  norm       = 15.8252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.894338
  Prefactor  = 0.958752
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.154     FROM HESSE     STATUS=OK           291 CALLS     2324 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0918        .17640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .77882        .17777        .15383E-04   -1.5531    
   4  Prefactor     .10000E-03    7.9600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4762        7.5794        .19029E-03   -1.5285    
   6  Prefactor     .10000E-03    11.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.7406        .14987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    130.16        .54054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.685        35.965        .76145E-04   -1.4655    
  12  norm          9.3422        9.0876        .13114E-03   -1.5097    
  13  Prefactor     .10000E-03    3.8084        .15179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.074        28.342        .73067E-04   -1.4611    
  15  norm          15.825        13.168        .10068E-03   -1.4912    
  16  Prefactor     .10000E-03    26.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.7111        .10218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89434        .21559        .30303E-03   -.96659    
  20  Prefactor     .95875        .13683        .18797E-03   -.94117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18959e-10
Minuit parameter uncertainties:
  1  1.09709e-07
  2  7.04935e-07
  3  0.17777
  4  2.02263e-07
  5  7.58107
  6  6.31617e-05
  7  2.36983e-05
  8  2.5693e-06
  9  4.10951e-05
  10  0.00130352
  11  35.9935
  12  9.08899
  13  7.42486e-06
  14  28.3546
  15  13.1702
  16  6.58257e-07
  17  1.49849e-05
  18  5.2292e-07
  19  0.215797
  20  0.136878
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  7.425e-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.588e-01  1.369e-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.943e-01  2.158e-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: 9.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/202168/likelihoodResults_664156801_664416001_4FGL_J2330.5+1102_daily_bin1639.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) = 6409.15533259
delta logL = -0.00125145191123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6409.15408109
delta logL = 4.51709638583e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7772       1.0000          .0000       10.000    
     3 'Normalizat'    .89434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95875       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=   6409.154     FROM MIGRAD    STATUS=FAILED        85 CALLS      240 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10099E-03    104.87        .15236E-02** at limit **
   2  Index         2.7041        6.8232        .50000        .17060E-04
   3  Normalizat    .89434        .26163E-01    .30303E-03    .25545E-03
   4  Prefactor     .95875        .16860E-01    .18797E-03    .30999E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6409.154     FROM SIMPLEX   STATUS=UNCHANGED    138 CALLS      378 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10099E-03    104.87        .30180E-03** at limit **
   2  Index         2.7041        6.8232        .53413E-04    .17060E-04
   3  Normalizat    .89434        .26163E-01    .10658E-05    .25545E-03
   4  Prefactor     .95875        .16860E-01    .63402E-06    .30999E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6409.154     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      424 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    619.87        .30473E-03** at limit **
   2  Index         2.4671        7.7331        .50000       -.35652E-07
   3  Normalizat    .89434        .79973E-01    .12121E-04    .40893E-04
   4  Prefactor     .95875        .51531E-01    .37594E-04    .54434E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.46711
  Normalizat = 0.894338
  Prefactor  = 0.958752
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.154     FROM HESSE     STATUS=OK            29 CALLS      453 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0413        .60945E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4671        5.8000        .50000       -.53121    
   3  Normalizat    .89434        .21099        .24243E-05   -.96659    
   4  Prefactor     .95875        .13605        .75188E-05   -.94117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11005e-11
Minuit parameter uncertainties:
  1  2.65162e-05
  2  137.338
  3  0.211184
  4  0.136097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202168': 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) = 6409.15408032
delta logL = 8.17874024506e-07

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  2.652e-05  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.467e+00  1.373e+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.588e-01  1.361e-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.943e-01  2.112e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/202168/cmap_HighResolution_664156801_664416001_4FGL_J2330.5+1102_daily_bin1639.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.15e-03', job_status='DONE', photon_flux_upper_limit='9.04e-08', time_completed='2022-01-21 00:52:35.214635', job_id='202168', GAL2='0.96', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1642755155.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='8.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1639' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 21 00:52:35 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 202168: <4FGL_J2330.5+1102_daily_bin1639> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1639> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jan 21 00:40:13 2022
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 21 00:40:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 21 00:40:15 2022
Terminated at Fri Jan 21 00:52:36 2022
Results reported at Fri Jan 21 00:52:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1639 352.629 11.0479 664156801 664416001 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 :                                   620.34 sec.
    Max Memory :                                 1080 MB
    Average Memory :                             290.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            743 sec.

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

