/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 194 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2359.0+3922_daily_bin11
RA = 359.755, Dec = 39.3669
tmin = 242179201, tmax = 242438401
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='233116', job_status='RUN', time_executed='2021-09-30 11:34:34.951853', time_epoch_executed='1633026874.95' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='11'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233116

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233116/ft1_4FGL_J2359.0+3922_daily_bin11.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233116/ft2_4FGL_J2359.0+3922_daily_bin11.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233116/ft1_4FGL_J2359.0+3922_daily_bin11.fits outfile=/scratch/kocevski/233116/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin11.fits ra=359.755 dec=39.3669 rad=12.0 tmin=242179201.0 tmax=242438401.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 1.44
user 1.25
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/233116/ft2_4FGL_J2359.0+3922_daily_bin11.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/233116/ft2_4FGL_J2359.0+3922_daily_bin11.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/233116/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin11.fits evtable="EVENTS" outfile="/scratch/kocevski/233116/ft1_filtered_4FGL_J2359.0+3922_daily_bin11.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233116/ft1_filtered_4FGL_J2359.0+3922_daily_bin11.fits" evtable="EVENTS" scfile=/scratch/kocevski/233116/ft2_4FGL_J2359.0+3922_daily_bin11.fits sctable="SC_DATA" outfile=/scratch/kocevski/233116/ltcube_242179201_242438401_4FGL_J2359.0+3922_daily_bin11.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/233116/ft2_4FGL_J2359.0+3922_daily_bin11.fits
.....................!
real 12.39
user 12.02
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233116/ft1_filtered_4FGL_J2359.0+3922_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/233116/ft2_4FGL_J2359.0+3922_daily_bin11.fits sctable="SC_DATA" expcube=/scratch/kocevski/233116/ltcube_242179201_242438401_4FGL_J2359.0+3922_daily_bin11.fits outfile=/scratch/kocevski/233116/expmap_242179201_242438401_4FGL_J2359.0+3922_daily_bin11.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/233116/ltcube_242179201_242438401_4FGL_J2359.0+3922_daily_bin11.fits
.....................!
real 193.83
user 188.60
sys 4.86

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 160 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2359.0+3922 @ 359.755 39.3669

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/233116/ft1_filtered_4FGL_J2359.0+3922_daily_bin11.fits scfile=/scratch/kocevski/233116/ft2_4FGL_J2359.0+3922_daily_bin11.fits outfile=/scratch/kocevski/233116/cmap_242179201_242438401_4FGL_J2359.0+3922_daily_bin11.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=359.755 yref=39.3669 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233116/ft1_filtered_4FGL_J2359.0+3922_daily_bin11.fits scfile=/scratch/kocevski/233116/ft2_4FGL_J2359.0+3922_daily_bin11.fits outfile=/scratch/kocevski/233116/cmap_HighResolution_242179201_242438401_4FGL_J2359.0+3922_daily_bin11.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=359.755 yref=39.3669 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/233116/ft1_filtered_4FGL_J2359.0+3922_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/233116/ft2_4FGL_J2359.0+3922_daily_bin11.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/233116/Model_4FGL_J2359.0+3922_daily_bin11.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/233116/ft1_filtered_4FGL_J2359.0+3922_daily_bin11.fits.....................!
real 80.76
user 79.32
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/233116/ft1_filtered_4FGL_J2359.0+3922_daily_bin11.fits', '/scratch/kocevski/233116/ft2_4FGL_J2359.0+3922_daily_bin11.fits', expMap='/scratch/kocevski/233116/expmap_242179201_242438401_4FGL_J2359.0+3922_daily_bin11.fits', expCube='/scratch/kocevski/233116/ltcube_242179201_242438401_4FGL_J2359.0+3922_daily_bin11.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/233116/Model_4FGL_J2359.0+3922_daily_bin11.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2359.0+3922'

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.197e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.348e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/233116/ft1_filtered_4FGL_J2359.0+3922_daily_bin11.fits
Spacecraft file(s): /scratch/kocevski/233116/ft2_4FGL_J2359.0+3922_daily_bin11.fits
Exposure map: /scratch/kocevski/233116/expmap_242179201_242438401_4FGL_J2359.0+3922_daily_bin11.fits
Exposure cube: /scratch/kocevski/233116/ltcube_242179201_242438401_4FGL_J2359.0+3922_daily_bin11.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/233116/Model_4FGL_J2359.0+3922_daily_bin11.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) = 6999.41358913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.416       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.233       1.0000         .10000E-03   10000.    
     3 'norm      '    15.916       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20637E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0083       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5566       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6452       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.131       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5092       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6632       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7560       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.739       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4565       1.0000         .10000E-03   10000.    
    17 'norm      '    12.459       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9522       1.0000         .10000E-03   10000.    
    19 'norm      '    .91637E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10716E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95273       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90899       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6999.386     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3109 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.376        43.714        .61667E-05   -.13444E-03
   2  Prefactor     41.245        37.152       -.13244E-05   -.18281E-03
   3  norm          15.925        21.938       -.70856E-05   -.32310E-03
   4  Prefactor     .10000E-03    60.488        .32321E-04** at limit **
   5  norm          2.0080        1.9754        .52013E-07   -.25724E-03
   6  Prefactor     8.5550        7.5901        .26264E-06   -.69929E-04
   7  Prefactor     1.6443        2.7810       -.56001E-06    .18785E-03
   8  Prefactor     36.110        26.185        .10583E-05   -.16707E-03
   9  Prefactor     6.4449        30.930        .55585E-05   -.16712E-03
  10  Prefactor     .10000E-03    18.058        .77497E-06** at limit **
  11  norm          .10000E-03    .95890        .61164E-07** at limit **
  12  Prefactor     .10000E-03    2.4634        .45405E-06** at limit **
  13  Prefactor     3.6534        33.765       -.10673E-05    .53887E-04
  14  norm          2.7562        1.6121        .28732E-07    .24496E-03
  15  Prefactor     14.736        13.217        .79130E-06   -.26092E-03
  16  norm          5.4556        5.5879        .36717E-07    .26375E-03
  17  norm          12.459        10.248        .20010E-06   -.11497E-03
  18  Prefactor     3.9364        26.825       -.15083E-05    .13271E-03
  19  norm          .91802E-01    1.5720       -.50397E-06   -.50879E-04
  20  Prefactor     .10000E-03    4.7580       -.21103E-07** at limit **
  21  Prefactor     .10000E-03    31.786        .19955E-05** at limit **
  22  Prefactor     .10000E-03    22.209        .34462E-06** at limit **
  23  Prefactor     .10000E-03    20.796       -.51107E-06** at limit **
  24  Prefactor     .10000E-03    4.5860        .14270E-05** at limit **
  25  Normalizat    .95254        .23272       -.13788E-05   -.34159E-03
  26  Prefactor     .90916        .97820E-01    .67074E-07   -.12039E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3757
  Prefactor  = 41.2448
  norm       = 15.9247
  Prefactor  = 0.0001
  norm       = 2.00795
  Prefactor  = 8.55502
  Prefactor  = 1.64427
  Prefactor  = 36.1096
  Prefactor  = 6.44492
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.65339
  norm       = 2.75617
  Prefactor  = 14.7357
  norm       = 5.45556
  norm       = 12.4588
  Prefactor  = 3.9364
  norm       = 0.0918024
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.952541
  Prefactor  = 0.909162
 **********
 **   18 **HESSE 
 **********

 FCN=   6999.386     FROM HESSE     STATUS=OK           460 CALLS     3569 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.376        43.728        .10549E-03   -1.4949    
   2  Prefactor     41.245        37.154        .62427E-04   -1.4423    
   3  norm          15.925        22.231        .10039E-03   -1.4910    
   4  Prefactor     .10000E-03    58.739        .39248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0080        1.9728        .11336E-03   -1.5425    
   6  Prefactor     8.5550        7.6308        .13704E-03   -1.5123    
   7  Prefactor     1.6443        2.7209        .16668E-03   -1.5452    
   8  Prefactor     36.110        25.956        .66672E-04   -1.4505    
   9  Prefactor     6.4449        30.957        .15730E-03   -1.5200    
  10  Prefactor     .10000E-03    18.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .97025        .79992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.4698        .12813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.6534        33.792        .21105E-03   -1.5326    
  14  norm          2.7562        1.6063        .77713E-04   -1.5376    
  15  Prefactor     14.736        13.202        .10433E-03   -1.4940    
  16  norm          5.4556        5.4972        .16701E-03   -1.5241    
  17  norm          12.459        10.257        .11349E-03   -1.5002    
  18  Prefactor     3.9364        26.071        .20290E-03   -1.5311    
  19  norm          .91802E-01    22.550        .19385E-02   -1.5647    
  20  Prefactor     .10000E-03    4.7586        .17823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.6414        .17542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .95254        .26931        .35163E-03   -.94638    
  26  Prefactor     .90916        .11456        .16580E-03   -.95822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18483e-08
Minuit parameter uncertainties:
  1  43.8259
  2  37.1744
  3  22.2422
  4  0.000198571
  5  1.97282
  6  7.6317
  7  2.72107
  8  25.9644
  9  28.2733
  10  0.000109088
  11  1.00378e-06
  12  4.14745e-05
  13  22.2384
  14  1.60637
  15  13.2048
  16  5.49769
  17  10.2583
  18  20.2736
  19  2.87712
  20  1.05151e-05
  21  0.000299889
  22  6.92442e-05
  23  0.000255476
  24  4.482e-05
  25  0.269693
  26  0.114591
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.000e-04  4.482e-05  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.348e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  9.092e-01  1.146e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  9.525e-01  2.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 8.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/233116/likelihoodResults_242179201_242438401_4FGL_J2359.0+3922_daily_bin11.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) = 6999.38706733
delta logL = -0.00102686784794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6999.38604045
delta logL = 1.65227902471e-08

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.3539       1.0000          .0000       10.000    
     3 'Normalizat'    .95254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90916       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6999.386     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.078        .90712E-02** at limit **
   2  Index         2.3602        8.0143        .50000       -.12433E-04
   3  Normalizat    .95254        .18899E-01    .79441E-01   -.11506E-04
   4  Prefactor     .90916        .87795E-02    .45122E-01   -.38565E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36017
  Normalizat = 0.952538
  Prefactor  = 0.909165
 **********
 **   18 **HESSE 
 **********

 FCN=   6999.386     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      239 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    402.99        .17566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3602        7.5337        .50000       -.55620    
   3  Normalizat    .95254        .58781E-01    .35162E-03   -.94638    
   4  Prefactor     .90916        .27351E-01    .16580E-03   -.95822    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.71155e-08
Minuit parameter uncertainties:
  1  0.000133197
  2  39.8115
  3  0.0587854
  4  0.0273513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233116': 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): 102
logL (Free Index) = 6999.38604043
delta logL = 3.47517925547e-08

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.000e-04  1.332e-04  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.360e+00  3.981e+01  0.000e+00  1.000e+01 (-1.000e+00)
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  9.092e-01  2.735e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  9.525e-01  5.879e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 359.755 39.367

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/233116/cmap_HighResolution_242179201_242438401_4FGL_J2359.0+3922_daily_bin11.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', job_status='DONE', photon_flux_upper_limit='8.44e-08', time_completed='2021-09-30 11:47:06.608286', job_id='233116', GAL2='0.91', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1633027626.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.48e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='11' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:47:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 233116: <4FGL_J2359.0+3922_daily_bin11> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin11> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 30 11:31:09 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:31:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 11:31:11 2021
Terminated at Thu Sep 30 11:47:07 2021
Results reported at Thu Sep 30 11:47:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin11 359.755 39.3669 242179201 242438401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2359.0+3922 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   750.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            958 sec.

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

