/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 178 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 = 7480
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2330.5+1102_daily_bin411
RA = 352.629, Dec = 11.0479
tmin = 345859201, tmax = 346118401
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='997256', job_status='RUN', time_executed='2021-09-29 22:23:30.465727', time_epoch_executed='1632979410.47' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997256

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997256/ft1_4FGL_J2330.5+1102_daily_bin411.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997256/ft2_4FGL_J2330.5+1102_daily_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997256/ft1_4FGL_J2330.5+1102_daily_bin411.fits outfile=/scratch/kocevski/997256/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin411.fits ra=352.629 dec=11.0479 rad=12.0 tmin=345859201.0 tmax=346118401.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.39
user 3.15
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/997256/ft2_4FGL_J2330.5+1102_daily_bin411.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/997256/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin411.fits evtable="EVENTS" outfile="/scratch/kocevski/997256/ft1_filtered_4FGL_J2330.5+1102_daily_bin411.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997256/ft1_filtered_4FGL_J2330.5+1102_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/997256/ft2_4FGL_J2330.5+1102_daily_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/997256/ltcube_345859201_346118401_4FGL_J2330.5+1102_daily_bin411.fits outfile=/scratch/kocevski/997256/expmap_345859201_346118401_4FGL_J2330.5+1102_daily_bin411.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/997256/ltcube_345859201_346118401_4FGL_J2330.5+1102_daily_bin411.fits
.....................!
real 190.07
user 185.29
sys 4.46

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/997256/ft1_filtered_4FGL_J2330.5+1102_daily_bin411.fits scfile=/scratch/kocevski/997256/ft2_4FGL_J2330.5+1102_daily_bin411.fits outfile=/scratch/kocevski/997256/cmap_345859201_346118401_4FGL_J2330.5+1102_daily_bin411.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997256/ft1_filtered_4FGL_J2330.5+1102_daily_bin411.fits scfile=/scratch/kocevski/997256/ft2_4FGL_J2330.5+1102_daily_bin411.fits outfile=/scratch/kocevski/997256/cmap_HighResolution_345859201_346118401_4FGL_J2330.5+1102_daily_bin411.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .95401E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .81200E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23887       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.385       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.161       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7035       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7538       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.776       1.0000         .10000E-03   10000.    
    15 'norm      '    22.869       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.414       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0644       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92348       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=   7291.571     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2009 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6081       -.27678E-06** at limit **
   2  Prefactor     .10000E-03    3.5418       -.13076E-07** at limit **
   3  Prefactor     .95410E-01    .91644E-01   -.44179E-08   -.14953E-02
   4  Prefactor     .10000E-03    137.76        .63385E-05** at limit **
   5  Prefactor     .21078        4.1348       -.11267E-05   -.94314E-04
   6  Prefactor     26.378        14.700        .10704E-05    .43360E-04
   7  Prefactor     43.143        24.393       -.12369E-05   -.28123E-04
   8  Prefactor     7.7072        7.7487       -.99738E-07   -.13229E-03
   9  Prefactor     .10000E-03    4.5859       -.58492E-08** at limit **
  10  Prefactor     .10000E-03    9.5010        .23927E-06** at limit **
  11  Prefactor     .10000E-03    28.931       -.28984E-06** at limit **
  12  norm          .10000E-03    2.0684       -.15696E-07** at limit **
  13  Prefactor     4.7549        5.2815        .13691E-05   -.70137E-04
  14  Prefactor     15.774        20.880       -.42739E-06   -.27489E-04
  15  norm          22.874        17.662       -.12981E-05   -.80750E-05
  16  Prefactor     23.429        35.862        .12114E-04   -.10600E-04
  17  Prefactor     .10000E-03    7.2369        .63073E-07** at limit **
  18  Prefactor     .10000E-03    4.3841        .24792E-07** at limit **
  19  Normalizat    1.0640        .19830       -.17917E-05    .78852E-04
  20  Prefactor     .92360        .11636        .29278E-06   -.67898E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0954102
  Prefactor  = 0.0001
  Prefactor  = 0.210777
  Prefactor  = 26.3783
  Prefactor  = 43.1431
  Prefactor  = 7.7072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.75488
  Prefactor  = 15.7742
  norm       = 22.8737
  Prefactor  = 23.4292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06401
  Prefactor  = 0.923596
 **********
 **   18 **HESSE 
 **********

 FCN=   7291.571     FROM HESSE     STATUS=OK           297 CALLS     2306 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.5421        .15695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .95410E-01    .84893E-01    .24477E-03   -1.5646    
   4  Prefactor     .10000E-03    140.45        .20893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .21078        21.548        .33217E-02   -1.5616    
   6  Prefactor     26.378        14.699        .77989E-04   -1.4680    
   7  Prefactor     43.143        24.482        .61022E-04   -1.4393    
   8  Prefactor     7.7072        7.7577        .14448E-03   -1.5153    
   9  Prefactor     .10000E-03    4.6020        .17854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.5106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0707        .11991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7549        5.2607        .18454E-03   -1.5272    
  14  Prefactor     15.774        20.889        .10084E-03   -1.4913    
  15  norm          22.874        17.679        .83760E-04   -1.4751    
  16  Prefactor     23.429        35.649        .82781E-04   -1.4740    
  17  Prefactor     .10000E-03    7.2528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4103        .17456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0640        .23000        .30510E-03   -.90916    
  20  Prefactor     .92360        .13614        .19839E-03   -.95321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84294e-08
Minuit parameter uncertainties:
  1  1.52443e-06
  2  7.96763e-07
  3  0.0848927
  4  0.000173337
  5  4.26289
  6  14.7006
  7  24.4872
  8  7.75875
  9  2.62807e-06
  10  1.35923e-05
  11  3.31254e-05
  12  2.33924e-06
  13  5.26122
  14  20.8988
  15  17.683
  16  35.6814
  17  1.47139e-05
  18  8.68272e-06
  19  0.23022
  20  0.136187
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  4.755e+00  5.261e+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.236e-01  1.362e-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.064e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 7.53e-06 +/- 8.33e-06

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

Saving results to:
/scratch/kocevski/997256/likelihoodResults_345859201_346118401_4FGL_J2330.5+1102_daily_bin411.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) = 7290.55027857
delta logL = 1.02031106971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7290.54463223
delta logL = 1.02595740841

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1943       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7285       1.0000          .0000       10.000    
     3 'Normalizat'    1.0890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91318       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=   7290.545     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1959        5.1512        .44096E-02   -.16237E-03
   2  Index         1.7276        .41327        .26126       -.62375E-04
   3  Normalizat    1.0887        .18775        .68252E-01   -.29440E-04
   4  Prefactor     .91338        .11515        .45173E-01   -.35375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.19588
  Index      = 1.72755
  Normalizat = 1.08868
  Prefactor  = 0.913379
 **********
 **   18 **HESSE 
 **********

 FCN=   7290.545     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1959        6.0340        .17638E-03   -1.5252    
   2  Index         1.7276        .61278        .91116E-02   -.71351    
   3  Normalizat    1.0887        .21824        .30196E-03   -.90116    
   4  Prefactor     .91338        .13399        .19929E-03   -.95675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09061e-10
Minuit parameter uncertainties:
  1  6.0347
  2  0.6155
  3  0.218416
  4  0.134042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997256': 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) = 7290.5446288
delta logL = 1.02596084047

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  5.196e+00  6.035e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  1.728e+00  6.155e-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.134e-01  1.340e-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.089e+00  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.97
Ra Dec: 352.629 11.048
Photon Index (Free Index): 1.73 +/- 0.62
Photon Flux (Free Index): 1.42e-08 +/- 1.85e-08
Energy Flux (Free Index): 2.12e-05 +/- 3.11e-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/997256/cmap_HighResolution_345859201_346118401_4FGL_J2330.5+1102_daily_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='2.12e-05', photon_flux_error='3.69e-08', dlogl='1.03e+00', energy_flux='7.53e-06', photon_flux2='1.42e-08', job_status='DONE', time_completed='2021-09-29 22:33:51.466006', photon_index_error2='0.62', photon_index2='1.73', ts='1.92', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='3.11e-05', EG='1.06', time_epoch_completed='1632980031.47', return_code='0', job_id='997256', GAL2='0.91', EG2='1.09', return_code2='0', energy_flux_error='8.33e-06', photon_flux_error2='1.85e-08', ts2='3.97', photon_index='2.79' WHERE bin_id='411' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:33:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 997256: <4FGL_J2330.5+1102_daily_bin411> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin411> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 22:20:18 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:20:20 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:20:20 2021
Terminated at Wed Sep 29 22:33:52 2021
Results reported at Wed Sep 29 22:33:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin411 352.629 11.0479 345859201 346118401 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.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            814 sec.

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

